Note: We have a framework wrapping AppsFlyer and our SDK together. So we use AppsFlyerLib as a dependency of a dependency.
Used SPM to add from: "6.0.8" with Xcode 12.
Archived and went to distribute app (validate doesn't show the error).
What did you expect to happen?
Should be fine.
What happened instead?
Failed due to Xcode 12 issue with SPM where it embeds static frameworks when it shouldn't be doing this.
Workaround
This is the same issue as FirebaseAnalytics. Whilst I don't share the same view that this is wholly and Xcode issue, there is a workaround and I would advise watching the previously linked issue.
To fix this:
Go to Edit Scheme...
Expand Build
Go to Post-actions
Press the + in the bottom left corner
Select your app from the dropdown for Provide build settings from
Add the following code (the plugins removal is optional - only needed if you have extensions)
SDK Version
6.1.0
What did you do?
Note: We have a framework wrapping AppsFlyer and our SDK together. So we use AppsFlyerLib as a dependency of a dependency.
from: "6.0.8"
with Xcode 12.What did you expect to happen?
Should be fine.
What happened instead?
Failed due to Xcode 12 issue with SPM where it embeds static frameworks when it shouldn't be doing this.
Workaround
This is the same issue as FirebaseAnalytics. Whilst I don't share the same view that this is wholly and Xcode issue, there is a workaround and I would advise watching the previously linked issue.
To fix this:
Note: You can also give this script a nice name (by double tapping the name) but Xcode is a bit rubbish at editing it as the text goes invisible.