1. 程式人生 > >xcode引入opencv以及其他c/c++庫時遇到的錯誤

xcode引入opencv以及其他c/c++庫時遇到的錯誤

#include <list> list.h not found

出現arm64或類似的硬體支援的錯誤

1、在專案target->build setting->compile sources選擇objective-c或according to type ,並且分別編譯一下
2、target->build setting->build active architecture only 修改為yes
3、enable bitcode 修改為no
4、檢查valid architecture 有哪些,支不支援相應架構的硬體