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. Swift 5 version and CPP interoperability in Qt application. How?
Forum Updated to NodeBB v4.3 + New Features

Swift 5 version and CPP interoperability in Qt application. How?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 107 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 last edited by
    #1

    Hello all!

    Got success in implementing Swift-CPP interoperability in plain CMake project https://youtu.be/mUpvDT03cw8 For now trying to implement the same functionality in Qt/QML application for iOS. Got few questions.

    First question.
    By default in Qt 6 application with CMake, when added Swift language to project by something like this:

    project(${A_NAME_TARGET} VERSION 0.1 LANGUAGES CXX Swift)
    

    The Swift version is 4.0 in automatically generated XCode project. Why so? If it will be changed on 5.0 or higher will it be affecting Qt application itself?

    Second question.
    Is the difference for Qt/QML application when using Ninja or XCode for building application in case of using Swift? When in principal do better to use XCode and when do better Ninja? By default in Qt Creator using Ninja, why?

    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