如何为 iTunes Connect 分发创建通用二进制文件?

发布于 2024-08-30 04:33:25 字数 2716 浏览 4 评论 0原文

我创建的应用被拒绝,因为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫瑾少女 2024-09-06 04:33:25

事实证明,在将项目发送给 Apple 支持后,他们回复说这可能是一个错误,我应该重新编译并再次发送。

完成此操作,我的应用程序已获批准

但我可以在这里告诉你,你应该如何从我从Apple开发者技术支持收到的电子邮件中将你的应用程序编译到AppStore(Apple审查团队)


按照以下步骤构建一个将在iPad 和 iPhone:

  • 将 Base SDK 构建设置(在“架构”部分中)设置为 iPhone SDK 3.2。
  • 将 iPhone OS 部署目标构建设置设置为 iPhone OS 3.1.3 或更早版本。
  • 将目标设备系列构建选项设置为 iPhone/iPad。
  • 确保您的架构构建设置同时使用armv6和armv7。
  • 将 Active SDK 设置为 iPhone 设备 3.2,选择您的分发配置,构建(选择“构建”按钮)您的应用程序,然后提交以供应用程序审核。

我希望这可以帮助别人,就像它帮助我一样:)


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

alt text http://cl.ly/11AF/Screen_shot_2010-05-10_at_15.37.51.png

如上图所示,只需添加一个名为 < 的新属性即可code>CFBundleIconFiles 并添加 2 个图标,数组 (0) 用于 iPhone 图标,数组 (1) 用于 iPad 图标。

请记住将默认的图标文件属性保留给iPhone,以便向后兼容旧版本的操作系统。

请记住为两个应用程序指定正确的尺寸:

  • iPhone 图标:57 x 57 像素
  • iPad 图标:72 x 72 像素

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:

  • Set the Base SDK build setting (in the Architectures section) to iPhone SDK 3.2.
  • Set the iPhone OS Deployment Target build setting to iPhone OS 3.1.3 or earlier.
  • Set the Targeted Device Family build option to iPhone/iPad.
  • Make sure that your Architectures build setting uses both armv6 and armv7.
  • Set the Active SDK to iPhone Device 3.2, select your Distribution configuration, build (select the Build button) your application, and submit it for App review.

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:

  • iPhone icon: 57 x 57 pixels
  • iPad icon: 72 x 72 pixels
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文