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. CMake for iOS. How to setup deployment target and device family with iOS?
Forum Updated to NodeBB v4.3 + New Features

CMake for iOS. How to setup deployment target and device family with iOS?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 569 Views
  • 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.
  • B Offline
    B Offline
    bogong
    wrote on 10 Oct 2022, 09:23 last edited by
    #1

    Hello all!

    What is the same command in Qt Cmake file for implementing deployment target and device family with iOS?
    The QMake command is:

    QMAKE_IOS_DEPLOYMENT_TARGET = 13.0
    QMAKE_APPLE_TARGETED_DEVICE_FAMILY = 1,2
    

    Or everything doing through the Info.plist?

    1 Reply Last reply
    1
    • B Offline
      B Offline
      bogong
      wrote on 15 Aug 2023, 11:50 last edited by
      #2

      Issue closed.

      Use this:
      -- for deployment target https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_DEPLOYMENT_TARGET.html
      -- and this for device family

      set(CMAKE_XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2")
      
      1 Reply Last reply
      0
      • B bogong has marked this topic as solved on 15 Aug 2023, 11:50

      • Login

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