iPhone:存档验证中的图标扩展名错误
我使用 Xcode 3.2.3 将应用程序更新到 iOS4 并构建了一个存档。 当我尝试验证应用程序时,我收到以下警告:
“Info.plist CFBundleIconFile 中指定的图标没有扩展名:图标”
由于我的应用程序是通用应用程序,因此我在 plist 中提到了 4 个图标,因此出现 4 个错误。我还要指出,在我的 plist 中,图标出现在 CFBundleIconFiles 下,而不是 CFBundleIconFile 下。
众所周知,最好不要编写图标的扩展名,否则自动视网膜显示图像选择机制将无法启动并获取正确的 iPhone4 @2x 图标。
我在这里缺少什么?
Using the Xcode 3.2.3 I updated my app to iOS4 and build an archive.
When I tried to validate the application I received these warnings:
"Icon specified in the Info.plist CFBundleIconFile does not have an extension: icon"
Since my app is a universal app I have 4 icons mentioned in the plist and therefore 4 errors. I will also point out that in my plist the icons appear under CFBundleIconFiles and not CFBundleIconFile.
It is a known fact that it is better not to write the extensions of the icons otherwise the automatic retina display image choosing mechanism won't kick in and take the proper iPhone4 @2x icons.
What am I missing here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
解决方案在这里(主要):
http://useyourloaf.com/ blog/2010/8/4/application-icon-troubles.html
然而,他在一点上错了:除了
CFBundleIconFiles
数组,你仍然 确实需要一个CFBundleIconFile
键,其中仅包含 57x57 png 文件的名称(例如只是icon.png
)以支持向后与 iOS4 之前的设备的兼容性。否则,Application Loader 将是个混蛋,拒绝让你上传它。Solution here (mostly):
http://useyourloaf.com/blog/2010/8/4/application-icon-troubles.html
However, he was wrong on one point: in addition to the
CFBundleIconFiles
array, you still do need aCFBundleIconFile
key with just the name of the 57x57 png file in it (e.g. justicon.png
) in order to support backwards compatibility with pre-iOS4 devices. Otherwise, Application Loader will be a bitch and refuse to let you upload it.您应该编写文件扩展名,@2x 图像会自动加载,带或不带扩展名。
You should write file extensions, @2x images are loaded automatically with- or without extension.
为了节省您阅读 Chris Redfords 链接的时间:
您需要在 info plist 中添加以下条目:
CFBundleIconFile 具有 57x57 png 文件的名称(例如 icon.png)
CFBundleIconFiles 数组,其中一行包含不带扩展名的文件名(例如图标)
To save you some reading time on Chris Redfords link:
You need the following entries in info plist:
CFBundleIconFile with the name of the 57x57 png file (e.g. icon.png)
CFBundleIconFiles Array with one row containing the name of the file without extensions (e.g icon)