sentry-cocoa: Dynamic xcframework crashes on load when running in Mac catalyst app
Platform
macOS
Environment
Develop
Installed
Swift Package Manager
Version
8.22.2
Did it work on previous versions?
No response
Steps to Reproduce
Xcode 15.3 Integrate Sentry using SPM and select the Dynamic version Run the app
Expected Result
Expect the app to run
Actual Result
App crashes with
dyld[31816]: Library not loaded: @rpath/Sentry.framework/Versions/A/Sentry Referenced from: <56C2FE8C-A226-3E73-8DF3-A69B2DE114BA> /Users/gabor/Library/Developer/Xcode/DerivedData/Screeners-fbzbdqgslszigydfrilfmdsrybwh/Build/Products/Debug-maccatalyst/WBDScreeners.app/Contents/Frameworks/WBDKit.framework/Versions/A/WBDKit Reason: tried: '/Users/gabor/Library/Developer/Xcode/DerivedData/Screeners-fbzbdqgslszigydfrilfmdsrybwh/Build/Products/Debug-maccatalyst/Sentry.framework/Versions/A/Sentry' (code signature in <85240F3B-DDA3-3DE4-9F69-F1CB0CB9E3EE>
Are you willing to submit a PR?
No response
About this issue
- Original URL
- State: closed
- Created 3 months ago
- Comments: 15 (15 by maintainers)
Hi @brustolin I just tried again to integrate Sentry using the latest tag of 8.22.4 as a static framework and indeed the file sizes did not go up this time for iOS, tvOS and macOS: 😃 This looks good.
With one of the initial 8.22.x releases the iOS and tvOS sizes were same but macOS went up by 10% (~3MB)
@philipphofmann TBH my project setup is somewhat more complex. Sentry is added as a dependency to a dynamic framework in the same project as targets. Then my dynamic framework is used in several targets. Below is an illustration how this works with v 8.21