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。

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

时间: 2024-11-24 21:22:29

Xcode target specifies product type 'com.apple.product-type.bundle.unit-test'的相关文章

Showing All Messages : error: open /Users/apple/Library/Developer/Xcode/DerivedData/PDoctor-dkhmpttmnuppvbcxijlcxacfpzcl/Build/Products/Debug-iphoneos/PDoctor.app/EaseUIResource.bundle/[email protected]: N

2报错 Showing All Messages : error: open /Users/apple/Library/Developer/Xcode/DerivedData/xxx-dkhmpttmnuppvbcxijlcxacfpzcl/Build/Products/Debug-iphoneos/xxx.app/EaseUIResource.bundle/[email protected]: No such file or directory 解决: 把文件夹这里边删除掉   /Users/

C语言 结构体指针赋值 incompatible types when assigning to type 'char[20]' from type 'char *'

strcpy(pstudent->name, "guo zhao wei "); 为什么错误,该怎么写,(红色行) 追问 为什么不能直接赋值啊, 追答 用char nnnn[20]定义的,用strcpy 用char *ppp定义的,用=来赋值 C语言 结构体指针赋值 incompatible types when assigning to type 'char[20]' from type 'char *'

用GPIO_WriteBit时产生enumerated type mixed with another type警告

在keil里面写STM32程序,这样写GPIO_WriteBit(GPIOC,GPIO_Pin_9,1),编译的时候就报enumerated type mixed with another type警告,  这说明数据类型混用了,进入GPIO_WriteBit函数发现其原型是void GPIO_WriteBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, BitAction BitVal)这样的 ,BitAction这个是枚举,所以要类型转换 即把GPIO_W

jauery改变inout的type属性报错type property can’t be changed

uncaught exception type property can't be changed 使用代码$("#pwd").attr("type","password")时出现上面的错误. 猜测是该版本jQuery不允许修改控件type属性,使用原生js语句可以解决这个问题. [javascript] view plain copy $("#txtpwd").focus(function () { if ($(this).

Found more than one concrete type for given DbContext Type (xxx.xxxx.xxx) define MultiTenancySideAttribute with Tenant

错误提示: Found more than one concrete type for given DbContext Type (Abp.Zero.EntityFramework.AbpZeroCommonDbContext`2[Easyman.Authorization.Roles.Role,Easyman.Users.User]) define MultiTenancySideAttribute with Tenant. Found types: Easyman.EntityFramewo

Host does not support domain type kvm for virtualization type 'hvm' arch 'x86_64'

kvm创建虚拟机报错: qemu-img create -f qcow2 /tmp/centos.qcow2 10G virt-install --virt-type kvm --name centos --ram 1024 --disk /tmp/centos.qcow2,format=qcow2 --network network=default --graphics vnc,listen=0.0.0.0 --noautoconsole --os-type=linux --os-varian

Unable to cast object of type 'System.Int32' to type 'System.String'.

最近在研究.netcore,尝试把前后端完全分离.但是在写接口的时候,Post参数是FromBody的时候报错了 Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1] An unhandled exception has occurred while executing the request. System.InvalidCastException: Unable to cast object of type

JAVA错误提示:The operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields.

平时没怎么注意,今天用Eclipse自动生成Set Get方法时提示错误,错误信息如下: The operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields. 原因: 解决方案:将光标定位到类内部自动生成Set.Get即可 原文地址:https://www.cnblogs.

PostgreSQL Type的创建与Type在函数中的使用

postgres=# create type complex as(postgres(# r double precision,postgres(# i double precisionpostgres(# );CREATE TYPEpostgres=# create type inventory_item as(postgres(# name text,postgres(# supplier_id integer,postgres(# price numeric);CREATE TYPEpos