Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Any ideas on how to get the icon to appear on an iOS device after a build? (I am getting a blank)

Discussion in 'Editor & General Support' started by NakedUnicorns, Apr 9, 2023.

  1. NakedUnicorns

    NakedUnicorns

    Joined:
    Feb 22, 2023
    Posts:
    11
    My build is working fine.
    My app is working fine.
    But I cannot get the icon to appear on my iPad after I build it.
    I am running the latest versions of Unity Silicon, iOS and Xcode.

    It appears I cannot archive the build and send it to AppConnect. I get the following errors.

    Asset validation failed
    Missing Info.plist value. A value for the Info.plist key 'CFBundleIconName' is missing in the bundle 'com.WordBunnies.com.unity.template.mobile2D'. Apps built with iOS 11 or later SDK must supply app icons in an asset catalog and must also provide a value for this Info.plist key. For more information see http://help.apple.com/xcode/mac/current/#/dev10510b1f7. (ID: b85ae576-352e-4238-b686-dace21efdd97)
    Asset validation failed
    Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 10.0. To support older versions of iOS, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface (ID: 221e793b-bf29-458d-9aec-e107985b0c9c)
    Asset validation failed
    Missing required icon file. The bundle does not contain an app icon for iPad of exactly '167x167' pixels, in .png format for iOS versions supporting iPad Pro. To support older operating systems, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface (ID: 8dd51d1c-53e4-47a4-b530-4f12cdb70455)
    Asset validation failed
    Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 10.0. To support older operating systems, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface (ID: 1f7bd253-9ea0-4f16-990e-935d3746a051)
    Asset validation failed
    Missing App Icon. An app icon measuring 1024 by 1024 pixels in PNG format must be included in the Asset Catalog of apps built for iOS, iPadOS, or watchOS. Without this icon, apps cannot be submitted for review. For details, see https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/. (ID: e53e6749-9f00-42b6-b1b6-1492d5707da5)
    App Store Connect Operation Warning
    The app references non-public selectors in Payload/WordBunnies.app/Frameworks/UnityFramework.framework/UnityFramework: applicationWillFinishLaunchingWithOptions:, loadPlugin
     
  2. NakedUnicorns

    NakedUnicorns

    Joined:
    Feb 22, 2023
    Posts:
    11
    The same thing happens with a new project. Icons do not show on ios Device and will not archive to store.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,711
    That seems really weird... even if you provide no icon, Unity has always jammed one in.

    Are you on a bleeding edge past-LTS version? Might want to step back to LTS and see if that builds.

    Anytime you go beyond LTS you are an unpaid test pilot.

    https://forum.unity.com/threads/pro...de-to-new-unity-version.1400491/#post-8812384

    EDIT: maybe also try reimport-all, then rebuild?
     
  4. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,124
    You're adding it to "Player Settings" -> "Icon" -> "Marketing Icons" -> "App Store Icons"?
     
  5. NakedUnicorns

    NakedUnicorns

    Joined:
    Feb 22, 2023
    Posts:
    11
    Yeah. The concerning thing is this happens with an empty new project. I think its a bug.
     
  6. NakedUnicorns

    NakedUnicorns

    Joined:
    Feb 22, 2023
    Posts:
    11
    I think you may be right about these new versions. I downgraded to 2022.2.12f1 Silicon and the icons now show up correctly. On 2022.2.13f1 and 2022.2.14f1 there are no icons only the white placeholder icon and no Unity icon either so the app wont archive. (ie it is useless)

    And the current Silicon LTS version can't even build my app.

    So I am just sticking with 2022.2.12f1 not upgrading ANYMORE, and I am not upgrading my IOS version on my iPad either. This one works and I am sticking with it until the bitter end. I am not playing Unity version roulette anymore.


    Though with the 2022.2.12f1 version I get this warning in Xcode Which I do not get with any other version. I don't know what this means, but I guess I will ignore it.

    /Users/bokken/buildslave/unity/build/External/il2cpp/builds/external/baselib/Source/Darwin/Baselib_SystemSemaphore_DarwinApi.inl.h:36 Thread running at QOS_CLASS_USER_INTERACTIVE waiting on a lower QoS thread running at QOS_CLASS_DEFAULT. Investigate ways to avoid priority inversions

    LOL. I miss programming directly in swift, though it was nowhere near as easy as Unity, I felt it was more stable. I never had any build problems ever with Swift. But I shouldn't complain, this engine is awesome. 20,000x better that swiftUI as long as Unity works.
     
    Last edited: Apr 10, 2023
    Rabadash8820 and theolagendijk like this.
  7. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,711
    I would like to tack the above quote onto the bottom of my "Do not upgrade "just for fun" warning.

    Would you like me to attribute it to NakedUnicorns or just say "Anonymous Unity3D forum user." ?
     
  8. NakedUnicorns

    NakedUnicorns

    Joined:
    Feb 22, 2023
    Posts:
    11
    You can just say you invented the phrase or make it anonymous. I don't care, but I don't want to be too negative either. I have no idea what goes into making these Unity builds. I am sure it quite complex especially with Apple and Android constantly upgrading and changing privacy rules and intel to silicon chips etc etc etc....

    But it is a good idea that new users know the volatility of upgrading.
     
    Kurt-Dekker likes this.
  9. Adrian

    Adrian

    Joined:
    Apr 5, 2008
    Posts:
    1,051
    Looks like the
    Images.xcassets
    asset catalog is missing from the Copy Bundle Resources phase. Unity creates the necessary icons but they don't end up in the built application, which then gets correctly reject by Apple when trying to upload it.

    To fix this, open the Xcode project, select the Unity-iPhone target, choose the Build Phases tab and add
    Images.xcassets
    in the Copy Bundle Resources phase. Then the upload worked again for me.
     
    Last edited: Apr 10, 2023
    Java820, Baldor, sandolkakos and 2 others like this.
  10. yuanzichun2000

    yuanzichun2000

    Joined:
    Aug 29, 2021
    Posts:
    2
    We also had similar issues with Unity Cloud Build post build distributing to TestFlight with version 2022.2.13. Switching to 2022.2.11 fixed them.
     
  11. amokto

    amokto

    Joined:
    Apr 5, 2022
    Posts:
    3
    I have the same issue in Unity 2022.2.14.
     
    spakment likes this.
  12. theolagendijk

    theolagendijk

    Joined:
    Nov 12, 2014
    Posts:
    117
    Still an issue in Unity 2022.2.15f1
     
    Rabadash8820 likes this.
  13. spakment

    spakment

    Joined:
    Dec 19, 2017
    Posts:
    90
    Just had this issue when attempting to send app to TestFlight. Filed a bug report - IN-38328
     
  14. sandolkakos

    sandolkakos

    Joined:
    Jun 3, 2009
    Posts:
    261
    yes, we had this problem as well. And thanks @Adrian for your tip, it worked for us.

    If any of you really need to use version 2022.2.13+ and a new version with a fix for that problem is not yet available, in the meantime you can:

    manually add the `Images.xcassets` to:
    -> `Unity-iPhone` target -> Build Phases -> Copy Bundle Resources

    or automatically via `PostProcessBuild`:
    Code (CSharp):
    1.  
    2.     public static class PostProcessBuildUtils
    3.     {
    4.         [PostProcessBuild(999)]
    5.         public static void OnPostProcessBuild(BuildTarget buildTarget, string path)
    6.         {
    7.             if (buildTarget != BuildTarget.iOS)
    8.             {
    9.                 return;
    10.             }
    11.  
    12.             AddImagesXcAssetsToBuildPhases(path);
    13.         }
    14.  
    15.         private static void AddImagesXcAssetsToBuildPhases(string path)
    16.         {
    17.             string projectPath = PBXProject.GetPBXProjectPath(path);
    18.             var project = new PBXProject();
    19.             project.ReadFromFile(projectPath);
    20.          
    21.             string mainGuid = project.GetUnityMainTargetGuid();
    22.             project.AddFileToBuild(mainGuid, project.AddFile("Unity-iPhone/Images.xcassets", "Images.xcassets"));
    23.             project.WriteToFile(projectPath);
    24.         }
    25.     }
    26.  
     
  15. sandolkakos

    sandolkakos

    Joined:
    Jun 3, 2009
    Posts:
    261
    FYI, Unity 2022.2.13+ will also create new `pngs`:
    upload_2023-4-17_15-41-15.png
     
    IlyaSakhatskiy likes this.
  16. carsanwitt

    carsanwitt

    Joined:
    Apr 13, 2015
    Posts:
    3
    2022.2.15 still has this big it seems.

    In my case, I'm using AR Foundation and while "Images.xcassets" is missing from "Unity iPhone", Xcode puts the warning in the "ARReferenceImages.xcassets" folder instead... so it took me a while to connect the dots.

    Anyways, drag and drop adding the "Images.xcassets" folder to "Unity iPhone" in Xcode project navigator solved it for me.
     
  17. d_sharov

    d_sharov

    Joined:
    Dec 24, 2021
    Posts:
    23
    Thank you very much.
    It worked for us
    Unity 2022.2.14

    You can also change the version of the collector in the cloud to 2022.2.11f, this will also work
     
    sandolkakos likes this.
  18. Baldor

    Baldor

    Joined:
    Jul 24, 2018
    Posts:
    4
    Happy to see that I am not the only one with this....
    2022.2.13f1
    Put the images.xcassetes in the xcode project works for me as well.

    You guys saved my day.
     
    sandolkakos likes this.
  19. Adrian

    Adrian

    Joined:
    Apr 5, 2008
    Posts:
    1,051
    Thanks to @spakment for reporting the bug (please post the public link once it's up) and @sandolkakos for the script!

    True, it's only the Xcode project missing the reference to
    Images.xcasset
    . Adding that to the project is enough, no need to add it to the build phases – it's already there just hidden because it's missing.
     
    sandolkakos likes this.
  20. Andrew010110

    Andrew010110

    Joined:
    Oct 8, 2022
    Posts:
    18
    I’m running into this issue as well on 2022.2.14f1 and I’m using the post processing script from above to copy the icons. This fixed the icon on the Home Screen, settings, search, etc. but I’m noticing when looking at the app in the app switcher, the icon is still blank. Any ideas on how to fix that icon?

    I should also note that my project is an XCWorkspace and not just a project due to needing cocoapods so I’m not sure if there are any extra steps needed.
     
  21. Andrew010110

    Andrew010110

    Joined:
    Oct 8, 2022
    Posts:
    18
    Hmm seems it was just a glitch, a reboot and reinstall seems to have fixed it.
     
    sandolkakos likes this.
  22. Rabadash8820

    Rabadash8820

    Joined:
    Aug 20, 2015
    Posts:
    87
    @spakment Could you provide a clickable link to that bug you filed so we can upvote it? Thanks!
     
  23. spakment

    spakment

    Joined:
    Dec 19, 2017
    Posts:
    90
    khaled24, Nith666 and Rabadash8820 like this.