真机调试
App installation failed
Could not write to the device.
错误发生的条件:
在testFlight 上下载的测试包,出现闪退,然后再次真机测试,出现以上错误,Stack Overflow 有回答说,clean 项目:该保存消失,又出现以下错误。
App installation failed
A valid provisioning profile for this executable was not found.
自动签名 的问题:
如果在xCode 中,点击项目名称, Project 和 target 中手动设置了开发者证书和发布证书,签名证书,再在general中设置 签名的profile 时,会直接报错:
APP NAME has conflicting provisioning settings.
APP NAME is automatically signed, but code signing identity iPhone Distribution:TEAM ID (OOOOOXXXXX) has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
这个好像是 xCode 9.3 才有的错误,之前没有见过,之前手动设置之后,这里还可以设置,也许是我记错了。
xCode 9.3之后,设置了自动签名要把 setting 里面的签名设置为iOS developer 。和 iOS distribution 挨着的那个,不是下面的你之前手动设置过得。
Code Signing Error: APP NAME has conflicting provisioning settings. APP NAME is automatically signed, but code signing identity iPhone Distribution:TEAM ID (XXXXXOOOOO) has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 11.3'