Game Development Community

Building for iPad but getting iPhone instead, how can I fix this?

by Celso Duran · in iTorque 2D · 08/02/2011 (11:04 am) · 4 replies

When I start a new project in TGB and I set it up for iPad Target Platform and FULL resolution, the settings don't stick when I build it in Xcode. All I get is an iPhone version running in an iPad environment. Am I doing something wrong? Is there another setting I'm missing?

#1
08/02/2011 (11:35 am)
Can you list your exact steps to switch to iPad? Did you change the target family and point to the upgraded interface file?

Also, which version of the engine are you using?
#2
08/02/2011 (11:53 am)
Sorry, I should've provided more details. I'm using iTorque 2D v1.7.5 with TGB 1.4.1. What I do is I create a new project, then go into the Project's iDevice Settings and select iPad for the Target Platform, Portrait for Screen Orientation, and Full (768x1024) for resolution then hit "Apply". I then design my level and hit the "Build Project" button which opens up Xcode (I'm using Xcode v4.0.2). In Xcode I just select one of the iPad targets in the drop down by the Stop button (either in iTorque2DGame_sim or iTorque2DGame_device) and hit Run.

Do I need to also change the iOS Application Target Devices settings? If so, I though TGB would automatically generate a project file thats properly configured.

#3
08/02/2011 (1:07 pm)
@Celso - There is one step you missed. In Xcode, do the following

1. Select the project (top most item in the list on the left). This will show you the project settings menu

2. Click on the Summary tab

3. Click on iTorque2DGame_device, under TARGETS

4. In the Devices drop down, select iPad. This will bring up a new "Transition to iPad Target" dialog.

5. Click on Yes. This will add a new xib file to your project called MainWindow-iPad.xib

6. Make sure MainWindow-iPad is selected in the Main Interface dropdown, under iPad Deployment Info

7. Clean and run

Quote:If so, I though TGB would automatically generate a project file thats properly configured.
1.5 final will ship new templates that handle this out of the box.
#4
08/04/2011 (10:13 am)
That worked great! It even fixed other problems I had. Thanks!