My organization is distributing a binary framework (.xcframework) through direct download and Cocoapods, and I'm currently exploring distributing it as a binary target contained in a Swift package. Everything works great until:
- the app embedding this package also contains an extension
- I archive and export the app for adhoc/enterprise/development
Then "compiling Bitcode..." fails with a "IPA processing failed" error.
Uploading to App Store connect seems to work but I cannot test it currently.
Besides a few warning: Failed to resolve rpath for Lib: Could not resolve @executable_path for @executable_path/Frameworks from Lib
warnings, I haven't found anything meaningful in the distribution logs.
Here's a super easy project reproducing the error with step by step instructions:
https://github.com/nckh/BinaryFrameworkExtensionIssue
Am I doing something wrong? Is this a bug? An edge case? After painful hours of trying so many combinations I'm running out of ideas. Thank you for your help!!