Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29492

iOS: Unnecessary and undocumented requirement to configure XCode with team settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 11.0.1
    • iOS Support
    • None
    • iOS/tvOS/watchOS

    Description

      The documentation says:

      Before building any Qt applications, you should test that XCode is set up correctly, for example, by running one of the standard XCode application templates on your device.

      XCode can be configured just with an Apple ID, without team settings (which require a paid subscription). Any standard application, including Qt applications, can be built and debugged with such an XCode setup.

      Qt Creator does not work in such a setup. If no team attributes are specified in a .pro or CMakeLists.txt, Creator compiles and creates a .xcodeproj tree, that can be run/debugged directly by XCode. Creator, however, fails to run or debug the project (see error log below).

      The limiting requirement to have a team configured in XCode seems unnecessary. If it can't be removed, it has to be documented.

      Example ios settings in a .pro:

      ios {
          disable_warning.name = "GCC_WARN_64_TO_32_BIT_CONVERSION"
          disable_warning.value = "No"
          QMAKE_MAC_XCODE_SETTINGS += disable_warning
      }
      

      Error log:

      /Users/axelspoerl/bugs/build-qt-ios-textbox-iOS_Simulator_toplevel_dev-Debug/qt-ios-textbox.xcodeproj: error: Communication with Apple failed: Your team has no devices from which to generate a provisioning profile. Connect a device to use or manually add device IDs in Certificates, Identifiers & Profiles. https://developer.apple.com/account/ (in target 'qt-ios-textbox' from project 'qt-ios-textbox')
      /Users/axelspoerl/bugs/build-qt-ios-textbox-iOS_Simulator_toplevel_dev-Debug/qt-ios-textbox.xcodeproj: error: No profiles for 'Qt.qt-ios-textbox' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'Qt.qt-ios-textbox'. (in target 'qt-ios-textbox' from project 'qt-ios-textbox')
      warning: Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO. (in target 'qt-ios-textbox' from project 'qt-ios-textbox')
      warning: Run script build phase 'Qt Qmake' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Qt Preprocess' from project 'qt-ios-textbox')
      note: Run script build phase 'Qt Preprocessors' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Qt Preprocess' from project 'qt-ios-textbox')
      ** BUILD FAILED **
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            con Eike Ziller
            axelspoerl Axel Spoerl
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes