简体   繁体   中英

iOS: Failed to launch .app file

I don't know why it is looking for directory inside my .app file. Every time I run application it installs the App on iPhone but doesn't run and gives below error. Could anyone please tell me where's this settings stored? Thanks.

error: failed to launch '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp- ccbvvzjjzvwuerchrpulknxtenoq/Build/Products/Debug-iphoneos/MyApp.app/MyApp' -- No such file or directory (/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-ccbvvzjjzvwuerchrpulknxtenoq/Build/Products/Debug-iphoneos/MyApp.app/MyApp)

Try with:
1 - remove the app from the iPhone.
2 - remove the contents of the DerivedData folder.
3 - Clean & Build the project, restart Xcode, and reboot your device.

EDIT:
Now for the step 2 in Xcode 5 you can delete the derived data from the Organizer, just select the Projects tab, select you project and click the "Delete…" button on the right.

If, like me, you see this error in XCODE 6 : “process launch failed: NotFound"

I finally find that the "not found" thing is about the device itself. It was well recognised in the Organizer and everything was working before but xcode didn't managed to run the app on it.

What worked for me : simply try to reboot your device and voila :)

Too bad XCODE still has such unclear error messages! A little more details could spare a lot of hours...

I had the same problem. I tried with restarting the Xcode and deleting the app form device and it worked. Before trying anything complex try this It should work for you also.

每当我收到消息“无法启动.app文件”时,我总是检查我的代码签名设置...通常会在我忘记将代码签名身份从发行版更改回开发人员时发生

For me restarting of Xcode, cleaning DerivedData and restaring device wasn't enough in most cases, until I had figured out that iTunes was also running, and after quitting iTunes everything worked fine!

So my steps now are simple:

1. Quit Xcode.
2. If iTunes is running, quit iTunes.
3. Reopen project.

No need to remove app, clean project or restart device.

我清理了我的临时配置文件,重新启动了iPhone,然后重新启动了计算机,这对我有用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM