"Project ERROR: Xcode not set up properly."
-
Small update for iOS and Xcode 8. For iOS you need also change the file:
isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))): \
to
isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \
But after this changes you will see this message:
Project ERROR: Current iphoneos SDK version (10.0) is too old. Please upgrade Xcode. [Inexact] Project ERROR: Current iphoneos SDK version (10.0) is too old. Please upgrade Xcode. [Inexact] Project ERROR: Current iphoneos SDK version (10.0) is too old. Please upgrade Xcode. [Inexact] Project ERROR: Current iphoneos SDK version (10.0) is too old. Please upgrade Xcode.
I'm found in "<Qt_install_folder>/5.7/ios/mkspecs/macx-ios-clang/features/sdk.prf" line:
lessThan($$QMAKE_MAC_SDK_VERSION, "8.0"): \
If I change this line to:
lessThan($$QMAKE_MAC_SDK_VERSION, "10.0"): \
All works fine but QtCreator can't find any iOS simulator so I can't build application to the simulator.
If someone know how to fix this issue let me know. Still research information for solve the problem with simulators for QtCreator.
-
@shav What do you have in your device list from Xcode ?
One thing you can try is to open the simulator by doing an Alt + Click on the Xcode icon and open the simulator from the Developer Tool menu. It should start an iOS 10 simulator.
Hope it helps.
-
@SGaist I'm wrote a video from my project. Please watch it and you understand what I mean can't build my project to iOS Simulator OS Simulator".
Also I receive this error:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LC_MESSAGES = "en_US.utf8", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). xcodebuild build -scheme IOSSample -sdk iphonesimulator -configuration Debug -destination "id=12.9 inch" -destination-timeout 1 Build settings from command line: SDKROOT = iphonesimulator10.0 2016-09-15 00:41:39.693 xcodebuild[2154:4052566] warning: The file reference for "/Volumes/HPDD/MyWork/PROJECTS/QtProjects/GIT/Nestlean/qt/NestleanSDK/NestleanProject/IOSSample/qml.qrc" is a member of multiple groups ("Supporting Files" and "Resources"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path. xcodebuild: error: Unable to find a destination matching the provided destination specifier: { id:12.9 inch } Unsupported device specifier option. The device “My Mac” does not support the following options: id Please supply only supported device specifier options. Available destinations for the "IOSSample" scheme: { platform:iOS Simulator, id:1DEEDBE7-8C4A-46E7-BD7C-579F1D8A6A74, OS:8.4, name:iPad 2 } { platform:iOS Simulator, id:38E2C4BB-7F21-437F-9897-0492E508A0D9, OS:9.3, name:iPad 2 } { platform:iOS Simulator, id:84B31BED-1528-41C8-A355-86D3C359D98E, OS:8.4, name:iPad Air } { platform:iOS Simulator, id:3749EC4B-347B-458A-9ED6-C877FFB56107, OS:9.3, name:iPad Air } { platform:iOS Simulator, id:D4AD4398-D3C1-4D9C-9D0D-8D4CC66CCE7E, OS:10.0, name:iPad Air } { platform:iOS Simulator, id:1C37FEC7-6D0E-4001-B736-3067BEDC3CC7, OS:9.3, name:iPad Air 2 } { platform:iOS Simulator, id:FC4158CB-CFAC-459A-863A-EEDDD6519DED, OS:10.0, name:iPad Air 2 } { platform:iOS Simulator, id:4E4C817B-F7D2-4503-946D-6B57ECCCE949, OS:9.3, name:iPad Pro } { platform:iOS Simulator, id:2A40BA08-DA0D-4375-948C-EFC5CA8CCF89, OS:10.0, name:iPad Pro (9.7 inch) } { platform:iOS Simulator, id:A97891D7-1C4A-42F1-A17D-CD2E29960020, OS:10.0, name:iPad Pro (12.9 inch) } { platform:iOS Simulator, id:7318AE3F-D721-44A9-B2E5-53CB175F6E0F, OS:8.4, name:iPad Retina } { platform:iOS Simulator, id:4F74C1A5-1C72-4882-AE2B-CEFA8C8E2E3D, OS:9.3, name:iPad Retina } { platform:iOS Simulator, id:45CC88C7-8C00-47B9-9ED0-DB335FBCD5C8, OS:10.0, name:iPad Retina } { platform:iOS Simulator, id:8FE36C70-1221-40E6-A9DB-F13E06828BF5, OS:8.4, name:iPhone 4s } { platform:iOS Simulator, id:74DF68B8-4B17-40D8-80FD-6C068232B618, OS:9.3, name:iPhone 4s } { platform:iOS Simulator, id:64B7D1FF-3F85-4B3B-AA77-11EC26BA0EF3, OS:8.4, name:iPhone 5 } { platform:iOS Simulator, id:0C2098B3-6181-406D-BF94-3893207F0AD3, OS:9.3, name:iPhone 5 } { platform:iOS Simulator, id:DFC53616-735F-4E9D-AA00-A7C9EB4CD915, OS:10.0, name:iPhone 5 } { platform:iOS Simulator, id:E3CF6794-E68D-4A80-A97A-57D5C84463EB, OS:8.4, name:iPhone 5s } { platform:iOS Simulator, id:C0D485A8-4B2C-46E6-BEC2-7BAA6462EAFB, OS:9.3, name:iPhone 5s } { platform:iOS Simulator, id:8EAF5E2B-B377-4D22-86BB-B82155E2232E, OS:10.0, name:iPhone 5s } { platform:iOS Simulator, id:4629ECAA-C567-4A3B-A5B5-DEE6B868BBCA, OS:8.4, name:iPhone 6 } { platform:iOS Simulator, id:765EE510-D5F1-4A1D-A809-30A884CD50D2, OS:9.3, name:iPhone 6 } { platform:iOS Simulator, id:5894F92E-2B1C-4254-AA1A-7E21F3633FA6, OS:10.0, name:iPhone 6 } { platform:iOS Simulator, id:EB74A8C1-575A-4552-95E1-0F507994EB84, OS:8.4, name:iPhone 6 Plus } { platform:iOS Simulator, id:EF345896-969D-4CC9-BCD5-5185397440BB, OS:9.3, name:iPhone 6 Plus } { platform:iOS Simulator, id:FF77F399-C630-47E4-9973-CEA20183DCE6, OS:10.0, name:iPhone 6 Plus } { platform:iOS Simulator, id:3633BA21-BAB4-42B1-B9B2-517CD5DAFC21, OS:9.3, name:iPhone 6s } { platform:iOS Simulator, id:FF0F8BD9-0606-4807-9F9B-1C73F77D3007, OS:10.0, name:iPhone 6s } { platform:iOS Simulator, id:D8B672C4-A401-4349-9BE2-19D49C2A4305, OS:9.3, name:iPhone 6s Plus } { platform:iOS Simulator, id:789CCF8F-4DF8-400A-9BC0-7EB189C71C7D, OS:10.0, name:iPhone 6s Plus } { platform:iOS Simulator, id:87898CEA-38BC-460A-A70F-7C7C208FDADD, OS:10.0, name:iPhone 7 } { platform:iOS Simulator, id:51AFE06F-8FEB-4EF9-850C-F99834DC4B09, OS:10.0, name:iPhone 7 Plus } { platform:iOS Simulator, id:1B99C4E6-E053-4D97-B79A-D09B2F68E438, OS:10.0, name:iPhone SE } Ineligible destinations for the "IOSSample" scheme: { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device } make[1]: *** [xcodebuild-debug-iphonesimulator] Error 70 make: *** [sub-IOSSample-make_first] Error 2 00:41:42: The process "/usr/bin/make" exited with code 2. Error while building/deploying project NestleanProject (kit: iphonesimulator-clang Qt 5.7.0 for iOS) The kit iphonesimulator-clang Qt 5.7.0 for iOS has configuration issues which might be the root cause for this problem. When executing step "Make"
I'm not sure what is wrong with it. Maybe you can help me to solve this problem.
P.S. Sorry for the long video and I don't know how to post video in this forum, so I share the link to video.
-
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 !