Xcode 4 - “No iOS device connected” with iPod touch 2

I have two touches of the iPod. One of them is the 2nd generation of iOS 4.2.1, and the second is the 4th generation running iOS 4.3. I have the same provisioning profile installed on both of them.

My application works fine on a 4th generation device.

With the second generation, when I look at my device in the organizer, everything looks good, there is a green dot next to the device, and this shows that the profile is installed. But when I try to run the application, I get the above error.

The deployment target for my application is iOS 4.0.

Like a week ago, I used Xcode 3 and everything worked fine. Over the past week, I upgraded to Xcode 4, and also updated the profile since the old one has expired. I installed a new profile on both devices - and the following situation appeared.

By the way, if you are a new developer, and you come to this question, I suspect that your problem is different from mine. This question was answered in general form many times earlier; some of them are related to here .

I tried reinstalling the profile, as well as restarting both my device and the computer. Bad luck.

+4
source share
3 answers

I needed to change the schema settings. I installed it on an "iOS device". This works great for my new iPod. But for the older one, I had to change it to the device name of my old iPod. It was of the form "William Jockusch iPod (4.2.1, redefining Base SDK 4.2)."

Annoyingly, Xcode appears when resetting this setting every time the device changes. Therefore, I have to install it again every time I exchange devices.

+1
source

Try deleting profiles (and not just reinstalling) in the Organizer and reinstalling them, deleting profiles on the device (and not through the Organizer), and then reassigning the profiles in the build settings for all SDKs and iOS debugging mode. It can do the job.

0
source

Yes, renaming the circuit worked for me as well. it is very useful! I was able to duplicate the circuit and add a new one, so it saves it when I close and open xcode again.

0
source

Source: https://habr.com/ru/post/1345351/


All Articles