1
我正在嘗試爲iOS創建Cordova應用程序的文檔。我使用OSX特立獨行的3.3版本,這是我做的:Cordova,錯誤:安裝插件時看起來不是xcode項目(沒有xcode項目文件)
cordova create hello com.example.hello HelloWorld
cd hello
cordova platform add ios
cordova plugin add org.apache.cordova.device
在這一點上,科爾多瓦抱怨缺少的Xcode項目:
Fetching plugin from "org.apache.cordova.device"...
Starting installation of "org.apache.cordova.device" for ios
/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126
throw e;
^
Error: does not appear to be an xcode project (no xcode project file)
at Object.module.exports.parseProjectFile (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/platforms/ios.js:143:19)
at Object.ActionStack.process (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/util/action-stack.js:34:49)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/install.js:380:20)
at /usr/local/lib/node_modules/cordova/node_modules/plugman/src/install.js:331:20
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:760:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:574:44
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)
我不知道我做錯了什麼,以及如何解決這個問題?
我認爲cordova抱怨xcode項目不存在於插件中,因爲它確實存在於'platforms/ios'。但是這些插件不應該有一個xcode項目。 –