关于真机调试的问题

由于项目需要我打包,然后我这边就从同事那边要来了证书打包。但是打包可以了,真机调试却不行,后来选择了自动设置,并将之前的描述文件删除,再次运行可以了

development和distribution证书:development证书开发时使用,distribution证书发布时使用。它们跟Xcode的debug和release没有一毛钱关系。development证书允许开发者将app直接"Run"进真机,而distribution证书则不可以。这就是它们直接的主要区别。

选为自动,你可能也不能正常运行,会报错 is automatically signed, but provisioning profile AAAA has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.

你可以在 build settings中按下图进行设置

然后打开"项目名.xcodeproj",显示包内容,打开project.pbxproj 搜索AAAA这个字符,删除即可,注意引号不要删。

你可能感兴趣的:(关于真机调试的问题)