Missing CFBundleIconName in Xcode9 iOS11 app release

后端 未结 21 916
迷失自我
迷失自我 2020-12-02 10:47

I\'m struggling to release a new version of our app using Xcode 9 built with iOS 11 SDK. Archiving and uploading the binary goes well without any issue. The build appears in

21条回答
  •  误落风尘
    2020-12-02 11:40

    I too have encountered the "Missing Info.plist value - A value for the Info.plist key CFBundleIconName is missing in the bundle..." error and wanted to leave a concise answer to hopefully help the next person.

    The app was not using an asset catalog. Although that is not what this error says, that is what is required to resolve this issue, but how you add the values is important. It is not enough to manually add this missing key\value to the .plist; there is more to it than that. You also need to remove the CFBundleIcons value from your .plist. This can be done manually, but I recommend using the XCode interface to edit this through the Project Properties - General App Icons and Launch Image. That is how I got mine to work.

    Below is a screen shot of the changes this made to my .plist.

    App Icons and Launch Images

    Add a new Asset Catalog to your project if you do not already have one.
    Click the app name at the top of your Navigator window
    Select the GENERAL tab
    Scroll down to the "App Icons and Launch Images" section
    Click the "use an asset catalog" button
    NOTE: I had created my own asset catalog and iOS App icon image set, but linking to the existing one didn't work for me as it created a new image set which had empty values\images. I had to delete them all and let this process create them for me. If you are just now adding an asset catalog to resolve this issue, let this process create it for you, don't manually add the image set.

    Click to convert\migrate the app
    After clicking the button, nothing refreshed automatically for me. I navigated away and then back to the settings screen and values were now assigned in the dropdown list.

    Now open your new asset catalog by clicking on it
    Click on the "AppIcon" section and drag your required images to the appropriate locations.

    You will need the 1024x1024 image for the App Store iOS 1024pt icon and any other iPhone\iPad\Universal app required icons. The 1024x1024px image is also known as the Marketing Icon. You cannot submit your app without it.

    You should now be able to archive your app and submit it to the app store.

提交回复
热议问题