如何为 iTunes Connect 分发创建通用二进制文件?
我创建的应用被拒绝,因为 Apple 说我的应用未显示正确的 iPad 窗口,它显示的是相同的 iPhone 屏幕,但左上角对齐。
在模拟器上运行,我让我的应用程序准确地显示它应该显示的内容,一个大的 iPad 视图。
我的应用程序作为Apple裁判显示在设备上:
alt text http://www .balexandre.com/temp/2010-04-22_0939.png
我的应用程序运行模拟器(仅 50% 缩放):
alt text http://cl.ly/cCH/Screen_shot_2010-04-22_at_09.40.24.png
我在应用程序代理中的代码是我之前发布
- (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;
}
关于我的目标信息我 iPhone/iPad
替代文本 http://cl.ly/cwB /Screen_shot_2010-04-22_at_09.33.12.png
我的问题是,我应该如何构建应用程序?
- 使用 Base SDK
- iPhone Simulator 3.1.3
- iPhone Simulator 3.2
我的活动配置是 Distribution
,活动架构是 arm6
任何已经将应用程序发布到 iTunes Connect 的人都可以向我解释一下设置吗?
PS 我遵循了构建和安装开发应用程序
的开发人员指南,该指南可在创建和下载开发配置文件
中找到,但没有提及任何有关正如我所做的那样,该应用程序被拒绝了。
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:
alt text http://www.balexandre.com/temp/2010-04-22_0939.png
my app running the simulator (50% zoom only):
alt text http://cl.ly/cCH/Screen_shot_2010-04-22_at_09.40.24.png
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
alt text http://cl.ly/cwB/Screen_shot_2010-04-22_at_09.33.12.png
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,在将项目发送给 Apple 支持后,他们回复说这可能是一个错误,我应该重新编译并再次发送。
完成此操作,我的应用程序已获批准 。
但我可以在这里告诉你,你应该如何从我从Apple开发者技术支持收到的电子邮件中将你的应用程序编译到AppStore(Apple审查团队)
按照以下步骤构建一个将在iPad 和 iPhone:
我希望这可以帮助别人,就像它帮助我一样:)
添加(指定两个应用程序的图标)
alt text http://cl.ly/11AF/Screen_shot_2010-05-10_at_15.37.51.png
如上图所示,只需添加一个名为 < 的新属性即可code>CFBundleIconFiles 并添加 2 个图标,数组 (0) 用于 iPhone 图标,数组 (1) 用于 iPad 图标。
请记住将默认的
图标文件
属性保留给iPhone,以便向后兼容旧版本的操作系统。请记住为两个应用程序指定正确的尺寸:
it turns out that, after sending the project to Apple Support they reply saying that could be a mistake, that I should recompile and send it again.
Done that, and got my App aproved.
But I can just tell here, how you should compile your app to the AppStore (Apple Review Team) from the email I got from Apple Developer Technical Support
Follow these steps to build a universal application that will run on both iPad and iPhone:
I hope this helps someone as it helped me :)
Added (specify the Icons for both apps)
alt text http://cl.ly/11AF/Screen_shot_2010-05-10_at_15.37.51.png
As you can see for the image above, just add a new property called
CFBundleIconFiles
and add the 2 icons, the Array (0) is for iPhone Icon, the Array(1) is for iPad icon.Remember to leave the default
Icon file
property to the iPhone for back compatibility with old versions of the OS.remember to specify the correct sizes for both apps: