App Store Connect Operation Error ERROR ITMS-90087: “Unsupported architectures.
1. Reason description
the app uses dingxiangcaptchasdk.framework. An error is reported when submitting the app store
reason: dingxiangcaptchasdk.framework contains x86_ 64. I386 architecture. Of course, this app store is not allowed. All errors will be reported when uploading. The solution is to eliminate x86 from this SDK_64, i386 these two architectures
2. Solution
solution: targets – > Build Phases-> Click the plus sign to select new run script phase
to facilitate identification, double-click and rename to supported architectures [x86_64, i386].
Then copy and paste the following code:
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
# This script loops through the frameworks embedded in the application and
# removes unused architectures.
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"
EXTRACTED_ARCHS=()
for ARCH in $ARCHS
do
echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME"
lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH"
EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH")
done
echo "Merging extracted architectures: ${ARCHS}"
lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}"
rm "${EXTRACTED_ARCHS[@]}"
echo "Replacing original executable with thinned version"
rm "$FRAMEWORK_EXECUTABLE_PATH"
mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH"
done ```
![Insert image description here](https://img-blog.csdnimg.cn/9d9ee5a118d2405d83e92877912eee89.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBA6YOP5Zu95LiK,size_20,color_FFFFFF,t_70,g_se,x_16)
Read More:
- ERROR ITMS-90022: “Missing required icon file. [How to Solve]
- [Solved] IOS ipa Pack Upload Error: ERROR ITMS-90165
- [Solved] Android app development version update failed, Android – error: task execution failed ‘: app: com
- Solve the data transfer between vue irrelevant components error: this.$store.commit is not a function
- The authentication server Configurate NoClassDefFoundError Error (store client information in a JDBC-based database)
- OpenCV(-206:Bad flag (parameter or structure field)) Unrecognized or unsupported array type [How to Solve]
- [Solved] Postman Error: Unsupported Media Type
- ElasticSearch Create Index Error: mapper_parsing_exception Root mapping definition has unsupported parameters
- Wechat Applet error: [app.json file content error] app json: [“usingComponents“][“van-button“]: “@vant/weapp/lib/button/index
- [Solved] Android 5.1 code compilation error: Unsupported reloc 43
- [Solved] jedis Connect redis Error: connect timed out
- [Solved] GBase 8a MPP Database Loading Error: Unsupported version
- [Solved] Execution failed for task ‘:app:mergeDebugJavaResource‘.
- How to Solve Error: Unsupported field: HourOfDay
- [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChang
- Hbase Shell startup error: [ERROR] Terminal initialization failed; falling back to unsupported
- Android7.0+ Failed to Share Images: exposed beyond app through ClipData.Item.getUri()
- How to Solve Error: Missing type map configuration or unsupported mapping
- [Solved] Execution failed for task ‘:app:checkDebugAarMetadata‘
- [Maven Error] Exception in thread “main” java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0