Home Features Docs Blog Support GitHub

iOS export App store failed because of icons


(Abdullah Tellioglu) #1

I was trying to upload my application to app store for the first time, and I get error while compiling ipa file.

41
You can see exceptions above, and here is my file structure:
->native
->framework
->ios-moe
->ios-moe-test
->Pods

inside the ios-moe folder I have
Icon-72@2x
Icon
Icon@2x
Icon-76@1x (NEW)
Icon-76@2x (NEW)
Icon-60@2x (NEW)
And it showed the same error again. I thought I should bind these files with Moe but I do not know how to do it.


(Abdullah Tellioglu) #2

This is the packaging log and it seems like MOE does not copy these files.

2017-12-15 11:32:50 +0000  copying file ./Payload/Swircle.app/Default-414w-736h@3x.png ... 
2017-12-15 11:32:50 +0000  57854 bytes for ./Payload/Swircle.app/Default-414w-736h@3x.png
2017-12-15 11:32:50 +0000  copying file ./Payload/Swircle.app/Icon-72.png ... 
2017-12-15 11:32:50 +0000  7203 bytes for ./Payload/Swircle.app/Icon-72.png
2017-12-15 11:32:50 +0000  copying file ./Payload/Swircle.app/Icon-72@2x.png ... 
2017-12-15 11:32:50 +0000  16899 bytes for ./Payload/Swircle.app/Icon-72@2x.png
2017-12-15 11:32:50 +0000  copying file ./Payload/Swircle.app/archived-expanded-entitlements.xcent ... 
2017-12-15 11:32:50 +0000  382 bytes for ./Payload/Swircle.app/archived-expanded-entitlements.xcent
copying file ./Payload/Swircle.app/Icon@2x.png ... 
2017-12-15 11:32:50 +0000  13054 bytes for ./Payload/Swircle.app/Icon@2x.png
copying file ./Payload/Swircle.app/Default-568h@2x.png ... 
2017-12-15 11:32:50 +0000  29825 bytes for ./Payload/Swircle.app/Default-568h@2x.png

#3

Try going to Build Phases and find the section labeled Copy Bundle Resources. Make sure those files are listed there, and if they aren’t, drag them over to it to add them.

For what it’s worth I use Asset Catalog Creator from the Mac App Store (https://itunes.apple.com/us/app/asset-catalog-creator/id866571115?mt=12) and it takes care of all the icons for you so you don’t have to keep up with resizing each icon version. iOS icon generation is free iirc, with cheap in-app purchases for other things like splash screen (definitely worth getting).


(Leejjon) #4

I had exactly the same issue and solved it. Look in my project (https://github.com/Leejjon/BluffPoker) and copy the Assets.xcassets folder in your project.

You can use this free service to generate icons from your own icon and replace mine with your own:

I find it still unbelievable that xcode cannot give project warnings about this when you set up your project. Instead they start complaining the moment when you upload it to the store.