文章目录
没有证书也能调试iOS的项目,需要使用Apple id,并申请一个临时证书就可以调试,而且苹果公司也是允许开发者这么做。
步骤
1. Apple id
首先你得是一个开发者,需要有一个Apple id,没有的话注册一个。
2. 添加账号
在Xcode-Preferences->Account下添加自己的Apple id
账号。
3. 添加Apple Develepment Certificates
选择添加的Apple id,点击右下角Manage Certificates,打开如下窗口,点击
Apple Development添加一个证书。
4. Xcode配置
Bundle id就直接填自己项目名称就行。
另外Code Sigin Identifier需要选择iOS Deveper:
5. 真机信任证书
上面四个步骤完成后,编译项目不会报错,但在真机上运行会弹窗口提示,需要在手机的设置->通用->设备管理下点击证书,信任。如图:
Unable to install "xxx
当App数量限制最多3个,在装第四个的时候会报如下错误:
Unable to install "xxx
The maximum number of apps for free development profiles has been reached.
Your maximum App ID limit has been reached. You may create up to 10 App IDs every 7 days.
Showing Recent Issues Communication with Apple failed: Your maximum App ID limit has been reached. You may create up to 10 App IDs every 7 days.
这个报错很明显了,登录后台删除AppId吧。