[iOS] Appstore trouble with CFBundleIconName and asset catalog - something to do with xcode9 and iOS11 SDK
-
Having updated to xcode9, I'm attempting to submit an updated version of an app built vs. Qt5.7 (just trying a newer version now but this would be a problematic fix for licensing reasons).
The appstore is rejecting me with this message:
We have discovered one or more issues with your recent delivery for "...". To process your delivery, the following issues must be corrected: Missing Info.plist value - A value for the Info.plist key 'CFBundleIconName' is missing in the bundle '...'. 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.
Googling this finds plenty of other people who've hit it, but all the solutions (and there seem to be a diverse range of contradictory ones offered) seem to be aimed a people who are far more familiar with xcode than I am.
How I've attempted to fix it is:
- In my build-script, after qmake has created the xcodeproj, do a
/usr/libexec/PlistBuddy -c 'Add :CFBundleIconName string "AppIcon"' Info.plist
- Having opened the qmake-generated xcodeproj in xcode, add an
Assets.xcassets
to the app at the top level. - Initially, within that I create an AppIcon (named AppIcon) and populate the blank placeholders with the needed icon sizes (it's an iPad only app so there aren't as many of these as there would be if it also ran on phones). On subsequent attempts the
Assets.xcassets
is already populated. - Build (it runs just fine on local iOS10 and iOS11 devices) and submit to appstore as usual. It uploads successfully, but a few minutes later that error message arrives by email.
Not sure what I'm doing wrong here... any pointers greatly appreciated.
- In my build-script, after qmake has created the xcodeproj, do a
-
I've just hit that, as well. This link seemed most promising, and Qt specific: https://appbus.wordpress.com/2017/10/06/ios-11-and-xcode-9-in-qt-5-9-x-projects/
it is the fix that I am trying nowIt worked like a champ. much easier than the old way, too.
-
@refaQtor Brilliant... following that worked... app just popped up in testflight.
Comparing with some other write-ups of the issue... I think removing any cruft related to "the old way of doing things" (before asset catalogs) must be quite important to getting something through (except the appstore's error messages are useless and don't tell you what the problem really is). I'd mark your post as the correct answer if the forum let me... but it only lets me flag my own posts as such... so I'll just mark the thread solved. Thanks!
-
@timday great to see that my blog post helped you :)
-
@ekkescorner Just done the same issue by following of your blog. Confirming that it is working on iOS 12.1 and Xcode 10.2.1. Just published. Thx a lot.
Just checked the quality of images that generated automatically by this site. They are not "pixel nice", they are very rough. If there are necessity to improve images quality for the level of "pixel nice" need to exchange them by drawn them in Photoshop and using them like templates.