sentry-cocoa: Sentry package 8.13.0 fails build: Signing for "Sentry_SentryPrivate" requires a development team.
Platform
macOS
Installed
Swift Package Manager
Version
8.13.0
Steps to Reproduce
- Use the
sentry-cocoav8.13.0 package in macOS application project - Run build script in GitHub Actions runner to compile the application like this:
xcodebuild
-workspace "AcmeApp.xcworkspace"
-scheme AcmeApp
-configuration Release
-disableAutomaticPackageResolution
-showBuildTimingSummary
CODE_SIGN_IDENTITY="$CODE_SIGN_IDENTITY"
clean archive
The $CODE_SIGN_IDENTITY variable contains valid Team identifier for signing the application.
- Observe failed build because Sentry package requires its private key.
Expected Result
Build success as before (we used v8.9.4).
Actual Result
Build fails with error:
build: /Users/runner/Library/Developer/Xcode/DerivedData/AcmeApp/SourcePackages/checkouts/sentry-cocoa/Package.swift#L1
Signing for "Sentry_SentryPrivate" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'Sentry_SentryPrivate' from project 'Sentry')
Are you willing to submit a PR?
No response
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 20 (9 by maintainers)
Ok, I think I found the problem and I have a solution. Apple nows requires an “API reason manifest” which we included recently, this manifest needs to be bundled and signed.
Here is the solution:
This way xcodebuild will use the same “CODE_SIGN_IDENTITY” for every artifact that needs sign.
Can you please try this and let me know whether it worked.