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 trialJack Campbell
1,822 PointsHow do I connect my iPhone to the simulator.
At the end of the video, Ben plugs his phone into the computer and than runs the app on the phone. I just plugged in my phone and a bunch of options showed up I tried all of them and non of them connected to my phone. Can you tell me how I can connect it like the video does?
2 Answers
Stephen Whitfield
16,771 PointsYou need to have an Apple Developers account for that to work. From the Apple Developer docs:
"Run Your App on a Connected Device
To run your iOS app on a device (an iPad, iPhone, or iPod touch) during development, the device must be connected to your Mac, and the device must be provisioned for development by Apple. If your Mac app uses certain Apple technologies—such as iCloud, Game Center, and In-App Purchase—your Mac must be provisioned.
Apple implements an underlying security model to protect user data and to protect your app from being modified and distributed without your knowledge. Throughout the development process, you create assets and enter information that Apple uses to verify the identify of you, your devices, and your apps. These assets include provisioning profiles, which identify your development devices.
To obtain a provisioning profile for a device, you need an Apple Developer Program membership."
Michael Hulet
47,913 PointsYou don't need a Developer Program account. Check out this blog post
Stephen Whitfield
16,771 PointsYikes. You would need to jailbreak your phone first if you went that route. And jailbreaking is not only risky, but illegal in some countries (and probably will be in the US in 2015). Just a heads-up!
Michael Hulet
47,913 PointsOn the contrary, it's actually quite safe. Cydia Substrate has numerous safeguards built in to make sure you're safe if anything breaks. If all of those fail, however, you can always put your iPhone into DFU Mode and restore it in iTunes. It is literally impossible to break something so bad that you can't do that.
Also, it's explicitly legal in many countries, including (but not limited to) the US, Canada, India, the UK, New Zealand, and any member of the European Union. With the passage of recent bills and public outcry over similar topics, it's highly unlikely that the US will outlaw it any time soon. It's probably legal in (at least) Singapore and Canada, though it's a bit of a gray area. In my (admittedly short, non-extensive) research, I wasn't able to find a single country that specifically bans it.
With all the benefits in terms of customization and the amount it eases development, I personally don't see why you wouldn't
Stephen Whitfield
16,771 PointsFrom what I found (also short-lived research), it's illegal for tablets, but not for phones at the moment. I always err on the side of just keeping my OS just as Apple would have wanted it - straight from Apple. Besides, if you want to put your app in the App Store, you're going to have to pay the $99 anyway. If you're in it for the fun, though, I'd definitely consider that another option.