Xcode中Info.plist文件中的多个图标条目

时间:2021-12-19 20:53:41

When I import a project that started on Xcode 3 on Xcode 4, it ads another set of entries for the icons on the Info.plist file. Something like this:

当我在Xcode 4上导入一个在Xcode 3上启动的项目时,它会在Info.plist文件中为图标添加另一组条目。像这样的东西:

Xcode中Info.plist文件中的多个图标条目

and some times there is also another entry called "Icon file" (file on the singular, not plural), alone.

有时还有另一个名为“图标文件”的条目(单数形式的文件,而不是复数形式),单独使用。

Are all these entries required?

是否需要所有这些条目?

Another question: why the launch images Default.png and Default@2x.png are added to the icon sections?

另一个问题:为什么将启动图像Default.png和Default@2x.png添加到图标部分?

3 个解决方案

#1


12  

You only need the entry Icon files (plural) with all your icons (57x57,72x72,114x114,144x144). You may delete the Icon files (iOS 5) as well as the Icon file (singular).

您只需要带有所有图标的条目图标文件(复数)(57x57,72x72,114x114,144x144)。您可以删除图标文件(iOS 5)以及图标文件(单数)。

The Default.png's in that section is totally wrong and was maybe placed there because of a bug in Xcode.

该部分中的Default.png是完全错误的,可能因为Xcode中的错误而放在那里。

#2


2  

Like Jonas said, you can delete the (iOS 5) part.

像Jonas所说,你可以删除(iOS 5)部分。

However, this is clearly a new addition, and most likely Apple is going forward with these changes for a reason.

然而,这显然是一个新的补充,很可能Apple正在推进这些变化是有原因的。

I would clean it up and keep it for forward compatibility.

我会清理它并保持它的向前兼容性。

#3


1  

you do not have to specify @2x versions, they will be picked automatically for ipads,dev page here just list 1x versions in items there.
item 0: Icon - it is 57x57
item 1: Icon-72 - it is 72x72
item 2: Icon-Small - it is 29-29
item 3: Icon-Small-50 -it is 50x50

你不必指定@ 2x版本,它们将自动选择为ipads,这里的dev页面只列出项目中的1x版本。项目0:图标 - 它是57x57项目1:图标-72 - 它是72x72项目2:图标 - 小 - 它是29-29项目3:图标 - 小50 -it是50x50

add these files in .png format to your proj as well as @2x so 8 of them all together.

将.png格式的这些文件添加到您的项目以及@ 2x中,以便将它们中的8个一起添加到您的项目中。

add Default.png and its 2x version to proj too and in launch image specify only Default.png

将Default.png及其2x版本添加到proj中,在启动映像中仅指定Default.png

B

#1


12  

You only need the entry Icon files (plural) with all your icons (57x57,72x72,114x114,144x144). You may delete the Icon files (iOS 5) as well as the Icon file (singular).

您只需要带有所有图标的条目图标文件(复数)(57x57,72x72,114x114,144x144)。您可以删除图标文件(iOS 5)以及图标文件(单数)。

The Default.png's in that section is totally wrong and was maybe placed there because of a bug in Xcode.

该部分中的Default.png是完全错误的,可能因为Xcode中的错误而放在那里。

#2


2  

Like Jonas said, you can delete the (iOS 5) part.

像Jonas所说,你可以删除(iOS 5)部分。

However, this is clearly a new addition, and most likely Apple is going forward with these changes for a reason.

然而,这显然是一个新的补充,很可能Apple正在推进这些变化是有原因的。

I would clean it up and keep it for forward compatibility.

我会清理它并保持它的向前兼容性。

#3


1  

you do not have to specify @2x versions, they will be picked automatically for ipads,dev page here just list 1x versions in items there.
item 0: Icon - it is 57x57
item 1: Icon-72 - it is 72x72
item 2: Icon-Small - it is 29-29
item 3: Icon-Small-50 -it is 50x50

你不必指定@ 2x版本,它们将自动选择为ipads,这里的dev页面只列出项目中的1x版本。项目0:图标 - 它是57x57项目1:图标-72 - 它是72x72项目2:图标 - 小 - 它是29-29项目3:图标 - 小50 -it是50x50

add these files in .png format to your proj as well as @2x so 8 of them all together.

将.png格式的这些文件添加到您的项目以及@ 2x中,以便将它们中的8个一起添加到您的项目中。

add Default.png and its 2x version to proj too and in launch image specify only Default.png

将Default.png及其2x版本添加到proj中,在启动映像中仅指定Default.png

B