Every app needs a beautiful and memorable icon that attracts attention in the App Store and stands out on the Home screen. Your icon is the first opportunity to communicate, at a glance, your app’s purpose. It also appears throughout the system, such as in Settings and search results.
Here we will be seeing how we can set icon for iOS Application but before that we should make sure and understand that Every app must supply small icons for use on the Home screen and throughout the system once your app is installed, as well as a larger icon for display in the App Store.
For that one should understand app icon sizes you can read that here https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/app-icon/
Setting icon for an iOS Application is very easy.
First thing you need to do is collect icon of all sizes mentioned above, you can refer below image.
Once you have got all the images, in your Xcode, Under Project directory paste all them all inside Assets.xcassets and you’re done. Run the application to see the icon.