Xcode错误集合(unable to boot the simulator,无法真机测试等)

1

在Xcode中当你在更新了你得证书而再重新编译你的程序,真机调试会出现“Your build settings specify a provisioning profile with the UUID‘XXX’, however, no such provisioning profile was found. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center.”。解决方案如下:
这里所说的就是要通过修改你的项目的.xcodeproj文件来解决上述的错误。

1.找到项目中的**.xcodeproj文件,点击右键,show package contents(打开包内容)。
2.打开后找到project.pbxproj文件,用文本编辑器打开。其实就是右键,点击open就好了。
3.打开这个文件后,按command+F,在这个文件中查找“PROVISIONING_PROFILE",找到和这个“

PROVISIONING_PROFILE = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";”类似的都删除。

4.然后保存文件,重新打开项目。xcode会提示你重新下载安装provisioning profile文件。下载后安装上就可以。


还不行的话,重启电脑试试,重启可以解决好多bug.

2 模拟器打不开 unable to boot the simulator解决方法

以下方法可以解决CoreTelephony trace file error,但是解决后PD10依然打不开。
说明:主要是/tmp目录权限的问题,关闭“SIP”(关于SIP,请自行百度)保护后即可修改权限。
先关闭SIP
1、重启 Mac,按住 Command+R 键直到 Apple logo 出现,进入 Recovery Mode
2、点击左上角Utilities > Terminal
3、在 Terminal 中输入 csrutil disable,之后回车
//到这里重启试试,不过不行再继续第四步
4、重启 Mac,在Terminal修改权限:sudo chmod 1777 /tmp
打开SIP

5、重新执行1-3步骤,改为 csrutil enable

3

(11.29更)
A valid provisioning profile for this executable was not found.
一翻译你就知道是provisioning profile 缺失.但是大部分情况是打包后没改release到debug模式.

4 无证书真机测试:

Verify the Developer App certificate for your account is trusted on your device. Open Settings on Pad and navigate to General -> Device Management, then select your Developer App certificate to trust it.

解决方法:手机(真机)中点击设置(Settings) -》 通用(General)-》设备管理(Device Management)-》点击对应的id -》信任(Trust)

5 control reaches end non-void function

函数没写返回值

6 Provisioning profile "" doesn't include signing certificate "iPhone Distribution:

以前我是重新生成证书,现在觉得太傻.

以下,亲测可用


Xcode错误集合(unable to boot the simulator,无法真机测试等)_第1张图片
Paste_Image.png

http://stackoverflow.com/questions/39568005/xcode-8-shows-error-that-provisioning-profile-doesnt-include-signing-certificat

你可能感兴趣的:(Xcode错误集合(unable to boot the simulator,无法真机测试等))