My app builds fine, but when I submit it to the app store, the application loader fails with:
ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'MYAPP.app/Intercom.framework/Versions/A/Intercom' is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."
I need to add
strip-frameworks.sh to the build process, per intercom's docs, but I don't know how to do this in rubymotion. help?
from https://github.com/intercom/intercom-ios :
Download Intercom for iOS and extract the zip.
- Go to your Xcode project's "General" settings. Drag
Intercom.framework to the "Embedded Binaries" section. Make sure "Copy items if needed" is selected and click Finish.
- Create a new "Run Script Phase" in your app’s target’s "Build Phases" and paste the following snippet in the script text field:
This step is required to work around an App Store submission bug when archiving universal binaries.