We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After doing all setup steps on iOS I properly got this library working without any hassle on both Debug and Release versions.
But after archiving a release and uploading to the App Store it returns the following error, together with a bunch of other unrelated ones:
ERROR ITMS-90087: "Unsupported Architecture. Your executable contains unsupported architecture '[x86_64, i386]'."
So I found out Result.framework and MposSDK.framework are causing this error. Did a bit of research and found out this:
Result.framework
MposSDK.framework
https://stackoverflow.com/questions/30547283/submit-to-app-store-issues-unsupported-architecture-x86/30866648#30866648
I got this fixed by adding a Run Script phase with a script this guy "Varrry" suggested:
echo "Target architectures: $ARCHS" APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}" find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK do FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable) FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME" echo "Executable is $FRAMEWORK_EXECUTABLE_PATH" echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH") FRAMEWORK_TMP_PATH="$FRAMEWORK_EXECUTABLE_PATH-tmp" # remove simulator's archs if location is not simulator's directory case "${TARGET_BUILD_DIR}" in *"iphonesimulator") echo "No need to remove archs" ;; *) if $(lipo "$FRAMEWORK_EXECUTABLE_PATH" -verify_arch "i386") ; then lipo -output "$FRAMEWORK_TMP_PATH" -remove "i386" "$FRAMEWORK_EXECUTABLE_PATH" echo "i386 architecture removed" rm "$FRAMEWORK_EXECUTABLE_PATH" mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH" fi if $(lipo "$FRAMEWORK_EXECUTABLE_PATH" -verify_arch "x86_64") ; then lipo -output "$FRAMEWORK_TMP_PATH" -remove "x86_64" "$FRAMEWORK_EXECUTABLE_PATH" echo "x86_64 architecture removed" rm "$FRAMEWORK_EXECUTABLE_PATH" mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH" fi ;; esac echo "Completed for executable $FRAMEWORK_EXECUTABLE_PATH" echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH") done
But it can be done by using the lipo -remove commands direct from CLI.
lipo -remove
This, or other solution I'm not aware of, should be described on the README.md as it can save unexperienced iOS developers a lot of time.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After doing all setup steps on iOS I properly got this library working without any hassle on both Debug and Release versions.
But after archiving a release and uploading to the App Store it returns the following error, together with a bunch of other unrelated ones:
ERROR ITMS-90087: "Unsupported Architecture. Your executable contains unsupported architecture '[x86_64, i386]'."
So I found out
Result.framework
andMposSDK.framework
are causing this error. Did a bit of research and found out this:https://stackoverflow.com/questions/30547283/submit-to-app-store-issues-unsupported-architecture-x86/30866648#30866648
I got this fixed by adding a Run Script phase with a script this guy "Varrry" suggested:
But it can be done by using the
lipo -remove
commands direct from CLI.This, or other solution I'm not aware of, should be described on the README.md as it can save unexperienced iOS developers a lot of time.
The text was updated successfully, but these errors were encountered: