2010-09-28 45 views
2

我正在嘗試使用xCode編譯Brief(http://github.com/capttaco/Briefs)的「compact-briefs」-target。xCode構建錯誤,試圖構建命令行Briefs線框

但我每次運行構建時我得到這個錯誤:

target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphonesimulator' platform

哪些錯誤?

回答

1

工具(命令行實用工具)不是iOS的有效目標。

具體而言,您的選擇,當iOS的目標是:

  • 應用

  • 靜態庫

你需要在Xcode中創建一個新的目標(可能是一個靜態庫)編譯該程序(並在構建靜態庫時刪除main條目)。從技術上講,你可以改變現有的目標 - 但我建議創建一個新的目標,因爲改變現有的目標可能會打破別人的東西。