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

Apple tvOS SDK appletvos11.1 Compile Fails, error: 'SKErrorCloudServiceRevoked' is only available on tvOS 10_3 or newer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.3
    • 5.9, 5.10, 5.11
    • Purchasing
    • None
    • c431c2d28cabf711727c09ee37559e44357358e3

    Description

      Configuration as shown under Environment.

      Run make.

      Error during compilation:

      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -include.pch/debug/Qt5Purchasing_debug/objective-c++_arm64 -pipe -stdlib=libc++ -g -Og -fPIC -std=c++1y -fapplication-extension  -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS11.1.sdk -mappletvos-version-min=10.0 -fobjc-nonfragile-abi -fobjc-legacy-dispatch -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fembed-bitcode-marker -Wall -W -Werror=unguarded-availability -Werror=unguarded-availability-new -Werror=unsupported-availability-guard -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_PURCHASING_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_CORE_LIB -I. -I/Volumes/blacky/qt5/qtbase/mkspecs/common/uikit -Iinapppurchase -Iinapppurchase/mac -I../../include -I../../include/QtPurchasing -I../../include/QtPurchasing/5.11.0 -I../../include/QtPurchasing/5.11.0/QtPurchasing -I/Volumes/blacky/qt5/qtbase/include -I/Volumes/blacky/qt5/qtbase/include/QtCore -I.moc/debug -I/Volumes/blacky/qt5/qtbase/mkspecs/macx-tvos-clang -o .obj/debug/qmacinapppurchasetransaction.o inapppurchase/mac/qmacinapppurchasetransaction.mm
      
      inapppurchase/mac/qmacinapppurchasetransaction.mm:73:14: error: 'SKErrorCloudServiceRevoked' is only available on tvOS 10_3 or newer [-Werror,-Wunguarded-availability]
      
              case SKErrorCloudServiceRevoked:
      
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
      
      /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS11.1.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKError.h:25:5: note: 'SKErrorCloudServiceRevoked' has been explicitly marked partial here
      
          SKErrorCloudServiceRevoked NS_ENUM_AVAILABLE_IOS(10_3),                   // user has revoked permission to use this cloud service
      
          ^
      
      inapppurchase/mac/qmacinapppurchasetransaction.mm:73:14: note: enclose 'SKErrorCloudServiceRevoked' in an @available check to silence this warning
      
              case SKErrorCloudServiceRevoked:
      
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
      
      1 error generated.
      
      make[4]: *** [.obj/debug/qmacinapppurchasetransaction.o] Error 1
      
      make[3]: *** [debug-all] Error 2
      
      make[2]: *** [sub-purchasing-make_first] Error 2
      
      make[1]: *** [sub-src-make_first] Error 2
      
      make: *** [module-qtpurchasing-make_first] Error 2

      Attachments

        For Gerrit Dashboard: QTBUG-64531
        # Subject Branch Project Status CR V

        Activity

          People

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            jbrend Jeffrey Brendecke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes