Qt 5.15.0 for iOS build fail - Xcodebuild failed
-
Hi and welcome to devnet,
What version of Qt ?
What version of Xcode ?
What version of iOS ?
What line did you change ?
Does it also happen with a default application ? -
Hi and welcome to devnet,
What version of Qt ?
What version of Xcode ?
What version of iOS ?
What line did you change ?
Does it also happen with a default application ?@SGaist said in Qt 5.15.0 for iOS build fail - Xcodebuild failed:
Hi and welcome to devnet,
What version of Qt ?
What version of Xcode ?
What version of iOS ?
What line did you change ?
Does it also happen with a default application ?- Qt Creator 4.12.3. Based on Qt 5.14.2 (Clang 10.0 (Apple), 64 bit)
- Xcode Version 11.5
- iOS version 13.5.1
- I didn't change any line, because the line they said to change was already there so I'm assuming it was fixed by Qt already.
- Default applications run fine.
-
That's the Qt Creator version not the one you use to build your application.
Where exactly does it crash ?
What is the stack trace ? -
That's the Qt Creator version not the one you use to build your application.
Where exactly does it crash ?
What is the stack trace ?Sorry for the late replies, as a new user with no reputation I can only post once every 600 seconds.
When I go running it says Qt 5.15.0 for iOS. So I guess the build version is 5.15.0
When I try to run it for iOS is when I get the error staying "Xcodebuild failed"
Would this be the stack trace?** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
make: *** [xcodebuild-debug-device] Error 65
15:16:57: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project AlarmPuzzle (kit: Qt 5.15.0 for iOS)
When executing step "Make" -
What type of project is that ?
-
So a default QtQuick application works correctly but yours is failing ?
-
Sorry for the late replies, as a new user with no reputation I can only post once every 600 seconds.
When I go running it says Qt 5.15.0 for iOS. So I guess the build version is 5.15.0
When I try to run it for iOS is when I get the error staying "Xcodebuild failed"
Would this be the stack trace?** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
make: *** [xcodebuild-debug-device] Error 65
15:16:57: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project AlarmPuzzle (kit: Qt 5.15.0 for iOS)
When executing step "Make"@paulsayad said in Qt 5.15.0 for iOS build fail - Xcodebuild failed:
The following build commands failed:
Check dependencies
(1 failure)"Check dependencies" is the step that is failing.
This is starting to give you fruitful information, but there must still be more verbose output somewhere.
I just recently fumbled my way through building a Qt iOS app for the first time, but I did not use Qt Creator. I used qmake and make at the command line, start to finish. (Of course once that produced an xcodeproj I necessarily opened that in Xcode. But I never once opened Qt Creator. This is not an indictment of Qt Creator, it is just explaining what tools I can and cannot speak knowledgeably about.)
Since you appear to lack dependencies, the following seem like possibilities:
You might have installed the Qt5 libraries for Mac, and yet you may still be missing the Qt5 libraries for iOS and iOS simulator. These are separate.
You might be missing additional Xcode command-line tools.
Here are some things (straight from my bash history) that I did while I was getting it all working:
xcrun --show-sdk-path --sdk iphoneos sudo xcode-select --print-path sudo xcode-select --switch /Applications/Xcode.app xcrun --show-sdk-path --sdk iphoneos
In order to install the Qt5 binaries for ios, I do the following:
bash -x install-qt.sh \ --directory $DL_FOLDER/Qt_desktop \ --version 5.15.0 \ --target ios \ qtbase \ qtconnectivity \ qtdeclarative \ qtgraphicaleffects \ qtimageformats \ qtquickcontrols \ qtquickcontrols2 \ qtsvg \ qttools
Where "install-qt.sh" refers to this: https://github.com/qbs/qbs/blob/495d7767af8/scripts/install-qt.sh
But perhaps someone else can explain the equivalent tasks as you would achieve them in Qt Creator.