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. [Solved] Getting custom launch screen .xib to deploy properly
Forum Updated to NodeBB v4.3 + New Features

[Solved] Getting custom launch screen .xib to deploy properly

Scheduled Pinned Locked Moved Mobile and Embedded
ios
3 Posts 2 Posters 2.0k Views 2 Watching
  • 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.
  • E Offline
    E Offline
    eLim
    wrote on last edited by eLim
    #1

    Hey!
    I'm a complete novice to using a Mac and iOS stuff. Always done my Qt work with Android up until now.
    So basically I wanted to replace the .xib file for the launch screen that Qt generates by default.

    In my project directory I have a folder ios_bundle which contains my customised Info.plist file and Launch.xib, which is my custom launch screen.

    In my .pro file I've added the following:

    ios {
        QMAKE_INFO_PLIST = ios_bundle/Info.plist
    
        launch_xib.files = $files($PWD/ios_bundle/*.xib)
        QMAKE_BUNDLE_DATA += launch_xib
    }
    

    However my compilation is failing.
    "The following build commands failed:
    CpResource $files(/Users/papasmurf/build-JourneyTreesApp-iphonesimulator_clang_Qt_5_4_1_for_iOS-Debug/ios_bundle/.xib) Debug-iphonesimulator/JourneyTreesApp.app/.xib)
    (1 failure)
    make[1]: *** [iphonesimulator-debug] Error 65
    make: *** [debug-iphonesimulator] Error 2
    17:28:29: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project JourneyTreesApp (kit: iphonesimulator-clang Qt 5.4.1 for iOS)
    When executing step "Make""

    The full compile log can be found here: http://pastebin.com/5atj6ccD

    Can anyone possibly point me in the right direction here? These steps seem to work for other people I've googled about, but I'm not getting anywhere!

    Thanks in advance

    E 1 Reply Last reply
    0
    • E eLim

      Hey!
      I'm a complete novice to using a Mac and iOS stuff. Always done my Qt work with Android up until now.
      So basically I wanted to replace the .xib file for the launch screen that Qt generates by default.

      In my project directory I have a folder ios_bundle which contains my customised Info.plist file and Launch.xib, which is my custom launch screen.

      In my .pro file I've added the following:

      ios {
          QMAKE_INFO_PLIST = ios_bundle/Info.plist
      
          launch_xib.files = $files($PWD/ios_bundle/*.xib)
          QMAKE_BUNDLE_DATA += launch_xib
      }
      

      However my compilation is failing.
      "The following build commands failed:
      CpResource $files(/Users/papasmurf/build-JourneyTreesApp-iphonesimulator_clang_Qt_5_4_1_for_iOS-Debug/ios_bundle/.xib) Debug-iphonesimulator/JourneyTreesApp.app/.xib)
      (1 failure)
      make[1]: *** [iphonesimulator-debug] Error 65
      make: *** [debug-iphonesimulator] Error 2
      17:28:29: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project JourneyTreesApp (kit: iphonesimulator-clang Qt 5.4.1 for iOS)
      When executing step "Make""

      The full compile log can be found here: http://pastebin.com/5atj6ccD

      Can anyone possibly point me in the right direction here? These steps seem to work for other people I've googled about, but I'm not getting anywhere!

      Thanks in advance

      E Offline
      E Offline
      eLim
      wrote on last edited by eLim
      #2

      Not sure what the difference is between $PWD and $ $ PWD (no spaces) but this solved it for me:

      ios {
          QMAKE_INFO_PLIST = ios_bundle/Info.plist
      
          launch_xib.files = $files($ $PWD/ios_bundle/Launch.xib)
          QMAKE_BUNDLE_DATA += launch_xib
      }
      

      Just make sure you don't put the space between the 2 dollar signs. The forum hides one if I put them both next to each other.
      Hopefully this helps for anyone else stuck with the same issue

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by SGaist
        #3

        Hi,

        The $$ operator is used to extract the contents of a variable, and can be used to pass values between variables or supply them to functions:

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

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