SDK iOS 8.0中的产品类型单元测试包需要代码签名 [英] Code signing is required for product type Unit Test Bundle in SDK iOS 8.0

查看:137
本文介绍了SDK iOS 8.0中的产品类型单元测试包需要代码签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

获取


SDK
'iOS 8.0'中产品类型'Unit Test Bundle'需要代码签名

Code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8.0'

我的应用目标是代码签名就好 - 但我的测试目标不是。我买了一台新计算机,从计算机上创建了一个新的开发证书,相应地更新了配置文件,安装了两个,但是无法通过这个代码签名错误。

My app target is code signing just fine - but my test target is not. I bought a new computer, created a new development certificate from the computer, updated the provisioning profile accordingly, installed both, but can't get past this code signing error.

有什么方法可以在本地擦除所有证书/配置文件,这样我就可以重新安装了吗?

Any way of wiping all certs/profiles locally so I can reinstall?

可能是某种bug。

推荐答案

问题是项目受源代码控制,每次拉动.xcodeproj都会更新。由于我的配置文件与源控件中的配置文件不同,因此单元测试目标会自动切换到不编码符号。所以我只需要在每次git pull之后设置配置文件。

The problem is the project is under source control and every time I pull the .xcodeproj is updated. And since my provisioning profile is different than the one in source control, the Unit Test target automatically switches to "Do not code sign". So I simply have to set the profile there after each git pull.

显然,如果部署到设备,如果有单元测试目标,则必须进行代码签名。

Apparently if deploying to a device, if there is a unit test target, it must be code signed.

步骤:

1)将目标更改为测试目标(AppnameTests)

1) Change target to your test target (AppnameTests)

2)确保代码签名身份不是不代码签名。选择要签名的个人资料

2) Make sure "Code Signing Identity" is NOT "Don't Code Sign". Pick a profile to sign with

这就是我必须改变才能让它发挥作用。

That is all I had to change to get it to work.

这篇关于SDK iOS 8.0中的产品类型单元测试包需要代码签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆