XCode4 的 Perforce Checkout 宏 [英] Perforce Checkout Macro for XCode4
问题描述
我想在 XCode 4 中设置一个宏来从 Perforce 中检出当前文件.我怎样才能做到这一点?我确实没有将 perforce 集成到我的项目中,并且不希望这样做.这在 Visual Studio 中非常简单,但我不知道 XCode 等价物.
I'd like to setup a macro in XCode 4 to checkout the current file from Perforce. How can I do this? I do not have perforce integrated with my project and do not wish to do so. This is pretty easy in Visual Studio but I don't know the XCode equivalent.
推荐答案
刚刚在 Perforce.com 上发现了这个作为他们完成这项工作的手段.我试过了,还不错.
Just came across this at Perforce.com as their means of making this work. I tried it, and it's pretty good.
http://answers.perforce.com/articles/KB/2997
根据评论,它也适用于 Xcode 5.
As per the comment, it works in Xcode 5 as well.
现在它已经在 Xcode 6 中进行了测试和工作!
And now it's tested and working in Xcode 6!
如果这不起作用,并且您使用的是 OS X Mavericks,则此人修复了脚本以继续工作.只要确保脚本正确引用 p4 即可.我不得不将它从 /usr/local/bin/p4
更改为 /usr/bin/p4
.
If that doesn't work, and you're using OS X Mavericks, this guy fixed the script to keep working. Just make sure the script references p4 properly. I had to change it from /usr/local/bin/p4
to /usr/bin/p4
.
这篇关于XCode4 的 Perforce Checkout 宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!