【xcode】AppIconにiPadのエリアがなかった時の対応
またたいした話じゃないけど、アプリの開発をひととおり行ってアプリのアイコンを設定しようとしたらiPad用のエリアがなかった。
iPhoneのみ

理由はプロジェクトを作った時にDevicesをiPhoneを選択して作ったから。
あとからUniversalに変更したのでなかったので手動で追加した。
Assets.xcassetsをFinderで開くとAppIcon.appiconsetフォルダがあってこの中にContents.jsonがあるのでそれを編集。
iPhoneの設定の下にiPad用の設定を追加すればいけた
Contents.jsonに以下を追加
Contents.jsonに以下を追加
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
}
以上です
