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

functionality of app

do i need to transport my app to a iOS device to fully test it? and will a app that crashes in xcode will ever work on a device?

1 Answer

You would definitely want to test on an actual device to fully test the functionality of your app. To do this you would have to join the apple iOS dev program which costs $100 a year.

An app that crashes in the sim will most likely crash on a device depending on the error (for example if your app required the use of a camera at some point in your app, that would crash on the simulator since it doesnt have a camera, but on the device it would run fine). So it depends on the error, but most likely it will crash both places.

if my app require the use of camera the app won't even launch or it will launch but i won't be able to use the camera feature?

it will launch, but whenever the camera appears it will crash. In order for it to work in the sim you have to add some conditionals that bring up the camera if the device has a camera and bring up the photo library it it doesnt. You can see how its done if you go through the ribbit app.

thanks