使用个人Apple ID真机调试

----- 1、添加个人账号


----- 2、download证书


----- 3、这一步是最恶心的,你添加完以后,发现会报错



这是因为使用的app id不能注册到我的Team中。这个实在新创建工程的时候需要指定一下team。下图这个东西就是:


当出现这个问题时:

Failed to create provisioning profile.

The app ID "xxx.xxx.xxx.xxx" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.

到时候,可以重新创建一个空白的project,在Team中选择一个AppleID,然后进入它的General页面,将它的Boundle Identifier复制出来,贴到自己的项目中的Boundle Identifier中就行了,运行一下


大功告成~

ps:Boundle Identifier改回去他是绝对不好使的