前期準備
https://www.jianshu.com/p/90605320bb28
創建基礎項目成功後,
1.像開發人員要 開發包 www文件夾(一些html js等)
2.對應放置在新建基礎項目platforms/ios/www文件夾下,注意
cordova_plugins.js
cordova-js-src
cordova.js
plugins
四個文件不要覆蓋,根據需要調整 plugins爲需要插件包可自行添加
3.項目運行報錯(我才用第二種)
std::ios_base::Init::Init()”,referenced from 引用C++文件報錯
ld: symbol(s) not found for architecture x86_64
要解決這個問題,有二種辦法:
1)將XCode?工程中Build Setting -> Apple LLVM compiler Language 標籤下的C++ Language Dialect 和 C++ Standard Library 屬性值修改爲 Compiler Default 即可。
2)如果遇上一些工程,改變Apple LLVM compiler Language會導致其他的編譯錯誤,所以,還有一種解決辦法是在Build Phases -> Link binary with Libraries中加一個libstdc++.6.dylib就好了。 --------------------- 本文來自 Gz_Jason_chen 的CSDN 博客 ,全文地址請點擊:https://blog.csdn.net/jason_chen13/article/details/62889247?utm_source=copy