错误ITMS-90087:“不支持的架构”GoogleCastFramework

时间:2017-08-25 15:32:27

标签: ios cordova ionic-framework google-cast google-cast-sdk

我尝试上传档案发布时遇到此问题。

  

错误ITMS-90087:“不支持的体系结构.Sportube.app/Frameworks/GoogleCast.framework的可执行文件包含不受支持的体系结构'[x86_64,i386]'。”

我使用这个脚本:

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"

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"

完成

我使用离子cordova构建ios --release并且它可以“构建成功”,但是当我尝试上传到app store时,我遇到了这个问题:

  

错误ITMS-90087:“不支持的体系结构.Sportube.app/Frameworks/GoogleCast.framework的可执行文件包含不受支持的体系结构'[x86_64,i386]'。”

0 个答案:

没有答案