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. How to set the active developer directory with 'Xcode-select' on Mac
Forum Updated to NodeBB v4.3 + New Features

How to set the active developer directory with 'Xcode-select' on Mac

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 4 Posters 6.2k Views 1 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.
  • hskoglundH Offline
    hskoglundH Offline
    hskoglund
    wrote on last edited by
    #6

    FIrst, quit Qt and Qt's installer and make sure you have a working Xcode. (When you install Xcode it asks "Do you want to install additional required components?". Always answer yes.)
    Then connect your iPhone and compile a test program in Xcode, for example Master/Detail. See if you can run it that program on your iPhone from inside Xcode.

    Once you have a working XCode then do the same in Qt. Compile a simple vanilla Qt widgets application with the iPhone as a target, hit Run and see if it starts on your iPhone.

    If that last step works then I wouldn't worry too much, even if you get hit by those error boxes.

    tomyT 1 Reply Last reply
    1
    • hskoglundH hskoglund

      FIrst, quit Qt and Qt's installer and make sure you have a working Xcode. (When you install Xcode it asks "Do you want to install additional required components?". Always answer yes.)
      Then connect your iPhone and compile a test program in Xcode, for example Master/Detail. See if you can run it that program on your iPhone from inside Xcode.

      Once you have a working XCode then do the same in Qt. Compile a simple vanilla Qt widgets application with the iPhone as a target, hit Run and see if it starts on your iPhone.

      If that last step works then I wouldn't worry too much, even if you get hit by those error boxes.

      tomyT Offline
      tomyT Offline
      tomy
      wrote on last edited by
      #7

      @hskoglund

      FIrst, quit Qt and Qt's installer and make sure you have a working Xcode. (When you install Xcode it asks "Do you want to install additional required components?". Always answer yes.)

      No, it doesn't show such a message. When I open it, only the following window is opened:

      0_1554926667779_Screen Shot 2019-04-10 at 1.02.47 PM.png

      1 Reply Last reply
      0
      • tomyT Offline
        tomyT Offline
        tomy
        wrote on last edited by
        #8

        I manually downloaded the command line developer tools from the Apple website (as a standalone program) and then installed and set it up on Xcode successfully.
        After these went for the Qt online installer file to start installing Qt. This time, it went through the processes without any error message and for the time being it's being downloaded/installed online. :)

        The astonishing matter is that, my iPhone is connected to both iTunes and Xcode proper. But App Store still is not working! Hhhh

        1 Reply Last reply
        2
        • tomyT Offline
          tomyT Offline
          tomy
          wrote on last edited by tomy
          #9

          After installing Qt and opening a Qt project by it and connecting my iPhone to Mac, I see no problem in Xcode:

          0_1554973628786_1.png

          but still get the error below when Building or Running the project on Qt Creator using the iOS kit:

          error: Xcodebuild failed.

          Why, please? I had the same error on High Sierra but I wished I wouldn't face it again on Mojave either.

          I suppose it's related to my account on developer.appale.com
          I went to Enroll there but met the last stage wanting me to pay, although I'd chosen my Entity Type: Individual / Sole Proprietor / Single Person Business

          For the time being that I don't want to publish my apps on App Store, I don't like to pay to Apple. Have I got to, even for the time being!?

          For now I like to solve that error: Xcodebuild failed.

          Isn't it related to this warning mark here?
          No Provisioning profile found for the selected team

          0_1554974271740_2.png

          If so, how to solve this issue, please?

          PS: I suppose both that warning mark and Xcode error belong to that reality that I haven't payed to Apple yet. Am I not right? (I hope so)

          jsulmJ J.HilkJ 2 Replies Last reply
          0
          • tomyT tomy

            After installing Qt and opening a Qt project by it and connecting my iPhone to Mac, I see no problem in Xcode:

            0_1554973628786_1.png

            but still get the error below when Building or Running the project on Qt Creator using the iOS kit:

            error: Xcodebuild failed.

            Why, please? I had the same error on High Sierra but I wished I wouldn't face it again on Mojave either.

            I suppose it's related to my account on developer.appale.com
            I went to Enroll there but met the last stage wanting me to pay, although I'd chosen my Entity Type: Individual / Sole Proprietor / Single Person Business

            For the time being that I don't want to publish my apps on App Store, I don't like to pay to Apple. Have I got to, even for the time being!?

            For now I like to solve that error: Xcodebuild failed.

            Isn't it related to this warning mark here?
            No Provisioning profile found for the selected team

            0_1554974271740_2.png

            If so, how to solve this issue, please?

            PS: I suppose both that warning mark and Xcode error belong to that reality that I haven't payed to Apple yet. Am I not right? (I hope so)

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #10

            @tomy said in How to set the active developer directory with 'Xcode-select' on Mac:

            error: Xcodebuild failed.

            There should be something in the build log before this line

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • tomyT tomy

              After installing Qt and opening a Qt project by it and connecting my iPhone to Mac, I see no problem in Xcode:

              0_1554973628786_1.png

              but still get the error below when Building or Running the project on Qt Creator using the iOS kit:

              error: Xcodebuild failed.

              Why, please? I had the same error on High Sierra but I wished I wouldn't face it again on Mojave either.

              I suppose it's related to my account on developer.appale.com
              I went to Enroll there but met the last stage wanting me to pay, although I'd chosen my Entity Type: Individual / Sole Proprietor / Single Person Business

              For the time being that I don't want to publish my apps on App Store, I don't like to pay to Apple. Have I got to, even for the time being!?

              For now I like to solve that error: Xcodebuild failed.

              Isn't it related to this warning mark here?
              No Provisioning profile found for the selected team

              0_1554974271740_2.png

              If so, how to solve this issue, please?

              PS: I suppose both that warning mark and Xcode error belong to that reality that I haven't payed to Apple yet. Am I not right? (I hope so)

              J.HilkJ Online
              J.HilkJ Online
              J.Hilk
              Moderators
              wrote on last edited by
              #11

              @tomy I think this is the pay wall, but I'm not 100% sure,

              did you register your phone to your developer profile? That may be the other step missing


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              tomyT 1 Reply Last reply
              0
              • J.HilkJ J.Hilk

                @tomy I think this is the pay wall, but I'm not 100% sure,

                did you register your phone to your developer profile? That may be the other step missing

                tomyT Offline
                tomyT Offline
                tomy
                wrote on last edited by tomy
                #12

                @jsulm

                There should be something in the build log before this line

                Where please, in Qt Creator or Xcode?
                If I know that path rightly, I will check and post it here too.

                Do you mean the application outputted window? If so, here it is:

                04:14:50: Running steps for project Ping-Pong...
                04:14:50: Starting: "/Users/abbasi/Qt/5.12.2/ios/bin/qmake" /Users/abbasi/Desktop/Ping-Pong/Ping-Pong.pro -spec macx-ios-clang CONFIG+=release CONFIG+=iphoneos CONFIG+=device CONFIG+=qtquickcompiler -after QMAKE_MAC_XCODE_SETTINGS+=qteam qteam.name=DEVELOPMENT_TEAM qteam.value=KZ873ZB3P6
                04:14:52: The process "/Users/abbasi/Qt/5.12.2/ios/bin/qmake" exited normally.

                04:14:52: Starting: "/usr/bin/make" -f /Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release/Makefile qmake_all
                make: Nothing to be done for `qmake_all'.
                04:14:53: The process "/usr/bin/make" exited normally.
                04:14:53: Starting: "/usr/bin/make" -j2
                xcodebuild build -project Ping-Pong.xcodeproj -scheme Ping-Pong -configuration Release -destination generic/platform=iOS -destination-timeout 1 ENABLE_ONLY_ACTIVE_RESOURCES=NO
                Build settings from command line:
                ENABLE_ONLY_ACTIVE_RESOURCES = NO

                Prepare build
                note: Using legacy build system

                === BUILD AGGREGATE TARGET Qt Preprocess OF PROJECT Ping-Pong WITH CONFIGURATION Release ===

                Check dependencies

                PhaseScriptExecution Qt\ Qmake .xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh
                cd /Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release
                /bin/sh -c "/Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release/.xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh"
                make[1]: warning: jobserver unavailable: using -j1. Add +' to parent make rule. make[1]: Ping-Pong.xcodeproj/project.pbxproj' is up to date.

                PhaseScriptExecution Qt\ Preprocessors .xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh
                cd /Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release
                /bin/sh -c "/Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release/.xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh"
                make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
                /Users/abbasi/Qt/5.12.2/ios/bin/rcc -name qml_qmlcache qml_qmlcache.qrc -o qrc_qml_qmlcache.cpp

                === BUILD TARGET Ping-Pong OF PROJECT Ping-Pong WITH CONFIGURATION Release ===
                ** BUILD FAILED **

                The following build commands failed: Check dependencies (1 failure)

                Check dependencies
                Code Signing Error: No profiles for 'com.yourcompany.Ping-Pong' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.yourcompany.Ping-Pong'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
                Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'

                make: *** [xcodebuild-release-device] Error 65 04:14:56: The process "/usr/bin/make" exited with code 2. Error while building/deploying project Ping-Pong (kit: Qt 5.12.2 for iOS) When executing step "Make"

                @J.Hilk

                I think this is the pay wall, but I'm not 100% sure,
                did you register your phone to your developer profile? That may be the other step missing

                I don't know what exactly you mean by that. Is it done on Xcode?
                I think it's worth at least a try.

                J.HilkJ jsulmJ 2 Replies Last reply
                0
                • tomyT tomy

                  @jsulm

                  There should be something in the build log before this line

                  Where please, in Qt Creator or Xcode?
                  If I know that path rightly, I will check and post it here too.

                  Do you mean the application outputted window? If so, here it is:

                  04:14:50: Running steps for project Ping-Pong...
                  04:14:50: Starting: "/Users/abbasi/Qt/5.12.2/ios/bin/qmake" /Users/abbasi/Desktop/Ping-Pong/Ping-Pong.pro -spec macx-ios-clang CONFIG+=release CONFIG+=iphoneos CONFIG+=device CONFIG+=qtquickcompiler -after QMAKE_MAC_XCODE_SETTINGS+=qteam qteam.name=DEVELOPMENT_TEAM qteam.value=KZ873ZB3P6
                  04:14:52: The process "/Users/abbasi/Qt/5.12.2/ios/bin/qmake" exited normally.

                  04:14:52: Starting: "/usr/bin/make" -f /Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release/Makefile qmake_all
                  make: Nothing to be done for `qmake_all'.
                  04:14:53: The process "/usr/bin/make" exited normally.
                  04:14:53: Starting: "/usr/bin/make" -j2
                  xcodebuild build -project Ping-Pong.xcodeproj -scheme Ping-Pong -configuration Release -destination generic/platform=iOS -destination-timeout 1 ENABLE_ONLY_ACTIVE_RESOURCES=NO
                  Build settings from command line:
                  ENABLE_ONLY_ACTIVE_RESOURCES = NO

                  Prepare build
                  note: Using legacy build system

                  === BUILD AGGREGATE TARGET Qt Preprocess OF PROJECT Ping-Pong WITH CONFIGURATION Release ===

                  Check dependencies

                  PhaseScriptExecution Qt\ Qmake .xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh
                  cd /Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release
                  /bin/sh -c "/Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release/.xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh"
                  make[1]: warning: jobserver unavailable: using -j1. Add +' to parent make rule. make[1]: Ping-Pong.xcodeproj/project.pbxproj' is up to date.

                  PhaseScriptExecution Qt\ Preprocessors .xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh
                  cd /Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release
                  /bin/sh -c "/Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release/.xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh"
                  make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
                  /Users/abbasi/Qt/5.12.2/ios/bin/rcc -name qml_qmlcache qml_qmlcache.qrc -o qrc_qml_qmlcache.cpp

                  === BUILD TARGET Ping-Pong OF PROJECT Ping-Pong WITH CONFIGURATION Release ===
                  ** BUILD FAILED **

                  The following build commands failed: Check dependencies (1 failure)

                  Check dependencies
                  Code Signing Error: No profiles for 'com.yourcompany.Ping-Pong' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.yourcompany.Ping-Pong'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
                  Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'

                  make: *** [xcodebuild-release-device] Error 65 04:14:56: The process "/usr/bin/make" exited with code 2. Error while building/deploying project Ping-Pong (kit: Qt 5.12.2 for iOS) When executing step "Make"

                  @J.Hilk

                  I think this is the pay wall, but I'm not 100% sure,
                  did you register your phone to your developer profile? That may be the other step missing

                  I don't know what exactly you mean by that. Is it done on Xcode?
                  I think it's worth at least a try.

                  J.HilkJ Online
                  J.HilkJ Online
                  J.Hilk
                  Moderators
                  wrote on last edited by J.Hilk
                  #13

                  @tomy said in How to set the active developer directory with 'Xcode-select' on Mac:

                  I don't know what exactly you mean by that. Is it done on Xcode?
                  I think it's worth at least a try.

                  you can do it via Xcode but, I'm not sure where exactly
                  alternatively you can use this link
                  https://developer.apple.com/account/ios/device/

                  it should open your developer portal at the correct page, where you can add devices to your developer account. At least it did for me.

                  Here are the google coordinates, in case you don't trust the link (it's going to ask for a login)

                  • google: apple register device developer
                  • first search result

                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  1 Reply Last reply
                  0
                  • tomyT tomy

                    @jsulm

                    There should be something in the build log before this line

                    Where please, in Qt Creator or Xcode?
                    If I know that path rightly, I will check and post it here too.

                    Do you mean the application outputted window? If so, here it is:

                    04:14:50: Running steps for project Ping-Pong...
                    04:14:50: Starting: "/Users/abbasi/Qt/5.12.2/ios/bin/qmake" /Users/abbasi/Desktop/Ping-Pong/Ping-Pong.pro -spec macx-ios-clang CONFIG+=release CONFIG+=iphoneos CONFIG+=device CONFIG+=qtquickcompiler -after QMAKE_MAC_XCODE_SETTINGS+=qteam qteam.name=DEVELOPMENT_TEAM qteam.value=KZ873ZB3P6
                    04:14:52: The process "/Users/abbasi/Qt/5.12.2/ios/bin/qmake" exited normally.

                    04:14:52: Starting: "/usr/bin/make" -f /Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release/Makefile qmake_all
                    make: Nothing to be done for `qmake_all'.
                    04:14:53: The process "/usr/bin/make" exited normally.
                    04:14:53: Starting: "/usr/bin/make" -j2
                    xcodebuild build -project Ping-Pong.xcodeproj -scheme Ping-Pong -configuration Release -destination generic/platform=iOS -destination-timeout 1 ENABLE_ONLY_ACTIVE_RESOURCES=NO
                    Build settings from command line:
                    ENABLE_ONLY_ACTIVE_RESOURCES = NO

                    Prepare build
                    note: Using legacy build system

                    === BUILD AGGREGATE TARGET Qt Preprocess OF PROJECT Ping-Pong WITH CONFIGURATION Release ===

                    Check dependencies

                    PhaseScriptExecution Qt\ Qmake .xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh
                    cd /Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release
                    /bin/sh -c "/Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release/.xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-5E618435888B9D49F8540165.sh"
                    make[1]: warning: jobserver unavailable: using -j1. Add +' to parent make rule. make[1]: Ping-Pong.xcodeproj/project.pbxproj' is up to date.

                    PhaseScriptExecution Qt\ Preprocessors .xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh
                    cd /Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release
                    /bin/sh -c "/Users/abbasi/Desktop/build-Ping-Pong-Qt_5_12_2_for_iOS-Release/.xcode/Ping-Pong.build/Release-iphoneos/Qt\ Preprocess.build/Script-7EF0942E79C014DCEC8976BC.sh"
                    make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
                    /Users/abbasi/Qt/5.12.2/ios/bin/rcc -name qml_qmlcache qml_qmlcache.qrc -o qrc_qml_qmlcache.cpp

                    === BUILD TARGET Ping-Pong OF PROJECT Ping-Pong WITH CONFIGURATION Release ===
                    ** BUILD FAILED **

                    The following build commands failed: Check dependencies (1 failure)

                    Check dependencies
                    Code Signing Error: No profiles for 'com.yourcompany.Ping-Pong' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.yourcompany.Ping-Pong'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
                    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'

                    make: *** [xcodebuild-release-device] Error 65 04:14:56: The process "/usr/bin/make" exited with code 2. Error while building/deploying project Ping-Pong (kit: Qt 5.12.2 for iOS) When executing step "Make"

                    @J.Hilk

                    I think this is the pay wall, but I'm not 100% sure,
                    did you register your phone to your developer profile? That may be the other step missing

                    I don't know what exactly you mean by that. Is it done on Xcode?
                    I think it's worth at least a try.

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #14

                    @tomy said in How to set the active developer directory with 'Xcode-select' on Mac:

                    Where please, in Qt Creator or Xcode?

                    Where do you build your app and where do you get this error message ("error: Xcodebuild failed")?

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • tomyT Offline
                      tomyT Offline
                      tomy
                      wrote on last edited by tomy
                      #15

                      @J-Hilk
                      Google hits also lead in the page you offered, and it's the outcome:

                      Access Unavailable
                      This resource is only for developers enrolled in a developer program or members of an organization’s team in a developer program.

                      And I beforehand talked about the developer program. The pay wall!

                      @jsulm, Yes, I got it from Qt Creator, because the project is indeed a Qt one not a Swift one.
                      In the prior post I wrote the message of the Output Window.

                      1 Reply Last reply
                      0

                      • Login

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