Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issue #3: Read code signing entitlements from the application binary #16

Merged
merged 3 commits into from
Jan 8, 2018

Conversation

thdankert
Copy link

@thdankert thdankert commented Jan 8, 2018

Implement reading the code signing entitlements directly from the application binary,
instead of loading them from the provisioning profile.

This is useful because the provisioning profile will always have some entitlements set to wildcards, and will not reflect the actual entitlements being used by the app (eg. keychain-access-groups).

The application binary filename is read from the info.plist, extracted from the IPA (if necessary),
and the output from codesign -d <AppBinary> --entitlements :- is saved.

When replacing the entitlements section in the HTML, check if there are entitlements from the output of codesign and use them.
If there are none, fallback to the previous code, and read them from the provisioning profile.

Regarding the other commits: the bundle identifier defined in Shared.h was different from the one specified in the Info.plist, causing the plugin to fail completely (Bundle was not found) and not render anything.

I also updated the version to 1.3.1, because this version fixes a bug.

Thomas Dankert added 3 commits January 8, 2018 17:22
Read the code signing entitlements directly from the application binary
(using "codesign" application).
Fallback to reading the provisioning profile if the binary has no
entitlements set.
@ealeksandrov
Copy link
Owner

Looks great! I'm merging this in now, will test and push release to Cask later this week.

Thanks!

@ealeksandrov ealeksandrov merged commit bc2d8b7 into ealeksandrov:master Jan 8, 2018
@thdankert
Copy link
Author

Thanks for merging, looking forward to the release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants