能否为iOS UI Testing Bundle打上企业证书呢?不行。
![](https://img.haomeiwen.com/i250875/7a20597e5fbe7a7e.png)
![](https://img.haomeiwen.com/i250875/7179b6bd51eec439.png)
但是对于iOS UI Testing Bundle的target并没有Entitlements.plist文件,也没有Capabilities这一栏:
![](https://img.haomeiwen.com/i250875/8ff568c22b702c02.png)
![](https://img.haomeiwen.com/i250875/58f804941e126261.png)
所以我猜测这个UI Testing target需要get-task-allow为True,但企业证书的MobileProvision对这一项设置了为False(用iHex等二进制查看软件可以看到,搜索get-task-allow)。而开发者证书的MobileProvision是可以看到设置为True的。
![](https://img.haomeiwen.com/i250875/a5e0b520a71426cf.png)
![](https://img.haomeiwen.com/i250875/ea13ef655f288792.png)
自然想到是否可以篡改MobileProvision这个文件?
不行诶,修改之后Xcode会载入MobileProvision失败:
![](https://img.haomeiwen.com/i250875/a4d9374e4e653746.png)
好吧,只能乖乖的用回开发者证书了。
网友评论