设置多个图标文件

发布于 2024-09-16 10:07:17 字数 568 浏览 14 评论 0原文

我正处于提交 iTunes 商店分发申请的最后阶段,但我对图标文件很感兴趣!

如果我只有 57x57 文件,我会在 XCode 中收到警告,并在应用程序加载器中收到错误,指出我没有提供 72x72。如果我将 72x72 的名称设置为“Icon.png”而不是 57x57,那么它会抱怨它需要 57x57,并在“应用程序加载”步骤中卡住。

苹果已经解决了这个问题: http://developer.apple.com/iphone/library/ qa/qa2010/qa1686.html#IPHONEADDITEMS,但是当我尝试遵循这些说明时,这些说明失败了:添加“图标文件”键后,“图标文件”键旁边不会出现任何披露箭头,因此那里的方法添加多个图标对我来说失败了。

与此相关的是,我实际上并不想要 iPad 的 72x72 图标。我已将应用程序属性仅设置为 iPhone,但除了 57x57 之外,它仍然需要 72x72 图标。

I'm in the final stretch of submitting an application for distribution in the iTunes store, but I'm getting hung up on the icon files!

If I have only a 57x57 file, I get a warning in XCode and an error in Application Loader that I haven't provided a 72x72. If I set the 72x72's name to "Icon.png" instead of the 57x57, then it complains that it needs a 57x57 and chokes on the Application Load step.

Apple has addressed this already at:
http://developer.apple.com/iphone/library/qa/qa2010/qa1686.html#IPHONEADDITEMS, but those instructions are failing when I try to follow them: No disclosure arrow ever appears next to the "Icon files" key once I've added it, so the method there for adding multiple icons is failing for me.

On a related note, I don't actually WANT the 72x72 icon for iPad. I've set the application properties to iPhone only, yet it continues to demand the 72x72 icon in addition to the 57x57.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

腻橙味 2024-09-23 10:07:17

当选择获取第一个行时,您可以通过单击该行最右侧的图标来显示显示箭头,然后单击加号获取下一个。这确实是推荐的做法。 Apple 实际上建议使用 57x57 (iPhone)、114x114 (iPhone4)、72x72 (iPad) 和 512x512 (Ad-Hoc Distribution) 图标。

更好的是,我有时发现使用 XCode 4 的新“预览版本 2”并使用它来修改 Info.plist 是一种更好的编辑器,并且明显具有向前和向后文件兼容性。然后在 XCode 3 中重新打开它并在那里进行最终编译。

You can get the disclosure arrow to appear by clicking the icon on the far right side of the row when it's selected to get the first one, then click the plus to get the next one. That is really the recommended way of doing it. Apple actually recommends 57x57 (iPhone), 114x114 (iPhone4), 72x72 (iPad), and 512x512 (Ad-Hoc Distribution) icons be in there.

Better yet, I sometimes find going to the new "Preview Release 2" of XCode 4 and using it to modify the Info.plist is the way to go-- a MUCH nicer editor and apparently forward and backward file compatibility. Then open it back up in XCode 3 and do your final compiles there.

錯遇了你 2024-09-23 10:07:17

如果您不关心您的应用程序在 iPad 上的外观,那么快速和简单的方法就可以了。肮脏的解决方案是创建一个 72 x 72 像素的图标文件(只需使用预览应用程序复制当前图标并调整其大小)并将其作为 Icon-72.png 包含在项目资源中

If you don't care how your app looks on an iPad, the quick & dirty solution is to create a 72 by 72 pixel icon file (just copy and resize your current one using the Preview app) and include it in your project resources as Icon-72.png

゛清羽墨安 2024-09-23 10:07:17

以下是各种问题:

1)我必须在更改名称后右键单击它来手动将 CFBundleIconFiles 的类型设置为数组。然而,这被回滚了...

2) 应用程序加载器精神分裂地坚持唯一的图标同时为 57x57 和 72x72 是因为我在项目属性中将“Base SDK”设置为 3.2,这是一个操作系统版本仅适用于 iPad,同时我将“目标设备系列”设置为仅针对 iPhone 进行编译。解决方案是将“Base SDK”更改为 4.0,但将“iPhone OS 部署目标”更改为 3.1.3,同时将 iPhone 保留为“目标设备系列”。

现在我正在编译,没有警告。新的挂断是应用程序加载器只是说与 iTunes 商店通信时出错。 :P

Here were the assorted issues:

1) I had to manually set the type of CFBundleIconFiles to Array by right clicking on it after changing the name. However, that got rolled back as...

2) Application Loader's schizophrenic insistence that the sole icon be both 57x57 and 72x72 at the same time was because I had set the "Base SDK" to 3.2 in the Project properties, an OS version which is iPad only, at the same time that I set the "Targeted Device Family" to compile for iPhone only. The solution was to change the "Base SDK" to 4.0 but the "iPhone OS Deployment Target" to 3.1.3, while leaving iPhone as the "Targeted Device Family".

Now I'm compiling without warnings. The new hang up is that Application Loader just says there was an error communicating with the iTunes store. :P

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