美文网首页
上传App Store,提交审核报错 ERROR ITMS-90

上传App Store,提交审核报错 ERROR ITMS-90

作者: OwenWong | 来源:发表于2018-10-27 00:09 被阅读0次

    一、错误贴图

    image

    二、错误原因

    这个错误是因为SDK里面包含了x86_64, i386 [架构],上传App Store是不允许的。

    三、解决办法

    1. TARGETS->Build Phases->点击加号选择NewRun Script Phase->然后复制粘贴下面代码
    # Type a script or drag a script file from your workspace to insert its path.
    
    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 |whileread-r FRAMEWORK
    
    do
    
    FRAMEWORK_EXECUTABLE_NAME=$(defaultsread"$FRAMEWORK/Info.plist"CFBundleExecutable)
    
    FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME"
    
    echo "Executable is $FRAMEWORK_EXECUTABLE_PATH"
    
    EXTRACTED_ARCHS=()
    
    forARCHin$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
    

    如下图:

    image

    2. 如果SDK是自己制作的话,可以直接剔除掉x86_64, i386这两个架构

    四、其他

    1. 如果打包依然出现这个问题,建议删除Run Script -> 重启Xcode -> 新建Run Script

    相关文章

      网友评论

          本文标题:上传App Store,提交审核报错 ERROR ITMS-90

          本文链接:https://www.haomeiwen.com/subject/ellrtqtx.html