前几天xcode在真机运行的时候会出现App Installation failed, No code signature found.问题,看了很多blog都无果,最后还在在Apple Developer Forums终于找到了解决办法。
首先,打开终端 执行
sudo chmod -R 777 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
这一步是为了修改文件夹权限,不然是不能写入的
接下来打开/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist,修改CODE_SIGNING_REQUIRED字段为YES。保存
最后重启xcode,搞定。
虽然看起来很简单,但是足足坑了我一天的时间啊!!拜托苹果下次走点心行不
![](https://img.haomeiwen.com/i711440/86ac75f44d281826.jpeg)
网友评论
试了一个方法:cmd+shift+K,貌似暂时成功了
Clean了一下成功了,但还不确定是不是完美的解决方案
xcode: project > build setting and set signing > code signing identity > iOS developer