davidgyoung
davidgyoung

Reputation: 64995

Xcode does not show my iPhone as a destination

When try to run my app on my iPhone with iOS 16, Xcode does not show the phone as an option even though it is connected by USB. This used to work.

I have tried rebooting Xcode, my phone and my MacBook but nothing changes.

Upvotes: 2

Views: 4579

Answers (4)

Deqing
Deqing

Reputation: 14652

I found that when I connect to my company's VPN, my iPhone disappears from the destinations list in XCode.

Upvotes: 0

davidgyoung
davidgyoung

Reputation: 64995

As of iOS 16, you need to manually and explicitly enable Developer mode in Settings on your iPhone before you can use it for debugging with Xcode.

Go to Settings -> Privacy and Security -> Developer Mode

For iOS 16 devices you must also have the following on your Mac:

  • Xcode 14+
  • macOS Monterey 12.6+

enter image description here enter image description here enter image description here

Upvotes: 3

Lightwaxx
Lightwaxx

Reputation: 765

I have a new iMac and if you can't see your iPhone in the Run destinations, just run the Get simulators action to download the latest version of the simulators. This is roughly about 8GB.

Once done, your iPhone will be seen immediately.

Upvotes: 3

kiraslu
kiraslu

Reputation: 19

Maybe it will help someone.

I had the same problem, tried everything - nothing helped

I connected the cord to the iPhone on the other side and Xcode saw my device.

Upvotes: 0

Related Questions