Watchkit AppIcon - The app icon set named “AppIcon” did not have any applicable content

前端 未结 8 1122
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-07 13:34

There is the Images.xcassets file in my WatchKit App. As soon as I put any icon in that asset build failed with the error message: \"The app icon set named \"AppIcon\" d

8条回答
  •  猫巷女王i
    2020-12-07 13:45

    Lets write it down into lazy mode easy version, all other answers were confusing me the hell out. i hope following help others.

    Step 1: AppIcon was empty

    Step 2: Want to add icon

    so from AppIcon > on row1, col1 on 2x > i drag and dropped, the following invalid image:

    Which had actual size as below:

    Step 3: when i did build compile, it failed.

    Step 4: after searching

    i found that for 2x the image size should be 40px by 40px so i modified that image into 40px by 40px from that invalid value.

    Step 5: Info.plist added entry as below.

    This time the build/compile worked and in my iPhone 7 i have the new icon.

提交回复
热议问题