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. Qmake variable for iOS
Forum Updated to NodeBB v4.3 + New Features

Qmake variable for iOS

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 1.8k 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.
  • S Offline
    S Offline
    shob
    wrote on last edited by
    #1

    Hello,

    I am trying to find the qmake variable that could be used to differentiate between the iPhone simulator and iPhone arm kits.
    In my .pro file, I would like to use conditions like

    @ios {
    CONFIG += c++11
    iphonesimulator {
    message("iphonesimulator")
    #Do Something
    }
    iphoneos{
    message("iphoneos")
    #Do Something
    }
    }@

    On running qmake with the iphonesimulator kit, it prints out

    @Project MESSAGE: iphonesimulator
    Project MESSAGE: iphonesimulator
    Project MESSAGE: iphonesimulator
    Project MESSAGE: iphonesimulator
    Project MESSAGE: iphoneos
    Project MESSAGE: iphonesimulator
    Project MESSAGE: iphonesimulator
    Project MESSAGE: iphoneos@

    With iPhone device kit , it prints
    @Project MESSAGE: iphoneos
    Project MESSAGE: iphoneos
    Project MESSAGE: iphoneos
    Project MESSAGE: iphonesimulator
    Project MESSAGE: iphoneos
    Project MESSAGE: iphoneos
    Project MESSAGE: iphonesimulator
    Project MESSAGE: iphoneos@

    I tried using the QT_ARCH variable, but message($$QT_ARCH) prints out "arm" for both the kits.

    What is the correct qmake variable to use to differentiate between iPhone simulator and iPhone arm kits?

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

      Hi,

      iOS support being relatively new, I would recommend posting this question on the interest mailing list (don't forget to subscribe first)

      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