Icon Composerで作った.iconファイルの組み込み方
Icon Composerで作った新しいアイコンフォーマット.icon
をXcodeのプロジェクトに組み込みたかったのですが、公式の説明を探すのに苦労しました。以下の通りです。
Creating your app icon using Icon Composer
Add your Icon Composer file to an Xcode project
In the project editor, select the target and the General tab. Under App Icons and Launch Screen, ensure that the name in the App Icon text field matches the name of the Icon Composer file without the extension. You can have multiple Icon Composer files in your project but only one that matches the name in the App Icon text field.
まず、Xcodeプロジェクトのナビゲーター上で適当なところに.iconファイルを追加して、プロジェクトに組み込みます。組み込み先ターゲットのチェックも入れておきましょう。
次に、ターゲットのGeneralタブにある “App Icons and Launch Screen” の「App Icon」の欄に、拡張子を除いた.iconのファイル名を記入します。
イメージはXcode 16.3のもの
このままビルドしても反映されないことがあるため、最後にキャッシュをクリアしてから[1]再ビルドしてみましょう。すると、OS 26のLiquid Glassが反映されたアイコンになります。
-
メニューバー > Product > Clean Build Folder… ⇧⌘K ↩︎
Discussion