iOS上架报错90080,90087,90209,90125 脚

2020-04-22  本文已影响0人  LittleCody

        打包上传至AppStore会出现90080,90087,90209,90125错误,则说依赖的 Framework 里面包含了x86_64, i386 架构,通过脚本去掉即可。

       原有脚本会在非 Archive 模式下也会执行,本文修改脚本只处理 Archive 编译包中 Framework 包含 x86_64, i386 架构,以免影响正常调试:

注意:修改过 Archive 编译路径的朋友,请自行修改 Archive 判断条件 if [[ $APP_PATH != *xxxxx* ]]; then,   

另外此脚本解决打包过程中的有 x86_64, i386 架构导致的 IPA processing failed 问题。

APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"

if [[ $APP_PATH != *ArchiveIntermediates* ]]; then

    exit 0

fi

# 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

参考:https://www.jianshu.com/p/8575d22e179b

上一篇下一篇

猜你喜欢

热点阅读