码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2015-08-26 20:00:21      阅读:425      评论:0      收藏:0      [点我收藏+]

标签:

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

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

标签:

原文地址:http://www.cnblogs.com/coder-mh/p/4761088.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!