Appstore提交是提示"Unsupported Architecture x86"错误解决方案

App Store Connect Operation Error
ERROR ITMS-90087: "Unsupported Architectures. The executable for LoanCalculator.app/Frameworks/Flutter.framework contains unsupported architectures '[x86_64]'."

App Store Connect Operation Error
ERROR ITMS-90209: "Invalid Segment Alignment. The app binary at 'LoanCalculator.app/Frameworks/Flutter.framework/Flutter' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."

App Store Connect Operation Error
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."

解决办法::::
Run Script:增加脚本语言
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin

1.打开终端

2.cd到Flutter.framework文件夹

example : cd /Users/MAC/Desktop/Flutter/Flutter.framework
复制代码
3.执行下面代码

lipo -remove x86_64 Flutter -o Flutter
复制代码
4.重新打开项目 Clean, Build & Run and Create Archive

你可能感兴趣的:(Appstore提交是提示"Unsupported Architecture x86"错误解决方案)