Game World!

Join A World Of Gamers

Enter your email address:

Delivered by FeedBurner

Followers

Popular Posts

Saturday 26 June 2021

How do I fix IPA processing failed in Xcode 12?

 

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.

  1. Used SPM to add from: "6.0.8" with Xcode 12.
  2. 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:

  1. Go to Edit Scheme...
  2. Expand Build
  3. Go to Post-actions
  4. Press the + in the bottom left corner
  5. Select your app from the dropdown for Provide build settings from
  6. Add the following code (the plugins removal is optional - only needed if you have extensions)
rm -rf "${TARGET_BUILD_DIR}/${TARGET_NAME}.app/Frameworks/AppsFlyerLib.framework"
rm -rf "${TARGET_BUILD_DIR}/${TARGET_NAME}.app/Plugins/AppsFlyerLib.framework"

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.

Floating Button

Button