xcode 警告:iPad:Icon-72.png:图标尺寸(0 x 0)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9108500/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
warning: iPad: Icon-72.png: icon dimensions (0 x 0)
提问by hanism
I got this problem: "warning: iPad: Icon-72.png: icon dimensions (0 x 0) don't meet the size requirements. The icon file must be 72x72 pixels, in .png format (-19014)" when build for archive the iPad only app. Have checked, my icon is 72x72 pixels. Also checked on info.plist file, the key CFBundleIconFiles already there. Before this have no problem to submit the app. After rejected by app review I want to resubmit (no changes has been made on my Xcode project) but the error appear. Does it because of I've upgraded to Mac OSX Lion 10.7.3? (I just update to Mac OSX Lion 10.7.3 before resubmit the app).
我遇到了这个问题:“警告:iPad:Icon-72.png:图标尺寸(0 x 0)不符合尺寸要求。图标文件必须为 72x72 像素,.png 格式(-19014)”构建时用于存档仅限 iPad 的应用程序。检查过,我的图标是 72x72 像素。还检查了 info.plist 文件,关键 CFBundleIconFiles 已经存在。在此之前提交应用程序没有问题。在被应用程序拒绝后,我想重新提交(我的 Xcode 项目没有进行任何更改),但出现错误。是不是因为我已经升级到 Mac OSX Lion 10.7.3?(我只是在重新提交应用程序之前更新到 Mac OSX Lion 10.7.3)。
Wonder why does the warning says "icon dimensions (0 x 0)".
想知道为什么警告说“图标尺寸(0 x 0)”。
Please help me. Thanks.
请帮我。谢谢。
采纳答案by AndreasZ
回答by mwidmann
I found a solution thanks to a forum post on the official developer forums.
由于官方开发者论坛上的论坛帖子,我找到了解决方案。
- click on your project in the tree view
- choose the project
- go to Build Settings
- be sure to select All
- search for PNG and set the value to NO
- 在树视图中单击您的项目
- 选择项目
- 转到构建设置
- 一定要选择全部
- 搜索 PNG 并将值设置为NO
Seems to be a bug in Lion 10.7.3
似乎是 Lion 10.7.3 中的一个错误
回答by MonsieurDart
Another solution, without installing Application Loader, is to set the File Type of all your icon files to "Icon" instead of PNG Image. This is done by selecting the Icon in Xcode and going to the File inspector panel.
另一种不安装 Application Loader 的解决方案是将所有图标文件的文件类型设置为“图标”而不是 PNG 图像。这是通过在 Xcode 中选择图标并转到文件检查器面板来完成的。
回答by Roman Bambura
Download new Application Loader
and upload your app with it.
下载新的Application Loader
并使用它上传您的应用程序。
回答by cyphers
While the solution of turning off Compress PNG images does work, it is not a good solution as it then no longer compresses PNG images. While not the most useful feature ever, it is standard and does obfuscate your images in your ipa which is usually a good thing.
虽然关闭压缩 PNG 图像的解决方案确实有效,但它不是一个好的解决方案,因为它不再压缩 PNG 图像。虽然不是有史以来最有用的功能,但它是标准的并且确实会混淆您的 ipa 中的图像,这通常是一件好事。
This issue started with 10.7.3, today. No real solution has yet been put forward (other than to build your submissions with 10.7.2 instead.)
这个问题从今天的 10.7.3 开始。尚未提出真正的解决方案(除了使用 10.7.2 构建您的提交。)
回答by Aqueel
Check if your icon file is placed in the root project folder. The icon file should not be in any sub folder of your project folder. So if it is the case with you, just copy it to the root folder of your project and add to the project again.
检查您的图标文件是否放在根项目文件夹中。图标文件不应位于项目文件夹的任何子文件夹中。因此,如果您是这种情况,只需将其复制到项目的根文件夹中,然后再次添加到项目中即可。
Happy coding!
快乐编码!
回答by TheInterestedOne
Download and Install the new application loader.
下载并安装新的应用程序加载器。
Quit Xcode.
Restart Xcode.
Clean all Targets.
Try to submit!! :)
努力提交!!:)
I've solved the issue!
NOTE: You must have only a copy of the Application Loader on you Mac. In you install thisIf you have a copy in /Developer/Applications/Utilities
, and another version in /Applications/Xcode.app/Contents/Applications
, you may run into problems. Pay Attention!!
我已经解决了问题!注意:您的 Mac 上必须只有 Application Loader 的副本。在您安装这个时,如果您在 中有一个副本/Developer/Applications/Utilities
,而在 中有另一个版本/Applications/Xcode.app/Contents/Applications
,您可能会遇到问题。请注意!!
回答by kumar123
If you are using MAC OS version 10.7.3 and iTune version less than 10.6.Then while archiving you will face this issue.
如果您使用的是 MAC OS 版本 10.7.3 和低于 10.6 的 iTune 版本。那么在归档时您将面临这个问题。
So don't worry.Please update your iTune store to latest version(i.e 10.6).It will work perfectly fine.
所以别担心。请将您的 iTune 商店更新到最新版本(即 10.6)。它会正常工作。
回答by Umair A.
I tried 2 answers here and none seemed to solve my problem. After digging into some more detail I figured, the issue is in AppName-Info.plist
我在这里尝试了 2 个答案,但似乎没有一个能解决我的问题。在深入研究了一些我认为的更多细节之后,问题出在AppName-Info.plist
Project > Supporting Files > AppName-Info.plist
If you see closely, you will find the icons list is something like...
如果仔细观察,您会发现图标列表类似于...
What I changed it to solve this...
我改变它来解决这个问题......
Cheers!
干杯!
回答by mrd3650
I had the same problem and so tried to upload it via Application Loader (version 2.4.1) which still gave me the error. So I tried downloading latest version but could not install since it required MacOS 10.7 minimum. So I used version 2.5.1 which has the bug fixed and runs with MacOS 10.6.8
我遇到了同样的问题,因此尝试通过 Application Loader(版本 2.4.1)上传它,但仍然出现错误。所以我尝试下载最新版本但无法安装,因为它至少需要 MacOS 10.7。所以我使用了 2.5.1 版本,它修复了错误并在 MacOS 10.6.8 上运行
Link to v2.5.1 ApplicationLoader_2.5.1.dmg
链接到 v2.5.1 ApplicationLoader_2.5.1.dmg