-
Notifications
You must be signed in to change notification settings - Fork 14
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
App crashes at launch when AnalyticsConnector's iOS Deployment Target is different between an app and an embed Framework #2
Comments
Hi @Brian-Co, Thanks for such a detailed report. I'd like to keep the deployment target as low as possible in order to support as many devices and OS versions as possible. That said I understand that iOS 10 is ~7 years old as of now.
Can you elaborate on the reason around setting the Thanks. |
Hi @bgiori, Thank you for your quick reply. I don't think a fix would require you to change the deployment target. For instance, the Now about the reason around setting the
Hope it helps! |
I think it works for the Amplitude analytics SDK since it is written purely in Objective-C. The error seems to be swift specific:
I'll keep digging around. |
Hello @bgiori, I found out that the post install script might be needed to fix an Xcode 14.3 issue which prevents compiling some pods dependencies if their deployment target is not set to iOS 13 or higher. See this thread: Hope it helps! |
Hello,
We are developing a Framework which uses
Amplitude iOS SDK
, which depends onAnalyticsConnector
starting withAmplitude 8.8
.The Framework is compiled with dependency set to
pod 'Amplitude', '~> 8.10.0'
in the podfile. It links pods dynamically through theuse_frameworks!
statement. Our Framework's podspec states dependency toward'Amplitude', '~> 8.8'
. Therefore, when our Framework gets installed in an app, Amplitude and AnalyticsConnector both get installed in the main app.When installing the Framework in an app, if we change the AnalyticsConnector's iOS Deployment Target in the main app to iOS 13.0 or above, the app crashes at launch with the message below:
This happens as the main app changes all pods' iOS Deployment Targets to be the same as the main app (in our case, iOS 14.0) through a
post_install
script in the podfile. The Framework, on the other hand, was compiled with AnalyticsConnector default iOS Deployment Target, which is iOS 10.0.To avoid the crash, the workaround has been to create an exception for AnalyticsConnector like this:
In our case, the main app integrates over 30 dependencies, and none of them produces the same kind of bug.
Do you know what is causing the problem? And if yes, do you know if it will be fixed?
Thank you!
The text was updated successfully, but these errors were encountered: