IOS AppIcon in 5.2 Beta 1?



  • Hello,

    how do I embed the Apple App Store Icons? I tried many ways including the keys in Info.plist but my apps still have the dev-standard icon.

    I have valid images. Thanks.





  • 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.png

    That's it !!
    You don't need to do any changes to the Info.plist created by qmake



  • when you say "add to the bundle" , what did you actually do ?
    did you add them to the .xcodeproj ? or to the .pro file ?

    and if you added them to the .xcodeproj file, won't those details get lost next time you do a 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
    @



  • thank you.
    this works for me.



  • 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.png

    QMAKE_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.png

    QMAKE_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-x

    Which one works for setting Icon for iOS App?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.