Problem with install Qt on macOS 10.15.7
Solved
General and Desktop
-
wrote on 16 Oct 2020, 19:26 last edited by
-
wrote on 17 Oct 2020, 01:04 last edited by
Hi, I had a bit of similar experience on my 10.15.7, I managed to install Qt 5.15.1 on it by upgrading my Xcode 12.0 to Xcode.12.01.
But then I could not compile any of my Qt apps to run on my iPhone :-(
Turns out I was hit by this bugIf that bug also strikes you, you'll need to patch the file
/Users/michal/Qt/5.15.1/ios/mkspecs/features/toolchain.prf
by adding these 3 lines:# Clang doesn't pick up the architecture from the sysroot, and will # default to the host architecture, so we need to manually set it. cxx_flags += -arch $$QMAKE_APPLE_DEVICE_ARCHS
at line 185.
The patch is described here:
https://codereview.qt-project.org/c/qt/qtbase/+/314636/3/mkspecs/features/toolchain.prfIt worked for me, hope it'll work for you too.
1/2