Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. iOS appicon and splashscreen settings
Forum Updated to NodeBB v4.3 + New Features

iOS appicon and splashscreen settings

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 590 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    krokstr
    wrote on last edited by
    #1

    Hello,

    I've been porting an android app to iOS, so now I am doing final touches, where I have to set the appicon and splashscreen.
    I've read some posts here in the forum and other places, but couldn't make it work. Maybe THIS ONE was the most informative but still don't know how to do it correctly. I've tried to manually put my icons directly in Xcode and directly in the following directory:
    "project_folder/OUT_PWD/proj_name/Images.xcassests/Appicon.appiconset", but without success.

    Can someone post a properly configured .pro, Info.plist and something else if needed? Thanks!

    J.HilkJ 1 Reply Last reply
    0
    • K krokstr

      Hello,

      I've been porting an android app to iOS, so now I am doing final touches, where I have to set the appicon and splashscreen.
      I've read some posts here in the forum and other places, but couldn't make it work. Maybe THIS ONE was the most informative but still don't know how to do it correctly. I've tried to manually put my icons directly in Xcode and directly in the following directory:
      "project_folder/OUT_PWD/proj_name/Images.xcassests/Appicon.appiconset", but without success.

      Can someone post a properly configured .pro, Info.plist and something else if needed? Thanks!

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      hi @krokstr

      recently I had a rather extensive thread with @tomy about this:

      https://forum.qt.io/topic/100669/my-first-qml-app-s-problem-on-macos-high-sierra

      read through that, maybe it's enough information to get you rolling. If not I'm sure to help, if I can.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      2
      • K Offline
        K Offline
        krokstr
        wrote on last edited by
        #3

        Okay, now it works! Made few changes in .pro file and Xcode.

        I've copied Info.plist file into my project folder, then changed .pro to this:

        QMAKE_INFO_PLIST = Info.plist
        
        meta.files = $$files($$PWD/meta/*)
        QMAKE_BUNDLE_DATA += meta
        
        meta.files = $$files($$PWD/meta/*.xcassets)
        QMAKE_BUNDLE_DATA += meta
        
        QMAKE_ASSET_CATALOGS += /Users/user/workspace/build-project........-Debug/projectName/Images.xcassests/Appicon.appiconset
        
        ios_icon.files = $$files($$PWD/ios/Icon*.png)
        QMAKE_BUNDLE_DATA += ios_icon
        

        Not sure if everything is needed, will check it later but it's working that way.

        Next I have all the different size icons in AppIcon.appiconset folder. After that added the following to Info.plist:

        <key>CFBundleIcons</key>
        	<dict>
        		<key>CFBundlePrimaryIcon</key>
        		<dict>
        			<key>CFBundleIconFiles</key>
        			<array>
        				<string>AppIcon20x20</string>
        				<string>AppIcon29x29</string>
        				<string>AppIcon40x40</string>
        				<string>AppIcon60x60</string>
        			</array>
        			<key>CFBundleIconName</key>
        			<string>AppIcon</string>
        		</dict>
        	</dict>
        

        Now added the Images.xcassets to the project in Xcode, so the Xcode can see the assests in Generel->App Icons and Launch Images.

        Thanks for the help @J-Hilk!

        1 Reply Last reply
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved