1024 x 1024 icon asset missing for iOS (SOLVED)

The AppIcon for the App Store is listed as:

  {
    "AssetType" : "MultiSized Image",
    "Idiom" : "marketing",
    "Name" : "AppIcon",
    "NameIdentifier" : 6849,
    "Scale" : 1,
    "Sizes" : [
      "1024x1024 index:4 idiom:marketing"
    ]
  }

I donā€™t think so. It should result in an error when uploading to iTunes Connect if it was transparent.

Okay, I managed to fix it on my side ))) and submit :tada:

Issue was pretty stupid but still I will report it here.

In build target before I had ā€œIOS Simulator / IPhone Xrā€ but this way icons are packed only for this specific device and no icon are packed for appstore or iPad. So you need double check that target is set to ā€œGeneric iOS Deviceā€ to avoid my issue.


(all other steps to make manual patch described above if anyone needs it to upload an app right now).

Thank you all for participation and answers, additional thank to @britzl for detailed explanations.

P.S.

Defold community rocks!!! :love_you_gesture:

3 Likes

Just to clarify: If I add an icon catalogue, do I still have to set ios.app_icon_114x114 and friends?

Yes. In an Xcode build their toolchain would extract the images from the Asset.car file and put them in the IPA. Since the .car format is proprietary we canā€™t do that which means you still need to specify them in game.project and in the Assets.xcassets/car file.

https://blog.timac.org/2018/1018-reverse-engineering-the-car-file-format/

:innocent:

1 Like

Iā€™ve seen that blog post and itā€™s pretty impressive detective work done, but I do not wish to write my own tools or rely on third-party tools when Apple has a good track record of changing stuff without any warning. Itā€™s very frustrating that they use undocumented binary formats and without providing any command line tools to create the files. Why not zip the .xcassets folder and call it a day?

2 Likes

I found that also an online tool to compile those proprietary assets file exists http://www.applicationloader.net/appuploader/onlinetools.php. But I havenā€™t tried resulting Assets.car file which this tool generates. So you can try to use the tool but on your own risk.

Can we clarify to how solve this problem before 175 Defold?

As I am understand, we still should create Assets.car with app store icons and modify info.plist. Thatā€™s all?

Which changes is needed for info.plist?

The updated Info.plist file: https://github.com/defold/defold/blob/a6eb7586cd67d8b8a7d289587c79747672c423a9/engine/engine/content/builtins/manifests/ios/Info.plist

Note the icon name changes: https://github.com/defold/defold/blob/a6eb7586cd67d8b8a7d289587c79747672c423a9/engine/engine/content/builtins/manifests/ios/Info.plist#L21-L23

And the icon names: https://github.com/defold/defold/blob/a6eb7586cd67d8b8a7d289587c79747672c423a9/com.dynamo.cr/com.dynamo.cr.bob/src/com/dynamo/bob/bundle/BundleHelper.java#L611-L615

I think weā€™ll include this in the 1.2.174 release.

1 Like

Iā€™m a bit confused as to how to fix this issue with Defold 1.2.174
I still get the missing 1024 icon when uploading to the appstore.

I added the following line in the game.project
icon_asset = /iphone_stuff/Assets.car

and I added the 1024 icon ni the Assets.xcassets on Xcode. But I still get an error on the apple developer website.

The 1.2.174 release was an out-of-cycle release for iOS 14 and AAB bundling issues. The iOS icon update will be released in 1.2.175.

Since itā€™s currently not possible to build for iOS using 1.2.174, is it possible with older versions?

I think the easiest way would be to use the alpha version of 1.2.175, which weā€™ll build soon in an hour or so (the pull request just got approved).

BTW, I did everything described in this topic (unzipped the .app archive and modified the Icon names, Infos.plist etc). I manage to have an ipa that I can upload, but then I receive an email from apple

We identified one or more issues with a recent delivery for your app, Please correct the following issues, then upload again. ITMS-90546: Missing Asset Catalog - Your app is missing the asset catalog file in 'myapp.app'. For more information see http://help.apple.com/xcode/mac/current/#/dev10510b1f7.

I added the Icon-1024.png in the archive and I added

<key>CFBundleIconFiles</key>
            <array>
                <string>Icon-60</string>
                <string>Icon-76</string>
                <string>Icon-83.5</string>
                 <string>Icon-1024</string>
            </array>

It still doesnā€™t work. Iā€™d welcome some help Iā€™ve been spending the whole day on thisā€¦ thanks.

Wait for the alpha to build (https://github.com/defold/defold/actions/runs/310826160). Once it is done the 1.2.175 alpha with the iOS icon fix will be available for download from d.defold.com/alpha.

1 Like

Ok I downloaded the 1.2.175 alpha, built and I get the following error

I did add the correct Assets.car file (itā€™s 1.5Mo so I know it does contain the pictures)

Or do we just need to add the app_icon_1024x1024 = ..in the game.project?

Well, the build didnā€™t finish properly (see the link: https://github.com/defold/defold/actions/runs/310826160) so the new editor version wasnā€™t updatedā€¦

EDIT: Notice the sha1 of the PR: 66da15e. Thatā€™s the one you want to see in the about box in the editor.

Now the alpha editor is updated:
https://d.defold.com/alpha

1 Like

OK, it works now!

BUT I had to add the following

    <key>UIRequiresFullScreen</key>
    <true/>

in the Infos.plist because I had an error when uploading the .ipa