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

QtPositioning: Fix deprecation warnings for macOS

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Positioning
    • Labels:
      None
    • Platform/s:
      iOS/tvOS/watchOS, macOS
    • Technical Risk:
      Normal

      Description

      Initially reported by Juha Vuolle

      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

            Assignee:
            cnn Qt Core & Network
            Reporter:
            ivan.solovev Ivan Solovev
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes