gpt4 book ai didi

ios - Cordova ,错误 : does not appear to be an xcode project (no xcode project file) when installing plugins

转载 作者:行者123 更新时间:2023-11-29 12:55:31 26 4
gpt4 key购买 nike

我正在按照文档尝试为 iOS 创建 Cordova 应用程序。我在 OSX Maverick 上使用 3.3 版,这是我所做的:

cordova create hello com.example.hello HelloWorld
cd hello
cordova platform add ios
cordova plugin add org.apache.cordova.device

此时,cordova 提示缺少 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)

我想知道我做错了什么以及如何解决这个问题?

最佳答案

我想通了。路径中有特殊字符([]),可能导致nodejs的文件搜索出现问题。当文件夹移动到没有此类字符的位置时,错误消失了。

关于ios - Cordova ,错误 : does not appear to be an xcode project (no xcode project file) when installing plugins,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21246273/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com