gpt4 book ai didi

ios - 通过 iOS api 命令创建 phonegap 应用程序时出错

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:21:12 26 4
gpt4 key购买 nike

我是 phonegap 的新手,我试图将它安装在我的 mac 机器上,但出现错误。我正在关注 this link作为引用。

这是我在 mac 机器上运行的代码。

./create ~/desktop/hello com.test.hello hello and i am getting error as:

./create: line 66: dirname: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
./create: /Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/update_cordova_subproject: /usr/bin/python: bad interpreter: No such file or directory

虽然 hello.xcodeproj 是在给定路径创建的,但是当我尝试在 Xcode 中打开它时出现此错误:

Project /Users/administrator/Desktop/hello/hello.xcodeproj cannot be opened because the project file cannot be parsed.

我们将不胜感激。

最佳答案

似乎phonegap没有正确安装。最简单的方法是先从 nodejs.org 下载 node-js,然后使用它的包管理器安装 phonegap。

sudo npm install -g phonegap

安装phonegap后你可以使用

phonegap local create com.test.hello hello

初始化你的项目

关于ios - 通过 iOS api 命令创建 phonegap 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21406381/

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