Xcode target specifies product type 'com.apple.product-type.bundle.unit-test'

最近打开Xcode编译、运行开发的程序,虽然都success,但是一直有个warning:

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。
文章来自:http://www.cnblogs.com/coder-mh/p/4761088.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3