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

I can't run the RestaurantFinder app in the simulator in Xcode.

I downloaded the source code for the RestaurantFinder from the iOS Development with Swift 2.0 course and I keep getting this error:

A build only device cannot be used to run this target.

No supported iOS devices are available. Connect a device to run your application or choose a simulated device as the destination.

5 Answers

Xcode 7.2.1

I downloaded the RestaurantFinder app from Treehouse.

You might want to update to the latest (7.3.1). RestaurantFinder has a Deployment Target of iOS 9.3, which I believe is the version that ships with Xcode 7.3.1.

I suppose you could also try lowering the deployment target, but then you may run into API compatibility issues in the project.

Hi Aaron,

I've seen this before, too. I believe you need to go to the device dropdown menu and select a simulator device. Right now it probably says, "Generic iOS Device". Click on that and select something like 'iPhone 6 Plus'. Hope that helps. (I'd post a screenshot, but I am not sure if it's possible here.)

Jeremy

Only Generic iOS Device is listed.

http://i.imgur.com/k9yMzu4.jpg

Ok. What version of Xcode are you running? This might be a mismatch between the Xcode version of iOS and the version the RestaurantFinder project is targeting.

I am updating the Xcode now.

Hopefully this won't take too long.

I'll reply back once Xcode has finished updating.

Thanks again for everything!

That was it!

Major thanks!

Great! You're welcome.

  • Jeremy