General Question

bluemukaki's avatar

Can you test your iPhone apps on the iPad using the developer tools?

Asked by bluemukaki (4332points) November 18th, 2010

So, stupid question – I’m sorry. Can you connect an iPad to the iPhone/iPod app developer tools and it will behave how the iPad works when running an iPhone app (scaled or tiny in the centre of the screen)?

Presumably if you plan to develop both iPad and iPod apps it would make sense to just get the one device – but I can see Apple claiming that you need to buy both to develop because they love money.

Observing members: 0 Composing members: 0

3 Answers

gorillapaws's avatar

You need both. But if you’re just getting your feet wet, then you could start with one device first. Selling software you’ve written without ever testing it on the device it’s for is analogous (although a bit more lethally so) to selling airplanes without having test-flown them first.

bluemukaki's avatar

So you can’t run iPhone apps on the iPad unless they’ve been installed from the app store?

chaingarden's avatar

You can run iPhone apps on the iPad the same way you do on the iPhone, so long as you’ve provisioned it. By default, if you’re working on an iPhone only app and run it on the iPad, you’ll see it in the center o the iPad screen. However, it’s easy to make it full screen.

Here’s how I’ve been doing it:
1. Create a copy of your entire folder for your app. As far I know this process is not easily reversible (though I haven’t looked into it that much).
2. Open up the copy of your app in Xcode.
3. In the lefthand nav column, highlight your Target.
4. In the Project menu, click on Upgrade Current Target for iPad…
5. Select either Universal if you want to use the same XIB files for both or the other option if you want a separate set of XIBs (Interface Builder files) for the iPad UI. For simplicity while first exploring the options, I’ve used Universal. Universal apps sell on the store for one price which gets access to the app for all devices.
6. Connect your iPad and run the app, same as you would on your iPhone.
7. The UI should now be full screen but you’ll have tonmake aduatments using autoresizing masks, etc. Also this was a quick and easy way to upgrade but in many cases you may want to completely redesign your UI for the larger screen.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther