最近打开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