Unable to run app from Xcode on iPhone without disabling debug

I am unable to run my app from Xcode on iPhone without disabling debug in Scheme (or selecting "Ask on Launch" for Executable). I am running Xcode 12.5. I have seen similar issues posted for earlier versions. Is anyone else seeing this issue? Is there a better workaround? I have recreated all of my certificates and profiles...but still no luck. My only options seems to be disabling debug in Scheme.

By the way, I can pick any simulator and run on it without any issues at all. The issue is ONLY when attempting to run on physical device (connected via wire).

Thanks,
Ricky

If you create a new test project from one of Xcode’s built-in templates, are you able to get that running on the device?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

@eskimo,

Thank you for the reply. This is interesting. Yes, that does work (running a test app). The app that is having an issue is actually a React Native app, opened in Xcode for building/testing. I have never had an issue with it in the past, running via Xcode on my device. Like I said, it runs fine in the Simulator...and fine on the device if I disable debug in the Scheme. Any ideas?

Yes, that does work (running a test app).

OK. This tells us it’s something tied to this project rather than a general problem with your Xcode setup.

The next step is always: Try doing a clean build (Product > Clean Build Folder and then Product > Run). Does that help?

If not, try this:

  1. Create a new user account on your Mac.

  2. Copy your project’s source code to that account.

  3. Try it there.

This will tell you whether the problem is tied to your project or some latent state associated with this project on your user account.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I have tried the "Clean Build Folder" many times...and the behavior is the same

OK. And what did you see when you tested with a new user account?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Unable to run app from Xcode on iPhone without disabling debug
 
 
Q