2013-10-29 83 views
6

當我嘗試以前運行工作的git命令後,我得到這個:git的錯誤「無法找到xcodebuild聯編」一招鮮OS X小牛升級

dyld: Symbol not found: _sqlite3_intarray_bind 
    Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 
    Expected in: /opt/local/lib/libsqlite3.dylib 
in /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 
git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly! 
git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch 

我怎樣才能解決這個問題?

回答

0

也許你應該爲Mavericks安裝Xcode 5.0.1。檢查更新。

+1

問題恰好與我的電腦上的配置相同 – Philip

7

如果您已經安裝了Xcode中,您可以運行以下命令來確定並指向正確的位置

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer 

或者使用AppStore上安裝最新的Xcode。

12

經過大量的搜索和混淆後,以下步驟導致解決方案(安裝Xcode)。有些可能是可選的,所以請隨時詳細說明這一點,因爲我不是這些錯誤的專家。

  • 下載小牛的命令行工具https://developer.apple.com/downloads/
  • Xcode中,選擇--install
  • 須藤的Xcode選-switch /庫/開發/ CommandLineTools
  • 釀造安裝在sqlite3的
  • 註釋掉DYLD_LIBRARY_PATH進入我的.bashrc文件
+0

感謝您的這些步驟。 – abathur

+0

您不需要下載小牛命令行工具/成爲開發人員。您可以從第2步開始(假設您至少有新的xcode) – jQwierdy

+0

在將命令行工具更新到版本6.0 for OSX 10.9後嘗試安裝redmine插件時,出現OP錯誤。關鍵是要運行命令「sudo xcode-select -switch/Library/Developer/CommandLineTools」來解決我的錯誤。謝謝! – Kirkland

29

這適用於我sudo xcode-select --switch /Library/Developer/CommandLineTools/

+0

這適用於我! – Lisa

+0

我有xcode和另一個xcode測試版。卸載測試版後,我得到「錯誤:執行時失敗:/ usr/bin/otool -L/usr/bin/install_name_tool」。然後我做了這個突擊隊,它再次運作。 – LetsGoRangers

+0

我做了'sudo xcode-select --switch/Applications/Xcode.app',但這並沒有解決我的問題。爲什麼你的方法解決了這個問題? – crisron