- Disconnect your device.
- Delete the app from your device.
- Quit Xcode completely.
- Go to ~/Library/Developer/Xcode/DerivedData and look at the folders there ($ ls).
- Find the one with the app's name in front of it and delete the folder ($ rm -rf ).
- Reopen Xcode.
- Connect your device.
- Build and Run the app (cmd + R).
- Boom.
有时候上网下载应用的demo,或者是自己的应用,都偶尔不时地出现not lauch,找不到app的过程。
具体遇到这些情况的处理方式有:
1。检查证书,当你的证书是测试发布的Distribution类型的证书的时候,往往会出现出现你可以编译成功,但是成功后就无法进入调试模式
处理方式:更换证书
2.检查版本:例如今天,我的手机是6.0,下载的应用默认是6.1版本。所以根本就编译不进去,这样的话我们手机连这个应用都无法安装进去。
处理方式:进入targets-》summary,将Deployment Target 改为你需要编译的最低版本
3.常规性的出现not lauch时候的处理方式:
1。拔掉设备,
2。清除掉设备我们项目的app
3。退出Xcode ,怕退不完整,则退出之后进入强制退出模式检查是否退出
4。Finder-》前往 》/Library/Developer/Xcode/DerivedData 。懒人模式只是直接点击项目最下方的products的app的show in finder 。查看到该项目生成的总目录删除
5。删除干净
6。打开xcode
7。链接设备
7。编译
基本上就都可以了。欢迎补充