App Store rejects because of app icon size - ios

Appstore rejects app upload and shows this error:
Invalid Image Path - No image found at the path referenced under key
'CFBundleIcons': 'AppIcon20x20'
Can anyone share what the issue is? I had implemented appicon using this.

Use https://makeappicon.com website to make app icons it will automatically generate app icons of all sizes required.

This is my first post on StackOverflow so bear with me.
I created this automator workflow, it generates all icon sizes needed for the App Store currently⟨sept 2022)
https://github.com/saxjax/app-icon-creator.git
1- Open in automator and save.
2- Create a squared image 1024x1024 or larger using preview.
3- right click on the image, select "To Icon"
follow the prompts.
The script consists of blocks of 4 for each icon size:
1-Get value
2-Duplicate
3-Scale
4-Rename
If you need a particular size, just copy paste that quadruple and change the pixel size and the name accordingly.
Feel free to manipulate and share the code however you like.
In the future from Xcode 14 and out you only need to provide one 1024x1024 icon in your assets catalog.

Related

How to change an iOS application icon programmatically with image from URL?

There is a lot of useful information on how to change the app icon programmatically using "setAlternateIconName" in Swift.
According to the documentation of apple, the name of the alternate icon has to be declared in the CFBundleAlternateIcons key of the app's Info.plist file.
Now, I don't want to use pre-saved jpg./png. images to change the app icon. Instead, I'd like to download an image from a URL from within the app and us this downloaded image as the app icon. Obviously, it's not possible to just add the URL to Info.plist in the appropriate field..
Is there a way to solve this problem?
Best,
Nik
It's impossible to set the app icon to custom icon other than those set in CFBundleAlternateIcons in Info.plist

Its just impossible to add an action extension icon

I've been literally trying for two weeks to get an icon for an action extension to appear, but absolutely nothing works.
I've seen past questions such as this iOS 8 Action Extension icon sizes and this Why isn't my iOS8 Application Action Extension App Icon showing up? but they are of no use.
I've created an Xcode template project purely to try every combination of things mentioned in the other questions, still without avail.
1) The first thing that's mentioned is that the action extension should have its own asset catalog, ok here it is:
2) Secondly that it should contain an app icon image set, here that is:
3) Thirdly people say they had to add its target membership to the extension and to the app. Here that is too (in all of these things, I've tried variations such the membership being just the extension, just the app, both)
4) Fourthly, people mention they had to add it to the compile sources, here that is, as well as it being copied in the bundle resources:
5) Some say it also needs to be copied in the container app's bundle, here that is, and for good measure its been added as a compile resource of that too:
6) One person says it was necessary to add the container apps assets to the extension bundle, I can't see how that would work as the icons in the container app are colored and not matching the requirements of the extension icons, but what the hell, might as well try everything right, and while we're at it lets add assets everywhere:
7) The asset icon itself is important, colored icons are not displayed, but I tried it anyway. A simple black and white image is described as the white parts appearing as grey but I've tried that anyway. Trying unsupported icons was just desperation and experimentation, of course I'm actually using an icon with a transparent background. When posted here it appears on this webpage as all white of course, but the non-black parts are actually fully transparent and have an alpha of 0:
But despite trying many combinations of all the various steps above, this is what it looks like on the device:
This is using iOS 10.n, latest 10.7 (it hasn't worked with any beta) and Xcode 8.6. If I download an app from the app store that uses action extensions then their icons are appearing, so there's no issue with the 10 beta. The issue is either something building the app with Xcode beta, or some step I've missed out - if that is the case, then what?
Finally found out the solution - in order to get it to work its additionally necessary to set the Asset Catalog compiler options of Build Settings section of the extension to specify the name of the app icon set within the asset catalog:
How to set an action icon really is the most appallingly badly documented aspect of iOS, totally shockingly awful.

WatchKit sometimes not loading images

I have a number of images in my interface, some simply used as information feedback and others are there as part of Buttons.
The information feedback images are updated in the interface using code. The images which are part of buttons have the image choice defined in Xcode and they never change.
A number of users have sent me images showing screens where none of the buttons have images, ie they're blank. The buttons still work though.
The situation doesn't happen with all users and it works exactly as designed in the simulator.
All images are stored in the WatchKit app so have not been explicitly cached as that shouldn't be necessary. All images are in PNG format.
Has anyone else experienced this and is there a fix?
If the image files in your WatchKit app are "loose" (i.e. not in an assets catalog), make sure you have the "#2x" suffix in the file name. Many developers have reported issues where loose images display in the simulator but not on actual hardware.
I would highly recommend creating an assets catalog in your WatchKit app (not extension) that includes all of your Watch assets. Make sure that each image is set to "Device Specific" in the inspector panel and that "Apple Watch" is the only option selected. Using this technique, the actual file names don't matter.
I just happened to write a post with additional details that might be useful to you: http://blog.mikeswanson.com/post/118580394879/watchkit-image-tips

Setting the icon for my App?

![I'm trying to submit my app to Appstore but I'm facing a problem with setting up the icon for my app, I've tried all the variation of sizes for the icon size, but still it's giving me errors , I have taken a snapshot for those errors please help :]
Take 1024x1024 icon and generate other icons form http://makeappicon.com/
The images you use should be exactly in the specified dimensions. Even when you can put them "inside the box" of the UI, they must be correctly sized. Please check your files in the Editor, if they are really the right size.
And then, also try with clean build the project.
Remove the icons (Icon-*) from Images.xcassets, you don't need them there. You just need to drag your icons from Finder into their respective boxes inside AppIcon. And make sure you have the correct size for each icon.

How do I separate the app icon from the launch image in an iOS app

Thanks for the time to look. I have a weird problem. my Launch image (AKA Splash screen) seems to automatically be tied to my App icon. so I cant change one with out changing the other. In other words, when I add a new app icon, it changes the launch image to match.
I am guessing this has something to do with the .plist file, but I cant figure out where to fix it.
Thanks for the time!
You can specify them differant in plist file. See here
ALSO
Check Apple's link for default name of different files. You just need to rename with default name and add the image files in your project.

Resources