Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Add support for *.entitlements#571

Open
petamas wants to merge 1 commit intopre-commit:main from
petamas:add-entitlements
Open

Add support for *.entitlements #571
petamas wants to merge 1 commit intopre-commit:main from
petamas:add-entitlements

Conversation

@petamas
Copy link
Contributor

@petamas petamas commented Feb 10, 2026
edited
Loading

Format documentation: https://developer.apple.com/documentation/bundleresources/entitlements

Relevant quote:

Xcode records capabilities that you add in a property list file with the .entitlements extension.

'zsh': {'text', 'shell', 'zsh'},
}
EXTENSIONS_NEED_BINARY_CHECK = {
'entitlements': {'plist', 'entitlements'},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this actually be a binary file? all the examples I see online are either empty or xml

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't seen any examples of it being binary, but the link documentation only says it must be a property list, aka plist file, without specifying the flavour.

I couldn't find any docs / forum threads / SO questions that would have a definitive answer either way, so it seems safer to make identify autodetect textness, just like other plists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@asottile asottile asottile left review comments

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /