There is no problem in direct operation, but the architecture/IPA/upload Appstore reports the error “unsupported architecture. Your executable contains unsupported architecture ‘[x86_64, i386]
Solution:
remove the supporting simulators i386 and x86_64 architecture in Baidu’s aipbase.framework and aipocrsdk.framework
# Use lipo -info to see what architecture is included
lipo -info AipBase.framework/AipBase # Architectures in the fat file: AipBase are: i386 x86_64 armv7 armv7s arm64
# remove x86_64, i386
lipo -remove x86_64 AipBase.framework/AipBase -o AipBase.framework/AipBase
lipo -remove i386 AipBase.framework/AipBase -o AipBase.framework/AipBase
lipo -remove x86_64 AipOcrSdk.framework/AipOcrSdk -o AipOcrSdk.framework/AipOcrSdk
lipo -remove i386 AipOcrSdk.framework/AipOcrSdk -o AipOcrSdk.framework/AipOcrSdk
# re-check
lipo -info AipBase.framework/AipBase # Architectures in the fat file: AipBase are: armv7 armv7s arm64
Read More:
- [Solved] App Store Connect Operation Error ERROR ITMS-90087: “Unsupported Architectures
- How to Solve Xcode M1 simulator Error
- line 1: syntax error: unexpected “(“ [How to Solve]
- Error while trying to run project:unable to start debugging.the debugger is not properly installed. run setup to install or repa
- Vue Error reported after introduction of path: Already included file name ‘××ב differs from file name ‘××ב only in casing.
- [Solved] Error during composer operation in docker: insufficient memory
- [Solved] The type or namespace name ‘Service’ does not exist Error
- How to Solve Cordova integrates Gaode Map key error
- [Solved] Docker Error: SyntaxError: Non-ASCII character ‘\xe5‘ in file xxx
- Run real machine Errors were encountered while preparing your device for development. Please check the Devices
- [Solved] Adb Shell Monkey Warning: can‘t create log.txt, Read-only file system
- [Solved] ERROR: Unknown host CPU architecture: arm64
- How to Solve RemoveError: setuptools is a dependency of conda and cannot be removed from conda
- [INS-06006] Passwordless SSH connectivity not set up [Solved]
- Pod install Error: LoadError [How to Solve]
- [Solved] MAC Compile Error: fatal error: ‘endian.h‘ file not found
- ubuntu docker dm_task_run failed error [How to Solve]
- [Solved] Android 5.1 code compilation error: Unsupported reloc 43
- Yarn install error: 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: ‘install‘
- [Solved] standard_init_linux.go:190: exec user process caused “exec format error“