Regarding how to add app icon in iPad
-
wrote on 27 Nov 2016, 14:32 last edited by
Hi,
I have added icon to my app in android , icon was app.png.
I tried adding to Xcode for iPad, i am getting the below errors.
Xcode/Users/UserName/Documents/build-AppName-iphoneos_clang_Qt_5_7_0_for_iOS-Release/AppName/Images.xcassets: The app icon set named "AppIcon" did not have any applicable content.
What is the issue and can we add icons for IOS in .pro file mentioning.?. apart from Xcode.
Thanks,
-
Hi,
Where are your icons located ? What format are you using ?
-
wrote on 28 Nov 2016, 05:44 last edited by
Hi,
I am using appicon.png and i have added the image in resource file.
-
These are OS specific assets. iOS (as well as Android) has no clue about the Qt Resource System. It won't search anything in there to show an application icon. It's the same for desktop applications.
Here in the iOS platform notes you have the description of what you need to do in order to provide the correct stuff for your application to be handled correctly by the OS.
-
wrote on 28 Nov 2016, 13:21 last edited by
Thanks for the answer and link.
I have added as per the document as below
ios {
ios_icon.files = $$files($$PWD/Images/Appname.png)
QMAKE_BUNDLE_DATA += ios_icon
}But its not reflecting in info.plist, and do i need to mention anything in .pro file apart from the above mentioned lines in my .pro file.
Thanks,
-
Thanks for the answer and link.
I have added as per the document as below
ios {
ios_icon.files = $$files($$PWD/Images/Appname.png)
QMAKE_BUNDLE_DATA += ios_icon
}But its not reflecting in info.plist, and do i need to mention anything in .pro file apart from the above mentioned lines in my .pro file.
Thanks,
@Pradeep-Kumar said in Regarding how to add app icon in iPad:
But its not reflecting in info.plist,
Hi
Im 110% Apple noob, but i wonder if related to this
http://stackoverflow.com/questions/40359476/setup-ios-icon-from-qt
and
"Open the Xcode bulid file and go to build Settings>product bundle identifier . Now set any bundle id in the field . Now run the project , it will automatically create info.plist file and other set up like standard ."Still not into .pro though :(
-
You have to create a custom info.plist file. For that you can simply build your application once, then copy the Info.plist file from the bundle to your sources and modify it.
It's all explained in the document I linked to.
6/7