iPhone won't connect in Xcode 6 beta

2019-01-27 12:40发布

问题:

I updated both iOS 8 and Xcode 6 beta. When I connect my phone, it shows up as "ineligible device" where you select which platform you want to run on.

When I try to run the project on my actual iPhone, an error message in Xcode appears that says:

An error was encountered while enabling development on this device.

If anyone knows how I can fix this, I would much appreciate it because I haven't found much info on this error message.

回答1:

I've had the same problem. I closed Xcode made sure my phone was connected then reloaded Xcode and that worked for me.



回答2:

For me changing the Command Line Tools to Xcode 6 (instead of Xcode 5.1.1) under "Preferences" -- "Locations" -- "Command Line Tools" did the trick..



回答3:

XCode proposes restarting the device and that doesn't work. Instead restarting XCode itself did the trick for me.



回答4:

After installing new version Xcode, propose install additional components for debugging. If these components not installed, propose Xcode again for installation. Simplest way to check for existence of required components:

  1. Relaunch Xcode
  2. Install required components

This is worked for me!



回答5:

I got stuck on this for forever. Make sure that you didn't choose "Don't Trust" with the computer. If you did, then you will need to make the prompt come up again, and choose "Trust". If your phone is jailbroken, make sure you don't have any tweak (NoAnnoyance for me) that auto chooses "Don't Trust".