美文网首页
提交审核APP时候报错(环信)

提交审核APP时候报错(环信)

作者: Mr_LS | 来源:发表于2017-06-13 12:20 被阅读76次

    提交审核APP时候报错(环信)

    错误如下: ITMS-90087: "Unsupported Architectures...

    Package Summary:
    1 package(s) were not uploaded because they had problems:
    /var/folders/lk/hq9vrf5x1ljdyrwgc8psmq1r0000gn/T/1411AA75-EDA4-4528-A283-1D0BACED7D78/1203185372.itmsp - Error Messages:
        ERROR ITMS-90087: "Unsupported Architectures. The executable for ***.app/Frameworks/HyphenateLite.framework contains unsupported architectures '[x86_64, i386]'."
        ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at '***.app/Frameworks/HyphenateLite.framework/HyphenateLite' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."
        ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker."
    

    解决办法:

    第一,二步:

    1.png

    第三步:

    2.png

    第四步:

    3.png

    添加的脚本如下:

      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"
    done
    

    此致,感谢

    相关文章

      网友评论

          本文标题:提交审核APP时候报错(环信)

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