Xcode项目图标文件和管理器档案图稿 [英] Xcode Project Icon files and Organiser Archives artwork

查看:82
本文介绍了Xcode项目图标文件和管理器档案图稿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中设置了所有图标文件,并在Mac上的.xcodeproj文件旁边找到了它们,并且按照截图将它们添加到了plist文件中,在构建时没有警告,但是存档时,我收到4条我不理解的警告.

I have all my icon files set up in my project and they are found alongside the .xcodeproj file on my Mac, and I have added them to the plist file as per the screenshot, when I build there are no warnings, but when I Archive, I get 4 warnings which I don't understand.

我没有找到有关新的图标文件(iOS 5)"的文档,并且如果我要镜像图标文件"属性,则尝试使用和不使用它,并且仍然收到这些警告.令人担忧的是,警告说明说它无法验证我的应用程序.我担心苹果提交.

I found no documentation about the new "Icon file (iOS 5)" and if I should be mirroring the "Icon files" property, I tried with and without it and I still have these warnings. It's worrying because the warning explanation says it's unable to validate my application. I'm worrying about Apple submission.

如果我从plist中删除了这些文件,则没有警告,并且在iPad和iPhone设备上进行测试,设置和聚光灯的图标看起来仍然可以正常工作,因此正在使用这些文件.

If I remove this files from the plist then there is no warning, and testing on iPad and iPhone devices, the icons for settings and spotlight still work fine it seems, so these files are being used.

但是Apple文档确实告诉您在plist中添加对这些文件的引用.

However the Apple docs do tell you to add references to these files in your plist.

这些文件的位置是否在使用中是否有影响?我想将它们从根目录中删除,并移至"Artwork"目录中,但我现在看到将其从目标"摘要中删除预览.

Does the location of these files have any impact on if they're being used or not ? I would like to remove them from the root directory and into an "Artwork" directory but I can see that this now removes the preview from the Target summary.

我还在组织者的存档"部分中使iTunesArtwork出现-现在,我的Icon.png炸毁了,因此非常难看.我想知道这是否表明我做错了什么?

Also in the Archive section of the Organiser I used to get the iTunesArtwork to appear - now my Icon.png is blown up and consequently very ugly. I wonder if this suggests I am doing something wrong ?

对于如何处理这些图标,没有明确的指导...

There is no clear guide to how I should treat these icons...

更新

为避免这些警告,您必须在项目的根目录中有一个名为"Resources"的文件夹.并将该文件夹导入Xcode,您仍然必须在plist中声明这些图标文件的两倍. 我仍然不知道如何在管理者的存档"视图中使用我的iTunesArtwork.

It seems like for these warnings to be avoided, you must have a folder named "Resources" in the root of your project. And import that folder into the Xcode, you still must declare in the plist, two times these icon files. I still don't know how to get my iTunesArtwork to be used in the Organizer's Archive view.

推荐答案

我仅能弄清楚如何使这两种方法正常工作(管理器窗口中没有警告的图标和iTunesArtwork).

I was just able to figure out how to get both of these working correctly (icons without warnings and iTunesArtwork in the organizer window).

对于所有图标,Xcode似乎更喜欢它们在项目的根目录中.然后添加图标文件(iOS 5)条目:

For all the icons, Xcode seems to prefer them at the root directory of the project. Then I add the icon files (iOS 5) entry:

然后,我将图标文件条目与iTunesArtwork文件一起添加(也位于项目的根目录中,其上没有扩展名)

Then I add the icon files entry with just the iTunesArtwork files (also located in the root of the project, no extension on these)

我认为这部分无关紧要,但是我确实将它们移到Xcode的"Supporting Files"组中.

I don't think this part matters, but I did move them to the 'Supporting Files' group in Xcode:

这篇关于Xcode项目图标文件和管理器档案图稿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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