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 & qmake] How to add custom target?
Forum Updated to NodeBB v4.3 + New Features

[iOS & qmake] How to add custom target?

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 748 Views 1 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.
  • benlauB Offline
    benlauB Offline
    benlau
    Qt Champions 2016
    wrote on last edited by
    #1

    Hi ,

    I have a .pro file with following lines:

    @
    archive.target = archive
    archive.commands = cd $${OUT_PWD}; xcodebuild -scheme $${TARGET} -archivePath $${OUT_PWD}/$${TARGET}.xcarchive
    QMAKE_EXTRA_TARGETS += archive
    @

    It should add a custom target ,"archive" , in the Makefile. I have proven the code works with Mac OSX. However, it don't work with iOS platform.

    The generated Makefile do not contains the archive target. Instead it goes to $${TAGRET}.xcodeproj/qt_preprocess.mak

    Therefore , I can not build the target via make. Is that a bug or expected behaviour for iOS? Any method to use custom target just like other platforms?

    Thanks for any advice.

    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