在xcode8中使用真机调试错误解决办法

来源:互联网 发布:juniper networks mac 编辑:程序博客网 时间:2024/06/09 18:05

错误一:Failed to create provisioning profile.


解决办法:

1.新建一个空的工程,把原来项目的Bundle Id复制粘贴过去

2.在Product Name 下面有一个Team,选中真机调试的Team账号,然后创建空项目就会生成描述文件了

3.clean一下原来的项目重新打开就可以了



错误二:The 'Apple Push Notification' feature is only available to users enrolled in Apple Developer Program...


解决办法:
1.打开project.pbxproj,搜com.apple.Push 改成enabled = 0(在projectName.xcodeproj文件上右键“显示包内容”,用文本编辑器打开“project.pbxproj”文件)
2.在build settings里搜索code sign,并把后面的路径清空
3.重新编译
0 0