This problem is driving me insane. Whatever I do, I get the problem "No such module 'Armchair'" when I archive. It works when I build but when I archive XCode messes with me. I see XCode archiving/compiling Armchair.
$(PROJECT_DIR)/AppName/External/Armchair/build/Release-iphoneos
to Framework Search Paths
. Build Phases
I think I have even tried a raindance, just to be sure. It keeps refusing to work when archiving, but works for normal building and running on device.
I have read and tried these related questions:
Running XCode 7.1. Any suggestions on how to solve it?
Ok, I figured it out. Its was too simple and kind of a stupid reason if you ask me.
My core app three configurations:
The framework I added into my app, in this case Armchair, has only the Debug
and Release
configuration.
When I archive my app, the Pre-Release configuration is used, which doesn't exist for the included Armchair.xcodeproj
. Added the Pre-Release
configuration to the Armchair.xcodeproj
solved my problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With