How to set the active developer directory with 'Xcode-select' on Mac
-
@hskoglund
It wanted me to download and install the command line developer tool, and when I hit "install" it failed (Can't download software because of a network problem). I think it's because my App Store can't connect to the Internet!Then I hit on "Get Xcode", and App Store showed this message: Cannot connect to App Store.
I don't know why my App Store can't connect! :( Maybe it's the source of the issue. :(
After these, the installer gives me the path to install Qt. So I think it's possible. But I worry about possible forthcoming problems due to the current problem, afterwards! :(
What's your suggestion please?
-
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.
-
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:
-
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
-
After installing Qt and opening a Qt project by it and connecting my iPhone to Mac, I see no problem in Xcode:
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 BusinessFor 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 teamIf 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)
-
@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
-
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 = NOPrepare 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"
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 missingI don't know what exactly you mean by that. Is it done on Xcode?
I think it's worth at least a try. -
@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
-
@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")?
-
@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.