Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt 5.4/iOS: Deploy Launch.xib

    Mobile and Embedded
    2
    4
    1469
    Loading More Posts
    • 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.
    • L
      lynic last edited by

      Hi,

      The .pro file contains the following lines to copy a custom launch file to the xCode project:

      @launch_xib.files = $$PWD/ios/Launch.xib
      QMAKE_BUNDLE_DATA += launch_xib@

      But the image (e.g. "Launch.xib") is not copied. Instead the LaunchScreen.xib (automatically created by Qt) is added to the project. Is there a possible bug in the pipeline, or are the lines above wrong?

      Regards,

      1 Reply Last reply Reply Quote 0
      • T
        TioRoy last edited by

        Your lines are correct.

        • Copy the .plist deployed by QtCreator to output dir, to your project

        • Add this line in your .pro:

        @
        QMAKE_INFO_PLIST = $$PWD/ios/<filename>.plist
        @

        • Change in your <filename>.plist the variable UILaunchStoryboardName:

        @
        <key>UILaunchStoryboardName</key>
        <string>launch_xib</string>
        @

        1 Reply Last reply Reply Quote 0
        • L
          lynic last edited by

          Thanks. I am doing exactly this but the xib is not copied.
          Interestingly the following works:

          @
          launch_xib.files = $$files($$PWD/ios/*.xib)
          QMAKE_BUNDLE_DATA += launch_xib
          @

          1 Reply Last reply Reply Quote 0
          • T
            TioRoy last edited by

            Sorry. I did not read correctly your post.
            Here the piece of my .pro:

            @
            BUNDLE_DATA.files = $$PWD/ios/icons/Icon.png
            $$PWD/ios/icons/Icon@2x.png
            $$PWD/ios/icons/Icon-60.png
            $$PWD/ios/icons/Icon-60@2x.png
            $$PWD/ios/icons/Icon-72.png
            $$PWD/ios/icons/Icon-72@2x.png
            $$PWD/ios/icons/Icon-76.png
            $$PWD/ios/icons/Icon-76@2x.png
            $$PWD/ios/icons/Icon-Small.png
            $$PWD/ios/icons/Icon-Small@2x.png
            $$PWD/ios/icons/Icon-Small-40.png
            $$PWD/ios/icons/Icon-Small-40@2x.png
            $$PWD/ios/icons/Icon-Small-50.png
            $$PWD/ios/icons/Icon-Small-50@2x.png
            $$PWD/ios/launch.xib
            @

            1 Reply Last reply Reply Quote 0
            • First post
              Last post