Problem to build libraries for iOS
Unsolved
Mobile and Embedded
-
Hello,
I'm trying to compile the zip and quazip libraries for iOs...
When I load projects into qtcreator, I get the following error messages:
Running "/Applications/CMake.app/Contents/bin/cmake -E server --pipe=/tmp/cmake-.wcWOns/socket --experimental" in /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-dvONQUlJ. Running "/Applications/CMake.app/Contents/bin/cmake -E server --pipe=/tmp/cmake-.WTUIft/socket --experimental" in /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-TaKiKwsK. Running "/Applications/CMake.app/Contents/bin/cmake -E server --pipe=/tmp/cmake-.LbuWwt/socket --experimental" in /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-PKNdRCKZ. Running "/Applications/CMake.app/Contents/bin/cmake -E server --pipe=/tmp/cmake-.fBlMQp/socket --experimental" in /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-kNnweyHS. Starting to parse CMake project, using: "-DCMAKE_BUILD_TYPE:STRING=Release", "-DCMAKE_CXX_COMPILER:STRING=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++", "-DCMAKE_CXX_COMPILER_TARGET :STRING=aarch64-apple-darwin19.6.0", "-DCMAKE_C_COMPILER:STRING=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang", "-DCMAKE_C_COMPILER_TARGET:STRING=aarch64-apple-darwin19.6.0", "-DCMAKE_PREFIX_PATH:STRING=/Users/franckrichard/Qt/5.15.0/ios", "-DCMAKE_SYSROOT:STRING=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk", "-DQT_QMAKE_EXECUTABLE:STRING=/Users/franckrichard/Qt/5.15.0/ios/bin/qmake". Running "/Applications/CMake.app/Contents/bin/cmake -E server --pipe=/tmp/cmake-.kTJIbn/socket --experimental" in /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-TaKiKwsK. The C compiler identification is AppleClang 11.0.3.11030032 Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- broken CMake Error at /Applications/CMake.app/Contents/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message): The C compiler "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" is not able to compile a simple test program. It fails with the following output: Change Dir: /private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-TaKiKwsK/CMakeFiles/CMakeTmp Run Build Command:"/Users/franckrichard/Qt/Tools/Ninja/ninja" "cmTC_31f43" [1/2] Building C object CMakeFiles/cmTC_31f43.dir/testCCompiler.c.o FAILED: CMakeFiles/cmTC_31f43.dir/testCCompiler.c.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --target=aarch64-apple-darwin19.6.0 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_31f43.dir/testCCompiler.c.o -c testCCompiler.c error: unknown target triple 'unknown-apple-macosx10.15.0', please use -triple or -arch ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:4 (project) Configuring incomplete, errors occurred! See also "/private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-TaKiKwsK/CMakeFiles/CMakeOutput.log". See also "/private/var/folders/8n/m2grl6cx4wqcf3kqnfn_mnfm0000gn/T/QtCreator-ALPpWW/qtc-cmake-TaKiKwsK/CMakeFiles/CMakeError.log". CMake Project parsing failed.
On the other hand, everything works fine when I compile for iOS simulator ... I'm using Qt 5.15.0
How can I solve this?
Thanks!