Xcode: 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:
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
Steps:
- Choose the problematic scheme
- Edit Scheme
- Choose Run
- Uncheck “Debug executable”
- Clean Derived Data: ⌘ Cmd + ↑ Shift + K
- 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