1

自从升级到 Mac OS X Mountain Lion 后,“/usr/bin/svnversion”就不见了。如何解决此错误?

Can't exec "/usr/bin/svnversion": No such file or directory at /Users/realmasse/Library/Developer/Xcode/DerivedData/ExamGame-gvcepttntbnapmeeeyndutgfakbn/Build/Intermediates/ExamGame.build/Debug-iphonesimulator/HOE.build/Script-C428913C15B9011A0029ED43.sh line 16.
Use of uninitialized value $version in pattern match (m//) at /Users/realmasse/Library/Developer/Xcode/DerivedData/ExamGame-gvcepttntbnapmeeeyndutgfakbn/Build/Intermediates/ExamGame.build/Debug-iphonesimulator/HOE.build/Script-C428913C15B9011A0029ED43.sh line 29.
/Users/realmasse/Library/Developer/Xcode/DerivedData/ExamGame-gvcepttntbnapmeeeyndutgfakbn/Build/Intermediates/ExamGame.build/Debug-iphonesimulator/HOE.build/Script-C428913C15B9011A0029ED43.sh: No Subversion revision found at /Users/realmasse/Library/Developer/Xcode/DerivedData/ExamGame-gvcepttntbnapmeeeyndutgfakbn/Build/Intermediates/ExamGame.build/Debug-iphonesimulator/HOE.build/Script-C428913C15B9011A0029ED43.sh line 31.
Command /bin/sh failed with exit code 255
4

1 回答 1

1
  1. 确保您将最新的 Xcode(4.5 版)安装为/Applications/Xcode.app.
  2. 在 Xcode 的首选项中,转到下载,然后是组件,并确保安装了命令行工具。
  3. 从命令行(例如在 Terminal.app 中),运行:xcode-select --switch /Applications/Xcode.app
于 2012-09-24T04:50:16.400 回答