1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Xcode5でiOS5以前用のアイコン設定を行う

Last updated at Posted at 2014-01-23

エラー発生

突然、Validate時にこんなエラーが出るようになった。

Missing required icon file. The bundle does not contain an app icon for iPad
of exactly '72x72' pixels, in .png format for iOS versions < 5.0.

もちろんDistributeでも同様のエラーが出る。
先週まではなんともなかったのに!(今日は2014/1/23)

原因と対策

General - App Icons でアイコンを登録してもiOS5以前用の設定が行われないようなので手動で設定を行う。

設定

Info.plistにKeyを追加する。

  • Universalアプリの場合
Icon files   Array
   Item 0    String   icon72
   Item 1    String   icon57
  • iPhone専用アプリの場合(未検証)
Icon file    String   icon57
  • iPad専用アプリの場合(未検証)
Icon file    String   icon72

.xmlだとこんな感じ。

<key>CFBundleIconFiles</key>
<array>
  <string>icon72</string>
  <string>icon57</string>
</array>

<key>CFBundleIconFile</key>
<string>icon57</string>

<key>CFBundleIconFile</key>
<string>icon72</string>

補足

  • お約束の名前(Icon-72.pngなど)の場合は追加設定しなくても大丈夫っぽい?
  • Deployment Target が5.0以上のアプリには関係ありません。
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?