IOS AppIcon in 5.2 Beta 1?
-
It's this problem:
https://bugreports.qt-project.org/browse/QTBUG-34624 -
I didn't do anything special for adding the app icon and splash screen as required by Apple iOS application:
Just add to the bundle the following files:
Icon.png
Icon-72.png
Icon@2x.png
Icon-72@2.png
Default.png
Default-72.png
Default@2x.png
Default-568h@2x.pngThat's it !!
You don't need to do any changes to the Info.plist created by qmake -
"Add to the bundle" means (for me concerning Qt) adding one or more lines like this in the .pro file:
@
BUNDLE_DATA.files = $$PWD/iOS_BundleData/Icon.png
$$PWD/iOS_BundleData/Icon@2x.png
$$PWD/iOS_BundleData/Icon-72.png
$$PWD/iOS_BundleData/Icon-72@2x.png
$$PWD/iOS_BundleData/Default.png
$$PWD/iOS_BundleData/Default@2x.png
$$PWD/iOS_BundleData/Default-568h@2x.png
QMAKE_BUNDLE_DATA += BUNDLE_DATA
@Of course, you should never change the generated .xcodeproj !!
If you need a custom Info.plist, then you need to create one and add it to the .pro as well
@
QMAKE_INFO_PLIST = $$PWD/iOS_BundleData/Info.plist
@ -
Yeah, awesome!
I made my icons with the mac app "DevBox" and placed this code in the pro file:
@BUNDLE_DATA.files = $$PWD/iOS_BundleData/Icon-60.png
$$PWD/iOS_BundleData/Icon-60@2x.png
$$PWD/iOS_BundleData/Icon-72.png
$$PWD/iOS_BundleData/Icon-72@2x.png
$$PWD/iOS_BundleData/Icon-76.png
$$PWD/iOS_BundleData/Icon-76@2x.png
$$PWD/iOS_BundleData/Icon-Small-40.png
$$PWD/iOS_BundleData/Icon-Small-40@2x.png
$$PWD/iOS_BundleData/Icon-Small-50.png
$$PWD/iOS_BundleData/Icon-Small-50@2x.png
$$PWD/iOS_BundleData/Icon-Small.png
$$PWD/iOS_BundleData/Icon-Small@2x.png
$$PWD/iOS_BundleData/Icon.png
$$PWD/iOS_BundleData/Icon@2x.pngQMAKE_BUNDLE_DATA += BUNDLE_DATA@
Thanks!
-
@syfy323 said:
BUNDLE_DATA.files = $PWD/iOS_BundleData/Icon-60.png
$PWD/iOS_BundleData/Icon-60@2x.png
$PWD/iOS_BundleData/Icon-72.png
$PWD/iOS_BundleData/Icon-72@2x.png
$PWD/iOS_BundleData/Icon-76.png
$PWD/iOS_BundleData/Icon-76@2x.png
$PWD/iOS_BundleData/Icon-Small-40.png
$PWD/iOS_BundleData/Icon-Small-40@2x.png
$PWD/iOS_BundleData/Icon-Small-50.png
$PWD/iOS_BundleData/Icon-Small-50@2x.png
$PWD/iOS_BundleData/Icon-Small.png
$PWD/iOS_BundleData/Icon-Small@2x.png
$PWD/iOS_BundleData/Icon.png
$PWD/iOS_BundleData/Icon@2x.pngQMAKE_BUNDLE_DATA += BUNDLE_DATA
I am little confussed with above thing with following documentation
http://doc.qt.io/qt-5/appicon.html#setting-the-application-icon-on-mac-os-xWhich one works for setting Icon for iOS App?