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



  • 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



  • 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


  • Lifetime Qt Champion

    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:


Log in to reply
 

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