Chipmunk iphonestatic 命令错误

发布于 2024-12-12 13:39:35 字数 438 浏览 0 评论 0原文

所以,我刚刚下载了最新版本的花栗鼠,当我从 finder 运行 iphonestatic.command 时,我在命令行中得到以下输出,

    Last login: Wed Oct 26 22:15:59 on ttys001
PS1:~ Thermo$ /Users/Thermo/Desktop/Programs\ software/Software/iphonestatic.command ; exit;
usage: dirname path
Build settings from command line:
    SDKROOT = iphoneos4.3

xcodebuild: error: 'Chipmunk6.xcodeproj' does not exist.
logout

我无法获取脚本来构建正确的文件,并且一直在尝试解决这个问题出去一段时间, 感谢您的帮助

so, I just downloaded the latest Version of chipmunk, and when I run the iphonestatic.command from finder I get the following output in my Command Line

    Last login: Wed Oct 26 22:15:59 on ttys001
PS1:~ Thermo$ /Users/Thermo/Desktop/Programs\ software/Software/iphonestatic.command ; exit;
usage: dirname path
Build settings from command line:
    SDKROOT = iphoneos4.3

xcodebuild: error: 'Chipmunk6.xcodeproj' does not exist.
logout

I can't get the script to build the proper files, and have been trying to figure this out for a while,
thanks for any help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

糖粟与秋泊 2024-12-19 13:39:36

啊哈!运气好后,我发现路径中某处存在空格可能会导致该错误。

脚本的第一行执行此操作,以便在从查找器运行脚本时将工作目录设置为脚本的父目录:

cd `dirname $0`

当路径中某处有空格时,它会崩溃。不太确定如何修复它...解决方法很简单,只需确保将其放在没有空间的地方即可。

编辑:看起来它只需要多组括号:

cd "`dirname "$0"`"

Aha! After a stroke of luck I discovered that you could cause that bug by having a space in your path somewhere.

The first line of the script does this to set the working directory to the parent directory of the script when running it from the finder:

cd `dirname $0`

It barfs when you have a space in the path somewhere. Not exactly certain how to fix it... The workaround is easy enough though, just make sure you put it somewhere it won't have a space.

edit: Looks like it just needs multiple sets of parens:

cd "`dirname "$0"`"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文