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

来源:互联网 发布:手机麻将源码 编辑:程序博客网 时间:2024/06/05 08:50
           最近打开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这是因为先前使用xcode6 beta版运行过程序,现在使用xcode5运行程序造成的。解决方法:1.定位到自己程序的文件夹2.选中后缀是xcodeprog文件,右键,显示包内容3.找到后缀是pbxproj的文件,右键,打开。4.搜索所有的 com.apple.product-type.bundle.ocunit-test , 并且用 com.apple.product-type.bundle替换之。5.保存,再次运行程序warning就消失了。小结:   当使用xcode beta打开程序之后,再次使用xcode5就有可能出现这个问题。现在直接使用xcode6来,不要再使用beta版本的xcode。
0 0
原创粉丝点击