ios 你如何定义 CFBundleIcons、CFBundleIconFiles、CFBundleIconFile?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13020872/
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
How do you define CFBundleIcons, CFBundleIconFiles, CFBundleIconFile?
提问by TATN
This is my first time submitting an app to App store, so please bear with me. I'm using iOS 6.0.
这是我第一次向 App Store 提交应用程序,所以请耐心等待。我正在使用 iOS 6.0。
I have managed to get to the last step, where I needed to validate and submit my app to Apple for evaluation to be put onto AppStore. However, at the very end, it gave me this error message during validation:
我已经完成了最后一步,我需要验证并将我的应用程序提交给 Apple 进行评估,以便将其放入 AppStore。但是,最后,它在验证过程中给了我这个错误消息:
So, I checked the Info.plist file to made sure that I had included all neccessary icons for the app. I did have them all.
所以,我检查了 Info.plist 文件以确保我已经包含了应用程序的所有必要图标。我确实拥有它们。
This is my info.plist:
这是我的 info.plist:
Under "Icon file", "Icon files", and "Icon files (iOS 5)", I did provide a default 57x57 icon, an icon for iPad, and an icon for iPhone. They are present in the same directory of the project file.
在“图标文件”、“图标文件”和“图标文件(iOS 5)”下,我确实提供了一个默认的 57x57 图标、一个 iPad 图标和一个 iPhone 图标。它们存在于项目文件的同一目录中。
What am I missing here? (I tried to add entries called "CFBundleIcons/File/Files", but there were no such entries to be added).
我在这里缺少什么?(我尝试添加名为“CFBundleIcons/File/Files”的条目,但没有添加此类条目)。
Below is my updated info.plist after I followed rmaddy's advise:
以下是我按照 rmaddy 的建议更新后的 info.plist:
Now that all the icon files have been updated properly with the correct dimensions (no warning yellow triangle over the images on the Summary tab). Why am I still getting this same error message? What else do I miss?
现在所有图标文件都已正确更新并具有正确的尺寸(摘要选项卡上的图像上没有警告黄色三角形)。为什么我仍然收到同样的错误消息?我还想念什么?
采纳答案by rmaddy
The simplest way to ensure all of your icons and launch images are setup correctly is to go to the Summary tab for your project's target (or targets if more than one) in Xcode. On the Summary tab is a section for iPhone / iPod touch Deployment Info and another for iPad Deployment Info. In each of these two sections is a place for App Icons and Launch Images. Click on each and load the proper image. If a yellow warning triangle appears then the image is the wrong size or possible some other issue. Filling in all of the images this way will properly update your Info.plist with the correct entries.
确保正确设置所有图标和启动图像的最简单方法是在 Xcode 中转到项目目标(或多个目标)的“摘要”选项卡。在摘要选项卡上有一个部分是 iPhone / iPod touch 部署信息,另一个是 iPad 部署信息。在这两个部分中的每一个中都有一个放置应用程序图标和启动图像的地方。单击每个并加载正确的图像。如果出现黄色警告三角形,则图像尺寸错误或可能存在其他问题。以这种方式填写所有图像将使用正确的条目正确更新您的 Info.plist。
The screen you posted makes it clear you are trying to put the launch image (Default.png) and some screen shots where your icons belong. Default.png is a launch image. The screen shots don't go anywhere in your project. They get loaded at iTunes Connect.
您发布的屏幕清楚地表明您正在尝试将启动图像 (Default.png) 和一些屏幕截图放在您的图标所属的位置。Default.png 是启动图像。屏幕截图不会出现在您的项目中。它们在 iTunes Connect 上加载。
回答by Woland
In my case I resolved the issue by making sure the names in the plist file matched the names of the files under General->App Icons. It has to have the exact same case
就我而言,我通过确保 plist 文件中的名称与 General->App Icons 下的文件名称匹配来解决该问题。它必须有完全相同的情况