-
Notifications
You must be signed in to change notification settings - Fork 24
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
TestFlight app crashes: DYLD error: x not loaded: @rpath/AnalyticsConnector.framework/AnalyticsConnector #238
Comments
@bastianfischer-neotaste can you please update to version 1.2.4 of the analytics connector? |
@izaaz Hello, we have the same issue. The version of analytics connector in our case is 1.2.4. |
To confirm, the change here is that we started to link to a precompiled xcframework version of analytics-connector. analytics-connector also now supports Mac-catalyst builds. 1.2.4 resolves some signing issues on MacOS due to invalid symlinks in the linked framework (see #236), but it seems like this is a different issue. That said, I'm having some trouble reproducing this within a basic MacOS or MacOS Catalyst target just linked with the latest Amplitude-Swift SDK. |
Thanks for your help investigating this, much appreciated! |
From the logs @Gray-Wind provided it looks like this is a signing issue with the framework, as its unsigned from us and I'm doubtful you'd run into signing issues with different teams on the same project. Xcode should be handling code signing, so I'm wondering if this is some cached SPM issue - Could you remove Amplitude-Swift as a dependency then add it back to see if that resolves the issue? Otherwise, to confirm this is a code signing issue, could you add Another option may be to distribute analytics-connector as a static (vs dynamic) framework, which should allow it to be linked directly into other libraries and wouldn't have to be signed as a standalone xcframework. |
Thank you for your help! I've identified the difference between the sample project and the main one. Basically the application was loading I was able to fix my issue with this addition to the build settings:
|
@Gray-Wind, @bastianfischer-neotaste - thank you for your help troubleshooting this issue. We've decided to restore SPM based builds to the prior built from source version in #241, which is released in 1.10.3. Carthage will still continue to use the precompiled frameworks, and we can continue to troubleshoot them if you still have issues. |
Thanks for the fix @crleona! Just tested, I can confirm that this issue is resolved with version 1.10.3. I will close this issue 🙂 |
Expected Behavior
TestFlight app should not crash.
Current Behavior
TestFlight app crashes on open:
DYLD error: x not loaded: @rpath/AnalyticsConnector.framework/AnalyticsConnector
We also received a mail from Apple (for this build):
Possible Solution
This issue appeared since bumping the SDK. I just had a quick look on the changes of the release this bug occurs since and I saw that you are now referencing to
AnalyticsConnectorFramework
instead ofAnalyticsConnector
. Might the issue described here be related to this change?Steps to Reproduce
Issue occurred since upgrading to https://github.com/amplitude/Amplitude-Swift @ 1.10.0 / https://github.com/amplitude/analytics-connector-ios.git @ 1.2.3.
Environment
The text was updated successfully, but these errors were encountered: