Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App with Swift Deploying to a Device Running on a Device

Josh Schlabach
Josh Schlabach
1,771 Points

I can't download my app to my iPhone! Help!

When I go to project in Xcode and I click my team, it has an issue. It says: No provisioning profiles found.

Then when I click "Fix It," it says:

Unable to create a provisioning profile because your team has no devices registered in the Member Center. Please connect a device, enable it for development, and add it to the Member Center using the Organizer.

I've tried doing some research on it and I can't figure out the problem.

Help?

3 Answers

Jacob Knowles
Jacob Knowles
3,203 Points

More than likely, it's because you don't have a developer's account with Apple. A developers account is $99 a year and one of the features is the ability to simulate on your iPhone. I hope this helps!

-Jacob

Josh Schlabach
Josh Schlabach
1,771 Points

I've had my developer account for about 8 months now.

Sjors Theuns
Sjors Theuns
6,091 Points

Hi Josh,

I do not think there is a problem with your developer account. The error is suggesting a problem with your provisioning profile.

I could try to type everything out, but fortunately someone already did this. Check out http://codewithchris.com/deploy-your-app-on-an-iphone/. Especially the "Configure the device for development and add the device to the member center" part.

Hope this helps.

Sjors

Mark Weiser
Mark Weiser
2,093 Points

I did all of these answers and mine still wasn't working so I needed one last sprinkle to get it running.

The part that did the trick for me was:

  1. Restarting my computer

  2. Once in xcode, go to 'Window' and 'Devices' as Passan does (shift+command+2).

  3. When you're in 'Devices' right click on your phone icon and click 'Show in Run Destinations Menu'