Error uploading application using Realm.
<Environment>
xcode var 8.3.2
Realm var 2.7.0
<Error>
ERROR ITMS-90087: "Unsupported Architectures.The executable for app name.app/Frameworks/Realm.framework contains unsupported architectures' [x86_64, i386]'
ERROR ITMS-90087: "Unsupported Architectures.The executable for app name.app/Frameworks/RealmSwift.framework contains unsupported architectures' [x86_64, i386]'.
ERROR ITMS-90209: "Invalid Segment Alignment.The app binary at' app name.app/Frameworks/Realm.framework/Realm' does not have project alignment.Try rebuilding the app with the latest Xcode version."
ERROR ITMS-90209: "Invalid Segment Alignment.The app binary at' app name.app/Frameworks/RealmSwift.framework/RealmSwift' does not have project alignment.Try rebuilding the app with the latest Xcode version."
ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not see to have been built with Apple's link."
WARNING ITMS-90080: "The executable'Payload/App Name.app/Frameworks/Realm.framework' is not a Position Independent Executable. Please enable that your build settings are configured to create PIE executables. For more information refer to Technical Q&A Description.
WARNING ITMS-90080: "The executable'Payload/App Name.app/Frameworks/RealmSwift.framework' is not a Position Independent Executable. Please enable that your build settings are configured to create PIE executables. For more information refer to Technical Quality & Injection.
and multiple errors and warnings.
There are no errors or warnings on the actual machine, so I don't know what's wrong.
How can I get rid of this error?
Thank you for your cooperation.
swift xcode realm
https://realm.io/jp/docs/swift/latest/
Are you running the following scripts in the documentation installation section?
bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh"
Or if you're using Cartage,
/usr/local/bin/carriage copy-frameworks
Are you running this script?
The built framework combines the binaries of both the device and the simulator architecture.When applying, if the simulator binary is included, an error occurs and you cannot apply.
This script is necessary to avoid the problem and removes the simulator binaries from the framework. If you have other frameworks besides Realm, you need to do the same.
© 2024 OneMinuteCode. All rights reserved.