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

QtPositioning: Fix deprecation warnings for macOS

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.8, 6.3.0 Alpha
    • None
    • Positioning
    • None
    • iOS/tvOS/watchOS, macOS
    • 5
    • 0fe43dd0722b0aca86bdbb11f621cf12da8a5fb7 (qt/qtpositioning/dev) 45ff6ea68b3d0d510a279f6512cd4b8fc352c729 (qt/tqtc-qtlocation/5.15)
    • Team 2 Foundation_Sprint 45, Team 2 Foundation_Sprint 46

    Description

      Initially reported by vuokko

      We get a deprecation warning while building on macOS:

      /Users/juha.vuolle/qts/mods/qtlocation/src/plugins/position/corelocation/qgeopositioninfosource_cl.mm:149:40: warning: 'authorizationStatus' is deprecated: first deprecated in macOS 11.0 [-Wdeprecated-declarations]
                  switch ([CLLocationManager authorizationStatus]) {
                                             ^~~~~~~~~~~~~~~~~~~
                                             authorizationStatus
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h:218:1: note: 'authorizationStatus' has been explicitly marked deprecated here
      + (CLAuthorizationStatus)authorizationStatus API_DEPRECATED_WITH_REPLACEMENT("-authorizationStatus", ios(4.2, 14.0), macos(10.7, 11.0), watchos(1.0, 7.0), tvos(9.0, 14.0));
      ^
      

      I'm not sure how critical it is, and how much effort is required to fix it.

       

      Attachments

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

        Activity

          People

            oyheskes Øystein Heskestad
            ivan.solovev Ivan Solovev
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes