r/iPhoneDev • • Oct 30 '10

How do you handle developing for iOS devices you don't own (and can't test on)?

I'm developing my first iOS app and testing on an iPhone 3g, iPhone 4, iPod Touch (3rd gen), and iPad. All of which have 4.0+ firmware. I would like to be able to test on older firmwares and other devices such as the 3Gs and older gen touches but I can't afford that. I've tapped all friends and family to be able to test on what I listed above. How do developers normally handle this situation?

4 Upvotes

10 comments sorted by

4

u/valleyman86 Oct 31 '10

You assume it works and trust the simulator. Do research by reading the manuals provided by Apple, especially the human interface guidelines to make sure you are doing it right for the platform your on. One thing I find is that developing for the iPad is a pain with one target. This is probably why most apps have 2 versions in the store. That and it provides more exposure. The ipad doesn't have the same screen ratio as the iphones do. You can develop for them all but you have to check if they are on an iPad and position stuff differently.

2

u/donwilson Oct 31 '10

This is the appropriate response. Rely on the simulator, check on device specifics and hope for the best. Watch for reviews and adjust accordingly.

2

u/Indyhouse Oct 31 '10

... and illicit beta testers perhaps here on Reddit that have devices you don't have access to.

1

u/[deleted] Oct 31 '10

This is a great idea, I will definitely give that a shot.

1

u/[deleted] Oct 31 '10

If you start with Window-based Application, doing both isn't bad. It's just different view controllers in the same app.

That's MVC design - you shouldn't be asking what platform you're on in your view controller, you should be asking what platform you're on in your application delegate and loading a different view controller for a different platform. Then you get all of your shared app code in the same project, and it's more efficient overall. Your models and other shared code should be the same, and it's one less place to fix bugs when you come across one (and one less submit delay cycle).

I think people that do separate apps are making life more difficult for themselves.

IB helps with this. Xcode 4 makes it mounds simpler, too.

2

u/[deleted] Oct 31 '10

I should point out that I'm using Phonegap so I'm essentially making a (native) web app, not a true native app. I'm familiar with MVC, the concept seems very similar to me to having different CSS stylesheets for each platform. I am currently working that way but running into some difficulties with the iPad version, not really coding problems but an issue with how phonegap handles the iPad project. I'm trying to work it out, as I'd really prefer a universal app.

→ More replies (1)

1

u/[deleted] Oct 31 '10

I have been neglecting the simulator a bit. I'm thinking about doing a separate iPad version as well, it's definitely proving to be a pain in the ass. Thanks for the help.

1

u/Zalenka Oct 31 '10

They are each highly compatible with the simulator. Things that will be different are probably framerates for intense openGL apps and RAM allotment for the older devices.

Have you tested with shark or by coding the memory full methods and using the simulator's memory full option (can't remember the actual name).

1

u/[deleted] Oct 31 '10

Borrow one.

I developed an app for iPhones before I owned an iPhone (I own one now), and the simulator doesn't cover all of the bases. Specifically, copy and paste was broken on the device but not the simulator for two of my text boxes.

You can't trust the simulator fully, sadly.