Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt 5.7.0 with MacOSX 10.12.1 and IOS Simulator Error 70



  • 09:21:10: Running steps for project test0...
    09:21:10: Starting: "/Users/user/Qt/5.7/ios/bin/qmake" /Users/user/test0/test0.pro -spec macx-ios-clang CONFIG+=iphonesimulator CONFIG+=simulator CONFIG+=qml_debug
    09:21:11: The process "/Users/user/Qt/5.7/ios/bin/qmake" exited normally.
    09:21:11: Starting: "/usr/bin/make" qmake_all
    make: Nothing to be done for `qmake_all'.
    09:21:11: The process "/usr/bin/make" exited normally.
    09:21:11: Starting: "/usr/bin/make" 
    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 test0  -sdk iphonesimulator  -configuration Debug  -destination "id=12.9 inch" -destination-timeout 1
    Build settings from command line:
        SDKROOT = iphonesimulator10.0
    
    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 "test0" scheme:
    		{ platform:iOS Simulator, id:5EDED807-A907-4901-AB69-1CFE63C212C4, OS:10.0, name:iPad Air }
    		{ platform:iOS Simulator, id:8A51F62A-C2D2-4FE7-9BCA-428A425D99E9, OS:10.0, name:iPad Air 2 }
    		{ platform:iOS Simulator, id:1DAF8576-D9E2-4A0E-9D32-EE8F05CC584C, OS:10.0, name:iPad Pro (9.7 inch) }
    		{ platform:iOS Simulator, id:97376BFD-79D0-4FA6-85BE-22588D90CD5E, OS:10.0, name:iPad Pro (12.9 inch) }
    		{ platform:iOS Simulator, id:FA21EBD9-8839-4F93-86EA-104D5243B5F6, OS:10.0, name:iPad Retina }
    		{ platform:iOS Simulator, id:81493470-3388-4C63-89A6-8BCA62918939, OS:10.0, name:iPhone 5 }
    		{ platform:iOS Simulator, id:2853D1D4-7529-4D6B-A584-DFC264370BE2, OS:10.0, name:iPhone 5s }
    		{ platform:iOS Simulator, id:8A561CAE-916B-4439-86BA-94EACBB5C5C1, OS:10.0, name:iPhone 6 }
    		{ platform:iOS Simulator, id:C91762E8-3F35-4222-B236-D9631D3A2E5D, OS:10.0, name:iPhone 6 Plus }
    		{ platform:iOS Simulator, id:6F4DD28B-24B8-4B68-92A6-3347CDFA7398, OS:10.0, name:iPhone 6s }
    		{ platform:iOS Simulator, id:DAEFD9B5-E744-4038-9E5C-84DD1E37C31E, OS:10.0, name:iPhone 6s Plus }
    		{ platform:iOS Simulator, id:A8168B2A-1B2B-4B9A-A590-B8133BCFEBB5, OS:10.0, name:iPhone 7 }
    		{ platform:iOS Simulator, id:9056F4E6-A42B-49FE-8738-E7DD48553E3F, OS:10.0, name:iPhone 7 Plus }
    		{ platform:iOS Simulator, id:FA2AE9AC-C7CA-4E5D-9626-9F74AE37C9AC, OS:10.0, name:iPhone SE }
    
    	Ineligible destinations for the "test0" scheme:
    		{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device }
    make: *** [xcodebuild-debug-iphonesimulator] Error 70
    09:21:17: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project test0 (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"
    09:21:17: Elapsed time: 00:07.
    


  • Have the same problem(
    are you solve this?
    thanks



  • look at this message:
    platform:iOS Simulator, id:6F4DD28B-24B8-4B68-92A6-3347CDFA7398, OS:10.0, name:iPhone 6s }

    we see id of iPhone 6s is "6F4DD28B........" so we copy this id, and paste bellow

    on file "Qt/5.7/ios/mkspecs/macx-ios-clang/xcodebuild.mk"
    this line
    #IPHONESIMULATOR_GENERIC_DESTINATION := "id=$(shell xcrun simctl list devices | grep -E 'iPhone|iPad' | grep -v unavailable | perl -lne 'print $$1 if /((.*?))/' | tail -n 1)"

    to
    IPHONESIMULATOR_GENERIC_DESTINATION := "id=9C9FBD70-B4EA-4394-AD86-5EE53ADE5B57"

    this is my id on my computer "9C9FBD70-B4EA-4394-AD86-5EE53ADE5B57" of iPhone 6s, you need insert your id

    this is not so good method, but i spend 4 hours to run this baby! and f* next error comming

    PS: The bigger updates ever! (in this case have fun)



  • We've found more elegant solution :)

    Symptom

    "Unsupported device specifier option. The device “My Mac” does not support the following options: id Please supply only supported device specifier options."
    

    Solution

    Replace

    IPHONESIMULATOR_GENERIC_DESTINATION := "id=$(shell xcrun simctl list devices | grep -E 'iPhone|iPad' | grep -v unavailable | perl -lne 'print $$1 if /((.*?))/' | tail -n 1)"
    

    with

    IPHONESIMULATOR_GENERIC_DESTINATION := "id=$(shell xcrun simctl list devices | grep -E 'iPhone|iPad' | grep -v unavailable | awk 'match ($$0, /\(([A-F0-9\-]*\))/ ) { print substr ($$0, RSTART+1, RLENGTH-2) }' | tail -n 1)"
    

    in QT_DIR/5.7/ios/mkspecs/macx-ios-clang/xcodebuild.mk


Log in to reply