2012-09-03 75 views
4

好吧,所以我花了整整一天的時間在網上搜索爲什麼發生這種情況。 我已經安裝了iOSOpenDev XCode模板,並且我打開了一個新的命令行工具項目,它給了我這個錯誤:iOSOpenDev命令行工具生成錯誤

target指定產品類型'com.apple.product-type.tool',但是沒有這樣的「iphoneos」平臺的產品類型

有誰知道如何解決這個問題?提前致謝。

回答

4

這必須是安裝問題。重新安裝iOSOpenDev並檢查其安裝程序日誌中是否有錯誤。我有同樣的問題,並通過以下兩個步驟解決它。

 
1) xcode-select must point to the correct xcode location, for example run the following line in Terminal: 
$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer 

2) You must agree xcode license in Terminal 
$ sudo xcodebuild -license 
$ xcodebuild -license 

之後,重新安裝該工具,它應該工作。

+0

非常感謝。 –