Empty Xcode archive CMake build
-
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.
-
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.
-
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: NoAfter that the archived app was no longer empty. Have not tried to push it to the store yet.
-
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