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

Rick_HK
2 min readApr 5, 2021
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. Choose the problematic scheme
  2. Edit Scheme
  3. Choose Run
  4. Uncheck “Debug executable”
  5. Clean Derived Data: ⌘ Cmd + ↑ Shift + K
  6. 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

--

--

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