HJ-第二周,真机调试
报错:
Showing Recent Issues
Huiju_app requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.1’
需要描述文件:![](https://images2015.cnblogs.com/blog/679255/201612/679255-20161204140833349-1779899509.png)
报错:明显是网络问题
![](https://images2015.cnblogs.com/blog/679255/201612/679255-20161204140905974-890250454.png)
报错,缺少描述文件provisioning profile
![](https://images2015.cnblogs.com/blog/679255/201612/679255-20161204140942365-654273780.png)
使用流量登录,下载证书
正确的姿势:
1.去开发者网站,下载证书和描述文件,双击证书导入钥匙串,双击描述文件导入xcode
上面是证书,下面是描述文件
![](https://images2015.cnblogs.com/blog/679255/201612/679255-20161204141051927-2127904592.png)
设置profile
![](https://images2015.cnblogs.com/blog/679255/201612/679255-20161204141126974-202403835.png)
project 和 target都要设置
![](https://images2015.cnblogs.com/blog/679255/201612/679255-20161204141205818-991232798.png)
修改bundle identifier
![](https://images2015.cnblogs.com/blog/679255/201612/679255-20161204141241427-1134094410.png)
2.勾选Automatically manage signing,报错,之前提示联网失败:
![](https://images2015.cnblogs.com/blog/679255/201612/679255-20161204141318162-2041492263.png)
其实不行的原因是网速太慢了,😓
3.Team选择公司
4.Status提示错误:
Your account already has a signing certificate for this machine but it is not present in your keychain. To create a new one, you must first revoke the existing certificate.
你的账号对这台机器已经有一个签名的证书,但是这个证书不在你的keychain里面,你必须revoke已经存在的这个证书才能创建一个新的
shift + cmd + f去掉格式5.点revoke,没有报错了,可以正常运行了