When you create an iOS app and run it in simulator, you may find that the default app icon in the screen is a grid picture, this is not beautiful. This article will tell you two method about how to change the default iOS app icon to your desired icon both in simulator and when you publish your app to app store.
1. Change iOS App Icon In Xcode Simulator Steps.
If you just want to change the iOS app icon in simulator, you can follow below steps. But if you want to publish your iOS app to apple app store, you should use method two.
- Find an icon image from the internet such as https://icons8.com/ and save the icon image in a local directory. Note: the icon size of iOS 11 must be 120*120 pixels.
- In Xcode project, right click the info.plist file and select Add Files to “project name” menu item.
- Select the iOS app icon image file, and choose Create groups radio button. Click Add button to add it.
- Now the logo.png file has been added into the project, you can see it in left panel project navigator files list.
- Click the info.plist file again to open it. And click the plus button after the Information Property List item to add a new property item. Input Icon files in item key and select Array in item Type column. Expand Icon files item and input the icon image file name in the Value column manually.
- Now when you run the app again, you can see the app use the selected icon in the screen. In this example, my example iOS app use a green twitter image icon like below picture.
2. Set iOS App Icon For Publish It To App Store.
Method one is just used to set app icon in iOS simulator, if you want to set iOS app icon when the app is published to apple app store, you should follow below steps.
- When you create a Xcode project use one template such as Single View App, there is an assets catalog file created in the project file list. The file name is Assets.xcassets.
- Click the Assets.xcassets file, it will display all project assets set in middle document outline view. By default there is only one AppIcon set, you should provide all the iOS app icons in this set.
- Click the AppIcon set, it will display all the iOS app needed icons in right detail view. You should get all the icons for both iPhone and iPad’s screen app, settings, notification, spotlight and app store with different screen resolution. And then drag & drop them to right detail view one by one.
- To save your time, you can find one png image in iconfinder.com and download it to your local machine.
- One png image is not enough, you need to create icons for all the sizes with the download image. You can go to makeappicon.com to upload the image and then generate all the iOS app needed icons.
- Makeappicon.com will generate a zip file, it will send the zip file to your provided email box.
- After download the zip file and unzip it, you can find below file structures. It contains all mobile platform ( iOS, android, iWatch etc) needed icons.
- Now you need to copy this icons into Xcode project, what you need to do is just drag the folder AppIcon.appiconset under ios folder, and drop it to Assets.xcassets‘s document outline view.
- Now it will create a new iOS AppIcon set which name is AppIcon-1. Click this icon set, you will see all the iOS app needed icons in right detail view.
- Now click the Xcode project in left panel, select one target in center document outline view TARGETS list, then select AppIcon-1 in right panel General —> App Icons and Launch Images —> App Icons Source drop down list.
- Now start the iOS simulator, it will start the app, just click the bottom of app main screen and throw it to the top, it will hide the app main screen and display the app icon on the screen like below.