1. 程式人生 > 其它 >Xcode9 無證書真機除錯​

Xcode9 無證書真機除錯​

 

 

寫在前面​

公司分配了新的測試機,證書99臺名額已滿,所以上網找教程,學習了一下如何使用Xcode無證書進行真機除錯。​

 

一. 建立證書​

1. 執行Xcode, Xcode–》Preference–》新增賬號(能在appstore下載的賬號)​

 

2. 選中剛才新增的AppleID–》Manage Certificates​

 

3. 點選+ –》IOS Development​

 

 

二. 配置工程​

1. 自定義bundle id開始真機除錯(建立新bundle id—未被其他team使用過)系統會自動repair產生provision檔案​

 

 

三. 信任開發者​

1. 手機(真機)中點選設定(Settings) —> 通用(General)—>裝置管理(Device Management)—>點選對應的id —->信任(Trust)​

2. IOS9下 裝置管理對應的是描述檔案​

 

四. QA​

1. Your account does not have sufficient permissions to modify containers​

 

解決:直接把 BuildSettings – Code Signing Entitlements 中的xxxx.entitlements 直接刪除就可以了​

參考:http://www.qingpingshan.com/rjbc/ios/324142.html​

參考:https://stackoverflow.com/questions/40596802/xcode-8-your-account-does-not-have-sufficient-permissions-to-modify-containers​

 

 

2. does not support the Associated Domains, Push Notifications, and In-App Purchase capabilities.​

1. 解決:關掉推送和內購功能:​

2. 參考:​https://www.jianshu.com/p/f31116a76ea9​​

 

原文連結:https://blog.csdn.net/zhenggaoxing/article/details/79042382​