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

can't compile QtPurchasing for iphonesimulator because of SKErrorCloudServiceRevoked

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.10.1
    • Purchasing
    • None
    • macOS 10.12.6, Xcode 9.2, iPhoneSimulator11.2.sdk

    Description

      Debug build of QtPurchasing for iphonesimulator fails with error: (unfortunately, I was building with -silent option)

      /Volumes/hdd/Applications/Qt/5.10.1/qt-everywhere-src-5.10.1/qtpurchasing/src/purchasing/inapppurchase/mac/qmacinapppurchasetransaction.mm:74:14: error: 'SKErrorCloudServiceRevoked' is only available on iOS 10_3 or newer [-Werror,-Wunguarded-availability]
              case SKErrorCloudServiceRevoked:
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.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
          ^
      /Volumes/hdd/Applications/Qt/5.10.1/qt-everywhere-src-5.10.1/qtpurchasing/src/purchasing/inapppurchase/mac/qmacinapppurchasetransaction.mm:74:14: note: enclose 'SKErrorCloudServiceRevoked' in an @available check to silence this warning
              case SKErrorCloudServiceRevoked:
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      make[3]: *** [.obj/qmacinapppurchasetransaction.o] Error 1
      make[2]: *** [sub-purchasing-make_first] Error 2
      make[1]: *** [sub-src-make_first] Error 2
      make: *** [module-qtpurchasing-make_first] Error 2

       

      Please find config files and Purchasing's Makefile attached.

      I've checked later without -silent: deployment target that is passed in clang commands is -mios-simulator-version-min=10.0

      Might be related to QTBUG-64531

      Attachments

        1. config.zip
          15 kB
        2. purchasing_Makefile.zip
          19 kB

        Activity

          People

            vestbo Tor Arne Vestbø
            kambala Andrey Filipenkov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: