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. Qt 5.15.0 for iOS build fail - Xcodebuild failed
Forum Updated to NodeBB v4.3 + New Features

Qt 5.15.0 for iOS build fail - Xcodebuild failed

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 3 Posters 1.5k 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.
  • P Offline
    P Offline
    paulsayad
    wrote on 23 Jun 2020, 18:58 last edited by paulsayad
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Jun 2020, 19:04 last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply 23 Jun 2020, 19:10
      0
      • S SGaist
        23 Jun 2020, 19:04

        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 ?

        P Offline
        P Offline
        paulsayad
        wrote on 23 Jun 2020, 19:10 last edited by
        #3

        @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.
        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 23 Jun 2020, 19:11 last edited by
          #4

          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 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          P 1 Reply Last reply 23 Jun 2020, 19:20
          0
          • S SGaist
            23 Jun 2020, 19:11

            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 ?

            P Offline
            P Offline
            paulsayad
            wrote on 23 Jun 2020, 19:20 last edited by
            #5

            @SGaist

            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"

            K 1 Reply Last reply 24 Jun 2020, 17:47
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 23 Jun 2020, 19:23 last edited by
              #6

              What type of project is that ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              P 1 Reply Last reply 23 Jun 2020, 19:31
              0
              • S SGaist
                23 Jun 2020, 19:23

                What type of project is that ?

                P Offline
                P Offline
                paulsayad
                wrote on 23 Jun 2020, 19:31 last edited by
                #7

                @SGaist

                It is a Qt Quick Application - Stack

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 23 Jun 2020, 19:33 last edited by
                  #8

                  So a default QtQuick application works correctly but yours is failing ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  P 1 Reply Last reply 23 Jun 2020, 19:41
                  0
                  • S SGaist
                    23 Jun 2020, 19:33

                    So a default QtQuick application works correctly but yours is failing ?

                    P Offline
                    P Offline
                    paulsayad
                    wrote on 23 Jun 2020, 19:41 last edited by
                    #9

                    @SGaist
                    I tried a QtQuick application empty and just like the Stack, it runs on Desktop but when I try to run it for iOS I get Xcodebuild failed.

                    1 Reply Last reply
                    0
                    • P paulsayad
                      23 Jun 2020, 19:20

                      @SGaist

                      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"

                      K Offline
                      K Offline
                      KH-219Design
                      wrote on 24 Jun 2020, 17:47 last edited by
                      #10

                      @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.

                      www.219design.com
                      Software | Electrical | Mechanical | Product Design

                      1 Reply Last reply
                      1

                      4/10

                      23 Jun 2020, 19:11

                      • Login

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