Xcode 4.3:在Organizer的档案中缺少iOS应用程序的图标 [英] Xcode 4.3 : missing icons for iOS apps in Organizer's archives

查看:321
本文介绍了Xcode 4.3:在Organizer的档案中缺少iOS应用程序的图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自升级到Xcode 4.3.x以来,我在Organizer中的iOS应用程序档案中没有图标。 (虽然我的Mac OS X应用程序上有图标)

Since upgrading to Xcode 4.3.x, my archives of iOS app in Organizer don't have an icon. (I have icons on my Mac OS X apps though)

一个应用程序特别是一个iPad应用程序,我提供了2个图标(正常+视网膜大小)但仍然,我的档案中没有得到它的图标。

One app in particular is an iPad app for which i provided 2 icons (normal + retina sizes) but still, I don't get an icon for it in my archives.

xcode-select -print-path 返回 /Applications/Xcode.app/Contents/Developer (我认为这是正确的设置,因为我想在终端中提供xcodebuild和xcron)

xcode-select -print-path returns /Applications/Xcode.app/Contents/Developer (which I believe is the right setting as I want to have xcodebuild and xcron available in the terminal)

编辑:

经过调查,我发现自Xcode4.3.2起,档案正在使用嵌入在iOS5 CFBundleIcons属性中的CFBundleIconFiles的第一项显示,但如果您对文件保留.png扩展名则无效。

After investigation, I've found out that as of Xcode4.3.2, archives are using the first item of the CFBundleIconFiles embedded inside the iOS5 CFBundleIcons property to display, but it won't work if you keep a .png extension to your file.

1 /关于Apple的文档说明:

1/ About what Apple's documentation says:


使用CFBundleIcons密钥指定图标文件时,最好是
省略图像文件的文件扩展名。如果包含
文件扩展名,则必须显式添加所有图像
文件的名称(包括任何高分辨率变体)。省略
文件扩展名时,系统会自动检测文件的高分辨率
变体,即使它们未包含在数组中也是如此。

When specifying icon files using the CFBundleIcons key, it is best to omit the filename extensions of your image files. If you include a filename extension, you must explicitly add the names of all image files (including any high-resolution variants). When you omit the filename extension, the system automatically detects high-resolution variants of your file, even if they are not included in the array.

鉴于你不想对你的图标文件有文件扩展名(参见上文),当你的档案实际上包含ipad和ipad时,只在你的.plist中提到ipad。 ipad @ 2x无法使用。我不得不在.plist中提到视网膜版本实际上在Retina设备上使用。

Given that you don't want to have file extensions to your icon files (cf. above), mentioning "ipad" only in your .plist when your archive actually contains "ipad" and "ipad@2x" won't work. I had to mention both in the .plist for the retina version to be actually used on a Retina device.

但没有.png扩展名的图标将无法验证当您尝试在App Store上提交时。我是fxxxed。图标正在让我的生活变成一场噩梦。

2 /关于TestFlight对图标的支持:

2/ About TestFlight support of icons:

TestFlight似乎不支持没有扩展名的图标文件,因为我现在无法在此服务上看到我的图标,因为我删除了我的文件.png扩展名

TestFlight doesn't seem to support icon files without extension as I can't see my icons on this service now that I removed my files .png extension

推荐答案

我有完全相同的问题。
您对 xcode-select 的陈述感兴趣我首先尝试过:

I had the exact same problem. Intrigued by your statement about xcode-select I first tried:

xcode-select -print-path

导致:

/Developer

这是显然错了。所以我先关闭Xcode然后:

Which is obviously wrong. So I first closed Xcode and then:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

重新启动XCode后,所有图标都回到了管理器中。

After I restarted XCode all the icons were back in the Organiser.

谢谢你指点我正确的方向!但我意识到这可能不是你的解决方案。希望其他人可能受益!

So thank you for pointing me in the right direction! But I realize it is probably not the solution for you. Hopefully others may benefit!

这篇关于Xcode 4.3:在Organizer的档案中缺少iOS应用程序的图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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