How to create an Universal Binary for iTunes Connect Distribution?
Posted
by balexandre
on Stack Overflow
See other posts from Stack Overflow
or by balexandre
Published on 2010-04-22T07:42:25Z
Indexed on
2010/04/22
7:43 UTC
Read the original article
Hit count: 413
I created an app that was rejected because Apple say that my App was not showing the correct iPad window and it was showing the same iPhone screen but top left aligned.
Running on simulator, I get my App to show exactly what it should, a big iPad View.
my app as Apple referees that is showing on device:
my app running the simulator (50% zoom only):
my code in the Application Delegate is the one I published before
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// The default have the line below, let us comment it
//MainViewController *aController = [[MainViewController alloc] initWithNibName:@"MainView" bundle:nil];
// Our main controller
MainViewController *aController = nil;
// Is this OS 3.2.0+ ?
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 30200
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
// It's an iPad, let's set the MainView to our MainView-iPad
aController = [[MainViewController alloc]
initWithNibName:@"MainView-iPad" bundle:nil];
else
// This is a 3.2.0+ but not an iPad (for future, when iPhone/iPod Touch runs with same OS than iPad)
aController = [[MainViewController alloc]
initWithNibName:@"MainView" bundle:nil];
#else
// It's an iPhone/iPod Touch (OS < 3.2.0)
aController = [[MainViewController alloc] initWithNibName:@"MainView" bundle:nil];
#endif
// Let's continue our default code
self.mainViewController = aController;
[aController release];
mainViewController.view.frame = [UIScreen mainScreen].applicationFrame;
[window addSubview:[mainViewController view]];
[window makeKeyAndVisible];
return YES;
}
on my target info I have iPhone/iPad
My question is, how should I build the app?
- Use Base SDK
- iPhone Simulator 3.1.3
- iPhone Simulator 3.2
my Active Configuration is Distribution
and Active Architecture is arm6
Can anyone that already published app into iTunes Connect explain me the settings?
P.S. I followed the Developer Guideline on Building and Installing your Development Application
that is found on Creating and Downloading Development Provisioning Profiles
but does not say anything regarding this, as I did exactly and the app was rejected.
© Stack Overflow or respective owner