Xcode:Organizer 档案中缺少 iOS 应用程序的图标

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3868025/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 17:50:54  来源:igfitidea点击:

Xcode : Missing icons for iOS apps in Organizer's archives

iphoneiosxcodeorganizer

提问by memmons

If I choose "build and archive" from XCode, the Organizer is launched and I can see a list of my archived applications. I have 4 different applications (with several archives each), but the icon that's displayed in Organizer for one of the apps is missing -- there is a question mark icon instead. The app does have an associated icon and it validates and submits to the app store without any issues.

如果我从 XCode 中选择“构建和存档”,那么管理器就会启动,我可以看到我的存档应用程序列表。我有 4 个不同的应用程序(每个应用程序都有多个存档),但其中一个应用程序的管理器中显示的图标不见了——而是一个问号图标。该应用程序确实有一个关联的图标,它可以验证并提交到应用程序商店,没有任何问题。

Why isn't Organizer picking up the icon correctly and how do I fix it?

为什么 Organizer 没有正确拾取图标,我该如何解决?

采纳答案by paicolman

Not a bug, I think you need to have at least one for Iphone and a bigger one for ipad (although my app is only designed for iphone...). I replaced the "icon file" key with "icon files" in the plist file and put one 52x52, one 72x72 and also one 114x114.

不是错误,我认为您至少需要为 Iphone 设置一个,为 ipad 设置一个更大的(尽管我的应用程序仅适用于 iphone...)。我用 plist 文件中的“图标文件”替换了“图标文件”键,并放置了一个 52x52、一个 72x72 和一个 114x114。

回答by Stefan Arentz

I think it is a bug. I see the same for all my apps that I Build & Archive.

我认为这是一个错误。对于我构建和存档的所有应用程序,我看到的都是相同的。

回答by Vincent

Include in the info.plist for the key "Icon File" the value "Icon.png". Do not forget to also include the image in the container.

在键“图标文件”的 info.plist 中包含值“Icon.png”。不要忘记还将图像包含在容器中。

回答by Anil Natha

Those of you that have upgraded to Xcode 4.3 and are having problems with the Application Icons showing up in the Organizer Window under Archives, look at this posting which includes a solution:

那些已经升级到 Xcode 4.3 并且在存档下的管理器窗口中显示的应用程序图标有问题的人,请查看此帖子,其中包含一个解决方案:

Xcode 4.3 : missing icons for iOS apps in Organizer's archives

Xcode 4.3:在 Organizer 的档案中缺少 iOS 应用程序的图标

回答by imbear

I have the same problem, and I solved it by adding a "Icon file" in info.plist, and adding a "Icon files" after "Icon file", and the icon is fine in organizer. I think that might a parsing sequence problem.

我也遇到了同样的问题,我在info.plist中添加了一个“图标文件”,在“图标文件”后面添加了一个“图标文件”,解决了这个问题,管理器中的图标很好。我认为这可能是解析序列问题。

回答by Gilorien Barnhardt

When I had a missing icon in the organizer, I appended

当我在组织者中缺少图标时,我附加了

.icns

.icns

to the Icon file name in the Info.plist file.

到 Info.plist 文件中的图标文件名。

回答by Ginny

For XCode 4.2 :

对于 XCode 4.2:

Patrick Burleson's answer is correct, and worked for me. However, the icon that showed up in the organizer was still fuzzy/low-resolution after doing that. I fixed this by putting [email protected] in the "Item 0" slot of 'Icon Files', instead of putting Icon.png there as I had before. No idea why I should need to do that, but in any case, if someone else has that issue, that may be the way to fix it.

Patrick Burleson 的回答是正确的,并且为我工作。但是,这样做后,组织者中显示的图标仍然模糊/低分辨率。我通过将 [email protected] 放在“图标文件”的“Item 0”插槽中来解决这个问题,而不是像以前那样将 Icon.png 放在那里。不知道为什么我需要这样做,但无论如何,如果其他人有这个问题,这可能是解决它的方法。