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

Directions for provisioning entitlements that require hardened runtime #2560

Open
ed-irl opened this issue Oct 19, 2024 · 1 comment
Open

Comments

@ed-irl
Copy link

ed-irl commented Oct 19, 2024

Repro here: https://github.com/ed-irl/bazel-ios-codesigning-repro. You must make some changes to the repo code (outlined in the README.md) attempt to run the signed app on a device to reproduce the bug.

The code signing profile actually does seem to work, but when you attempt to launch it on a device the signature fails to verify with a message: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.0SjU0G/extracted/TestBazel.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)

The repro doesn't contain an example using manual profiles, but in the project I'm working on I was also unable to get verifiable provisioning to work with manual signing (with the same error).

@ed-irl ed-irl changed the title Xcode-Managed Provisioning Profiles Don't Work with Entitlements Directions for provisioning entitlements that require hardened runtime Oct 20, 2024
@ed-irl
Copy link
Author

ed-irl commented Oct 20, 2024

After working on this a little bit more, I've been able to further isolate the problem to entitlements that require hardened runtime. Simply adding codesignopts = ["--options=runtime"], as suggested by some references (eg. https://wiki.freepascal.org/Hardened_runtime_for_macOS) doesn't work in the project I attached.

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

No branches or pull requests

1 participant