How to compile OpenCV for iOS7 (arm64)

前端 未结 8 1392
轻奢々
轻奢々 2020-12-03 16:40

Compiling Xcode Project fails with following errors: \'missing required architecture arm64 in file /Users/*/Git/ocr/opencv2.framework/opencv2\'

It works well, if i c

8条回答
  •  Happy的楠姐
    2020-12-03 17:00

    micahp's answer was almost perfect, but missed the simulator version. So modify platforms/ios/build_framework.py to:

    targets = ["iPhoneOS", "iPhoneOS", "iPhoneOS", "iPhoneSimulator", "iPhoneSimulator"]
    archs = ["armv7", "armv7s", "arm64", "i386", "x86_64"]
    

    You'll need to download the command line tools for Xcode 5.0.1 and then run

    python opencv/platforms/ios/build_framework.py ios
    

提交回复
热议问题