Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Howto Create an Asset Catalog for XCode 9 Appstore Submission?
Thanks to @Majirefy for the detailed report!
I think most people will refer to this tutorial for building iOS game with LibGDX(https://frozenfractal.com/blog/2016/3/18/porting-libgdx-games-to-ios-for-apple-dummies-2/). Maybe LibGDX is the most common case for RoboVM.
Yes, in docs of RoboVM(http://docs.robovm.com/configuration.html#resource-processing), Asset catalogs is supported.
- Generate Assets.xcassets folder. Create an empty iOS project with Xcode 9, give it whatever name. Then refer to Assets.xcassets folder in left panel:
- Double click to open it. Xcode creates a default asset catalog named "AppIcon". Select "AppIcon", then add all icon size of your app. To generate the icons required with the right names and sizes you can use one of the many icon Generator available online. e.g.:https://makeappicon.com
- Close this windows and save project. Then refer to this project's folder in Finder:
There will be a folder called "Assets.xcassets":
- Open your RoboVM project's folder, then go to the folder where you set to save your iOS assets. This folder will be like "data", "resource". To know which, just open "robovm.xml" file, there will be a node named "resources", and then it will tell you which folder RoboVM will refer to when building iOS app with given assets.
In my case, it will be "data" folder, just under my iOS project's folder:
Copy "Assets.xcassets" folder from the project we just created with Xcode 9 to "data" folder.
Modify your iOS project's "Info.plist.xml" file. Under "dict" node, add like this:
Then comment out all the icon info in "CFBundleIcons", you will not use this anymore.
First time I tried to upload the app I got the following error message: ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '57x57' pixels, in .png format for iOS versions < 7.0."
That´s because the icon generator I was using did not create icons for older devices.
If you are ok with excluding older devices, add the following Entry to your info.plist in your iOS folder.
All done! Use gradle to build your app like before. New IPA file will bundled with AppIcon.