CodeSign error: code signing is required for product type Application in SDK iOS

本文介绍了解决iOS真机调试中出现的代码签名错误的方法。主要涉及检查和修改工程设置、证书及描述文件等内容。

转自:http://blog.youkuaiyun.com/lxl20052051/article/details/18701177


在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0'  ,就是说代码签名证书不对劲。


解决方案,


1.选择工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any ios SDK 将选项改为:iPhone Developer

2.重新下载你的证书,或者修改通配符,或者说修改你的appid 。选择工程 -》Bundle Identifier  修改为最新的appid 。造成这种原因是因为你修改了你的app sdk版本。


如果还不行,可以试试
Edit Project Setting 下面的那个菜单:Edit Active Target “Hello World” =》Build =》 Code Signing =》 Any ios 的值设置为iphone Developer





如何解决 错误code signing is required for product type 'xxxxx' in SDK 'iOS 8.2'   


转自:http://www.cocoachina.com/bbs/read.php?tid=298310


大家在做真机调试的时候,或许会遇到这样的问题,那如何去解决?

网上有大把的教程,所以具体的我就不说了,说关键点。

当这种情况出现了:

1.看看自己工程里面的xxx-Info.plist文件里面的Bundle identifier是否正确

2.再看看自己工程中xxxTests里面的xxx-Info.plist里面的Bundle identifier是否保持一致

3.再去targets里面的xxxTests里面的code signing看看是不是跟远文件里面的code signing保持一致。

4.看看targets里面的General 选项 的Identity里面的team,这个里面是否包含了你的描述文件,以及你的设备的UDID是否已经添加到个人账号的设备里。


看来下往上解决的方法。我也参考了,也试验了,再经过自己解决,就搞定了。 

这类问题好像就是你说的那样,要么证书有问题(请求的时候是不是用的相应appleid;开发证书,发布证书是不是都有等),要么profile文件有问题(appid是不是跟bundleid一致;是否选中测试udid等) 





CodeSign /Users/g10macmini1/Library/Developer/Xcode/DerivedData/Unity-iPhone-dislabfktnkpxiadhajppmsnjevc/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UltraGlobalSDK.framework (in target 'Unity-iPhone' from project 'Unity-iPhone') cd /Volumes/ssd/jenkinsworkspace/workspace/QQ13_client_AppPackage_trunk/BuildOutput/xcodeBuild Signing Identity: "iPhone Distribution: Aniplex Inc. (8ARKQ2E7H5)" Provisioning Profile: "Blue Exorcist Japanese New Distribution" (ac68be12-e3de-4bbd-8f79-5f18bc0d517f) /usr/bin/codesign --force --sign 1120F5C9E9CA86E8B4AF44096D7274F82BB265FA --preserve-metadata\=identifier,entitlements,flags --generate-entitlement-der /Users/g10macmini1/Library/Developer/Xcode/DerivedData/Unity-iPhone-dislabfktnkpxiadhajppmsnjevc/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UltraGlobalSDK.framework ProcessInfoPlistFile /Users/g10macmini1/Library/Developer/Xcode/DerivedData/Unity-iPhone-dislabfktnkpxiadhajppmsnjevc/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Info.plist /Volumes/ssd/jenkinsworkspace/workspace/QQ13_client_AppPackage_trunk/BuildOutput/xcodeBuild/Info.plist (in target 'Unity-iPhone' from project 'Unity-iPhone') cd /Volumes/ssd/jenkinsworkspace/workspace/QQ13_client_AppPackage_trunk/BuildOutput/xcodeBuild builtin-infoPlistUtility /Volumes/ssd/jenkinsworkspace/workspace/QQ13_client_AppPackage_trunk/BuildOutput/xcodeBuild/Info.plist -producttype com.apple.product-type.application -genpkginfo /Users/g10macmini1/Library/Developer/Xcode/DerivedData/Unity-iPhone-dislabfktnkpxiadhajppmsnjevc/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/PkgInfo -expandbuilds
最新发布
10-28
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值