最近打開Xcode編譯、運行開發的程序,雖然都success,可是一直有個warning:xcode
target specifies product type 'com.apple.product-type.bundle.unit-test', but there's no such product type for the 'iphoneos' platform 這是由於先前使用xcode7 beta版運行過程序,如今使用xcode6運行程序形成的。 解決方法: 1.定位到本身程序的文件夾 2.選中後綴是xcodeprog文件,右鍵,顯示包內容 3.找到後綴是pbxproj的文件,右鍵,打開。 4.搜索全部的 com.apple.product-type.bundle.ocunit-test
, 而且用 com.apple.product-type.bundle
替換之。 5.保存,再次運行程序warning就消失了。 小結: 當使用xcode beta打開程序以後,再次使用xcode6就有可能出現這個問題。如今直接使用xcode6來, 不要再使用beta版本的xcode。 com.apple.product-type.bundle.ocunit-testcom.apple.product-type.bundle