Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-50159

Applications do not work with iOS 7 and earlier due to unrecognized selector

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.6.0 RC
    • 5.6.0 Beta
    • QPA
    • None
    • iOS/tvOS/watchOS
    • 81ee6e763efc4cb7cac12a9f91578776e9b05a3c

    Description

      Applications do not work with iOS 7 and earlier due to unrecognized selector:

      <code>
      QML debugging is enabled. Only use this in a safe environment.
      2015-12-23 17:59:39.055 flat[279:60b] -[UIScreen traitCollection]: unrecognized selector sent to instance 0x170137fc0
      2015-12-23 17:59:39.058 flat[279:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIScreen traitCollection]: unrecognized selector sent to instance 0x170137fc0'

          • First throw call stack:
            (0x18c533100 0x198a3c1fc 0x18c537db4 0x18c535ae0 0x18c45578c 0x10008c854 0x10008c9c4 0x10008bcb0 0x100801438 0x100800a40 0x100800994 0x10080be10 0x10080bb70 0x10080c648 0x1012ac048 0x1012abbf0 0x100809500 0x10080a2bc 0x10008a0c0 0x10008ed80 0x10008eabc)
            libc++abi.dylib: terminating with uncaught exception of type NSException
            (lldb)
            </code>

      The problem can be reproduced by trying to start one of the sample applications on an iOS 7 or earlier device. I do not have an iOS 8 device but it should work there because the "UIScreen traitCollection" selector has been introduced with iOS 8.

      Attachments

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

        Activity

          People

            Harald Meyer Harald Meyer
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes