状況
xcodeバージョン
14.1 Release Candidate 2
ちなみにRC版だからかと思ってリリース版の14.0でも試してみましたがダメでした
エラー
Missing required icon. The application bundle does not contain an icon in ICNS format, containing both a 512x512 and a 512x512@2x image. For further assistance, see the Apple Human Interface Guidelines at https://developer.apple.com/macos/human-interface-guidelines/icons-and-images/app-icon (ID: 1fbe109c-5108-4ff3-9ad9-07d19a9a98bc)
原因
不明
解決方法
icon.icnsを作成して設定する
icon.icnsを作成する
どこでも良いのでicon.iconset
という名前でフォルダを作成します
512x512サイズのアイコンをicon_512x512.png
1024x1024サイズのアイコンをicon_512x512@2x.png
という名前でicon.iconset
の中にいれます。
iconutil --convert icns icon.iconset
icon.icnsを設定する
Assets内にあるAppIconを削除します
削除しました
先ほど作成したicon.icns
をXcode内にドラッグします
下記の設定にして「Finish」を選択します
Info.plist
にIcon file
を追加します
Icon file
にicon.icns
を設定します
おわり
この対策方法が正しいかはわかりませんがエラーは出なくなりました