Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Empty Xcode archive CMake build
Forum Updated to NodeBB v4.3 + New Features

Empty Xcode archive CMake build

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 686 Views 3 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.
  • L Offline
    L Offline
    Lilde
    wrote on 23 Dec 2021, 08:02 last edited by
    #1

    For the same project : I used clocks example as minimum example.

    If I load it in qt creator with clocks.pro,
    -build with qt creator
    -open the Xcode project
    -it runs well on iPhone
    -generate archive works well. (the archived is successfully uploaded to AppStoreConnect)

    If I load in qt creator with CMakeLists.txt
    -build with qt creator
    -open the Xcode project
    -it runs well on iPhone
    -generate archive success but the generated archive is almost empty. => the product folder is empty and there is no debug symbols.
    So Archiver display the archive in other items than to IOS App and it not able to upload the archive to AppStoreConnect (In fact, the archive not contains .app file, the product folder is empty)

    Have you a workaround to use CMake for IOS App ??

    Ask me if you need more informations, I can make more tests.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Dec 2021, 20:25 last edited by
      #2

      Hi and welcome to devnet,

      You should add which version of Qt you are using.

      If memory serves well, support for iOS cmake build lagged behind at some point.

      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
      • M Offline
        M Offline
        MS_36
        wrote on 19 Apr 2022, 14:05 last edited by
        #3

        Qt 6.2.4 does exactly the same thing.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MS_36
          wrote on 20 Apr 2022, 07:11 last edited by
          #4

          I made "Empty"-QML apps with "new project" in QtCreator, one for qmake and one for cmake.
          Both apps run on the phone but again only the qmake app can be archived.

          Comparing the generated XCode projects showed they are very different.
          I changed in the "CMake"-XCode project in "Build Settings" -> "Deployment" the following:
          Installation directory: /Applications
          Skip Install: No

          After that the archived app was no longer empty. Have not tried to push it to the store yet.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Croitor Alexandru
            wrote on 14 Jul 2022, 08:32 last edited by
            #5

            It's a bug in CMake.
            The issue will be worked around by the following change https://codereview.qt-project.org/c/qt/qtbase/+/421728/1

            1 Reply Last reply
            1

            • Login

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