iOS开发之打包上传报错: ERROR ITMS-90087/ERROR ITMS-90125
生活随笔
收集整理的這篇文章主要介紹了
iOS开发之打包上传报错: ERROR ITMS-90087/ERROR ITMS-90125
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
制作好的framework在打包上傳至AppStore如果出現以下錯誤,則說明這個SDK里面包含了x86_64, i386 架構,當然這個AppStore是不允許的,所以會在上傳的時候報錯,解決辦法就是要這個SDK剔除掉x86_64, i386這兩個架構
解決辦法:
在工程中添加shell腳本,腳本的作用就是將framework的x86_64, i386架構移除。
?
?
?
?
# Without further ado, here’s the script. Add a Run Script step to your build steps, put it after your step to embed frameworks, set it to use /bin/sh and enter the following script: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") doneecho "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??
轉載于:https://www.cnblogs.com/hecanlin/p/10873855.html
總結
以上是生活随笔為你收集整理的iOS开发之打包上传报错: ERROR ITMS-90087/ERROR ITMS-90125的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 数据库系统概论第五版习题解析
- 下一篇: ScreenFlow Mac 苹果电脑视