AppStore打包上传问题总结

ERROR ITMS-90725

请一定用最新的Xcode编译SDK,并打包上传。

WARNING ITMS-90474

在这里插入图片描述

ERROR ITMS-90087: "Unsupported Architectures. The executable for xxx.app/Frameworks/xxx

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

http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/

https://stackoverflow.com/questions/35240330/errors-building-xcode-project-after-adding-in-run-script-fatal-error-lipo-inpu

WARNING ITMS-90209	

有一个SDK用户发现用上面的脚本打包也有问题,报‘90209’

# This script loops through the frameworks embedded in the application and
# removes unused architectures.
find . -name '*.framework' -type d | while read -r FRAMEWORK
do
if ( "$FRAMEWORK"="/Users/builder/workspace/PIVOT-iOS-5.0-Build-backup/OneSource-CommonLib/iOS/CommonLibrary/ThirdParty/TSLAsciiCommands.framework" )
then
echo $FRAMEWORK
else
#FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_NAME=$(/usr/libexec/PlistBuddy -c "Print :CFBundleExecutable" "$FRAMEWORK/Info.plist")
echo $FRAMEWORK_EXECUTABLE_NAME

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"

fi

# 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

链接:https://www.jianshu.com/p/e65e08ed8b70 找了这个脚本打包就没问题。

ERROR ITMS-90362

打包upload的时候遇到这个问题:

ERROR ITMS-90362

ERROR ITMS-90362: “Invalid Info.plist value. The value for the key ‘MinimumOSVersion’ in bundle xxx.app/Frameworks/xxxApi.framework is invalid. The minimum value is 8.0”

看了下报错信息,提示在App的路径下的某个framework的MinimumOSVersion的问题,和我App所支持的最低版本号不一致。

直接改framework里的最低支持版本号如果不影响本App的话,方便起见,直接找到该framework,show in finder,找到里面的infolist文件修改MinimumOSVersion的值为8.0,然后保存。

重新打包upload。

ERROR ITMS-90183

App Store Connect Operation Error
ERROR ITMS-90183: “Invalid Bundle OS Type Code. The value of ‘Bundle OS Type Code’ [CFBundlePackageType] in your application bundle’s Info.plist file must be one of [APPL].”

将plist文件中的Bundle OS Type code项的值改成APPL。

ERROR ITMS-90685
App Store Connect Operation Error
ERROR ITMS-90685: “CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value ‘com.vhall.VHinteract’ under the iOS application ‘VHInteract.app’.”

ERROR ITMS-90345
App Store Connect Operation Error
ERROR ITMS-90345: “Metadata/Info.plist Mismatch. The value for bundle_short_version_string in the metadata.xml file does not match the value for CFBundleShortVersionString in VHInteract [Payload/VHInteract.app].”

ERROR ITMS-90364
App Store Connect Operation Error
ERROR ITMS-90364: “Bad package type. The extension bundle VHInteract.app/PlugIns/VHinteractScreenShare.appex has an invalid CFBundlePackageType value which must be ‘XPC!’.”

改Bundle OS Type code的值为XPC!

ERROR ITMS-90171
App Store Connect Operation Error
ERROR ITMS-90171: “Invalid Bundle Structure - The binary file ‘VHInteract.app/Frameworks/MobileRTC.framework/MobileRTC’ is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure.”

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Morris_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值