如何创建一个通用二进制iTunes Connect的分布? [英] How to create an Universal Binary for iTunes Connect Distribution?

查看:267
本文介绍了如何创建一个通用二进制iTunes Connect的分布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个应用程序的被拒绝因为苹果说,我的应用程序是不会显示正确的iPad窗口,它是显示相同的iPhone屏幕,但左上角对齐。

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.

运行在模拟器,我让我的应用程序,以显示正是它应该,大的iPad上查看。

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:

我的应用程序运行模拟器(50%缩放只):

my app running the simulator (50% zoom only):

在应用程序委托我的code是一个我published

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;
}

这是我的目标信息,我有 iPhone / iPad的

on my target info I have iPhone/iPad

我的问题是,后,我应该怎么构建应用程序?

My question is, how should I build the app?


  • 使用基本SDK

  • iPhone模拟器3.1.3

  • iPhone模拟器3.2

我主动配置是分配和Active架构是 ARM6

my Active Configuration is Distribution and Active Architecture is arm6

这已经发布的应用进入iTunes Connect的任何人都可以解释我的设置?

Can anyone that already published app into iTunes Connect explain me the settings?

PS 我也跟着上的建筑开发指南和安装你的开发应用是在中创建和下载发展配置配置文件,但不会说什么对此,我确实做到和应用程序被拒绝了。

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.

推荐答案

事实证明,该项目发送给苹果技术支持他们回答说,可能是一个错误,我应该重新编译,然后重新发送后。

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.

做到这一点,并得到了我的应用aproved

Done that, and got my App aproved.

不过,我可以告诉在这里,你应该如何编写你的应用程序,从我从得到了电子邮件在AppStore(苹果审查小组)的苹果开发技术​​支持

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

按照以下步骤建立,将在两个iPad和iPhone上运行一个普遍的应用:

Follow these steps to build a universal application that will run on both iPad and iPhone:


  • 将基地SDK构建设置(在架构部分)到iPhone SDK 3.2。

  • 将iPhone OS的部署目标构建设置为iPhone OS 3.1.3或更早的版本。

  • 将目标器件系列构建选项为iPhone / iPad的。

  • 请确保您的架构建立的设置同时使用的ARMv6和ARMv7。

  • 设置活动的SDK为iPhone设备3.2,选择您的分发配置,构建(选择Build按钮),您的应用程序,并将其提交应用程序的审查。

我希望这可以帮助别人,因为它帮助我:)

I hope this helps someone as it helped me :)

添加(指定这两个应用的图标)

你可以在上图中看到,只需添加一个名为新属性 CFBundleIconFiles 并添加2个图标,数组(0)是iPhone图标,数组(1)适用于iPad的图标。

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.

记住要保留默认图标文件属性将iPhone与老版本的操作系统的兼容性回来

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:


  • iPhone图标:57点¯x57像素

  • iPad的图标:72 x 72到像素

  • iPhone icon: 57 x 57 pixels
  • iPad icon: 72 x 72 pixels

这篇关于如何创建一个通用二进制iTunes Connect的分布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆