升级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)

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值