升级xcode10遇到unable to launch ***,解决办法

周末媳妇看我手机是ios11.x,她要给我升级到12,本人大喊不要,还是被她给升了。

周一上班了,发现我的xcode9.x不能在ios12上面调试。
必须先升级macOS到10.14,再升级xcode到10。苹果真是毁人不倦。

然后发生了一些问题挨个折腾:

问题1】证书签名需要重新导入。
同事说xcode有问题,必须先设置成"automatically manage signing",再选择provisioning profile才能重新加载成功。
从钥匙串删掉原有的开发秘钥,将签名文件xxxx.mobileprovision和密码.p12分别双击,重新加载签名秘钥。


【问题2】每次运行都要输入管理员密码的问题,将开发者钥匙串改成所有人都可以访问解决。

 

【问题3】更让人郁闷“unable to launch xxxx”,网上搜了一大堆各种办法。折腾了一天十几个小时(水平太菜了),才找到解决办法。

https://stackoverflow.com/questions/34459488/xcode-could-not-launch-app-unable-to-attach/34460723

 

I was having this problem while using Xcode 9.2 and iOS 11.2. After much googling, the only thing that solved all of my issues was turning off "Debug executable" in my scheme. This can be found under Product > Scheme > Edit Scheme > Run (on the left menu).

Prior to this, I tried a lot of different solutions including deleting my derived data, restarting my computer, and switching the launch in my scheme to "Wait for executable to be launched" instead of "Automatically". Switching the launch setting in my scheme allowed the app to launch on my phone, but the Xcode debugger and safari debugger still would not connect to my app.

This is the article where I found the solution: https://exceptionshub.com/xcode-beta-error-iphone-has-denied-the-launch-request.html

 

【问题4】xcode10调试运行提示unable to launch ***(这里的Bundle Identifier 字符串是旧的,不是你新设置的)

xcode9却没有这个问题。
xcode10需要设置
Product =>
Scheme =>
Edit Scheme =>
Run  Debug => Info => Executable选项 需改成 项目本身(不能设置成 Ask on launch)

你可能感兴趣的:(xcode)