Xcode: Could not launch “Your App” failed to get the task for process 537

Could not launch “Your App” failed to get the task for process 537

Have you ever tried to launch your app in different scheme but Xcode said it could not launch it? It was perfectly fine to launch in one scheme but not the other scheme. And you received an error prompt just like the above image.

Then you would click the “Details” button to see what went wrong but it gives you some meaningless log:

Detailed error log

I spent 8 hours to search online to see what is happening to my Xcode. Turns out it is one scheme setting that leads to this error: Debug Executable

Edit Scheme

Steps:

  1. Edit Scheme
  2. Choose Run
  3. Uncheck “Debug executable”
  4. Clean Derived Data: ⌘ Cmd + ↑ Shift + K
  5. Run the app again: ⌘ Cmd + R

Then it should be working again ;)

Happy coding!

#iOS #Xcode #scheme #debug #m1 #m1mac #arm #x86_64 #Mac #bigsur #swift #objc #development #iPhone #app

--

--

Hi this is Rick from Hong Kong. I am a native iOS and Android mobile developer and also a tech enthusiast. Find me on Twitter https://twitter.com/rick3817

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rick_HK

Hi this is Rick from Hong Kong. I am a native iOS and Android mobile developer and also a tech enthusiast. Find me on Twitter https://twitter.com/rick3817