"Project ERROR: Xcode not set up properly."
-
today run into this problem
did it all
changed
```isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \ error("Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.")
}
did
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
confirmed license agreement
xcodebuild -license
still getting errors while building for iOS
XCode 8, OS 10.11.6Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.
15:47:05: The process "/daten/_qt_sdks/sdk_570/5.7/ios/bin/qmake" exited with code 3.
Error while building/deploying project ...:(
-
@ekkescorner Hi, I'm uploaded video where you can see how I fix this problem. On video you can see OS X 10.12 but this also works on OS X 10.11. Please watch video and if you have any questions let me know.
-
@shav thx - but I already did all these steps
verified twice ;-)now downloaded Xcode 7.3.1 besides Xcode 8
select switch Xcode to 7.3.1and I can work on
-
@ekkescorner
Move to the Qt install library and got to the Qt_install_folder/5.7/ios/mkspecs/features/mac/default_pre.prf (!!!iOS not clang) and find the line
isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))):
and replace:
isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))):
save the changes and reload the QtCreator and enjoy :) -
@murdock thanks. this was the trick: I did it in clang - not ios
Now the Xcodeproject was built with Xcode 8 :)
But now another error:
Signing for "xxx" requires a development team. Select a development team in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0' make: *** [xcodebuild-debug-iphoneos] Error 65 12:55:52: The process "/usr/bin/make" exited with code 2. Error while building/deploying project xxx (kit: iphoneos-clang Qt 5.7.0 (ios))
I can open Xcode 8, select the Team and run the App on Device
Do I have to set somethin in Xcode 8 ?thx helping
-
@ekkescorner Do you have Apple Developer Program for you Apple ID? It's looks like you don't have it or you mac is not configuring for your developer program.
You can check it in Xcode.
- Open Xcode
- Open Xcode preference (Top Menu -> Xcode -> Preference) or CMD + , (comma).
- In Preference window find "Account" tab
- Check if you have any Apple ID accounts on the left list. If you don't have it in list you can add it.
4.1. On the bottom you will find the "+" button. Click to it and select Apple ID.
4.2. Enter your apple Id and password and click save.
4.3. Now you will see your new apple id in the list. - Select you new apple id from list.
- On the center of the window you will see list of developers program for your apple id.
- Select one from them and click "view" button.
- Check the certificates they must be installed.
8.1. If you don't installed certificates click to the button near the name of certificates.
8.2. After you install certificates you need to create developer provision profiles.
8.3. Downloads all need provision profiles. - If you have all certificates please check provision profiles for your project.
9.1. Find Info.plist of your project. It's must be in build folder for your project.
9.2. Open info.plist and copy bundle id for your project
9.3. Open Apple Developer Manager website and select section "Certificates, Provisions"
9.4. Select applications list and search application with you bundle id.
9.5. If you don't have this application with bundle id please create it.
9.6. Open section Provisions and create provision profile for you new application.
9.7. Download and install your new provision profile. - Try rebuild your project. Now you must build it correct.
Also you can use Xcode for build your project. In Xcode you must select team:
- Open your project in Xcode
- Select project file in the left list.
- Open general section.
- Select your team form the list for Debug build and Release build.
- Build you project.
Hope the will help for you.
-
I have no problem to sign and build my project from Xcode 8
problem is building the project from QtCreator:this works well for Xcode 7.3 but from Xcode 8.0 something changed with signature and so the build process from QtCreator creates thge Xcode project and then fails with
Signing for "xxx" requires a development team. Select a development team in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0' make: *** [xcodebuild-debug-iphoneos] Error 65 12:55:52: The process "/usr/bin/make" exited with code 2.
Opening the xcodeproject there's no development team selected. I can select and build / run on iPhone from inside Xcode 8.
The run-on-device is broken now. switching back to Xcode 7.3 it works well
Doing a google search for
requires a development team. Select a development team in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0'
you'll see that many other projects doiung builds with Xcode are broken with Xcode 8
looking forward to a solution.
-
@ekkescorner
I'm having exactly the same code signing problem. With Xcode 7.3 I can compile my project using QtCreator but with Xcode 8 it doesn't work. I can only compile using Xcode which makes the whole process a lot more complicated since I need both QtCreator (to write my code) and Xcode running at the same time.This might seem like a small rpoblem but it is very time consuming. Please, we need a fix for this quickly !
-
@Kostas Hi, the forum is not the right place to ask for fixes. You should rather take a look at the bug report system to see if it's something known. If not, please consider opening a new report.
-
Thanks !
-
You should likely follow the same recommandation as for Xcode 8.
-
@_ovz haven't updated from 8.0 to 8.1 yet. after all the trouble to make Xcode 8 run I'm also waiting to get feedback from others if this update is harmless ;-)
-
@Kostas yep 8.1 works well for me, too. had to upgrade to 8.1 because updated iPhone to 10.1