Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9, 5.10, 5.11
-
None
-
macOS 10.12.6 (16G1111)
Xcode Version 9.1 (9B55)
tvOS SDKs: tvOS 11.1 -sdk appletvos11.1
git clone git://code.qt.io/qt/qt5.git --branch dev
perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
commit: 4096e387f0592e3dfda5eb12b0d9c32b23d6b7db
configure:
{code}-commercial
-confirm-license
-static
-xplatform macx-tvos-clang
-sdk appletvos11.1
-c++std c++14
-no-widgets
-nomake examples
-qt-harfbuzz
-qt-pcre
-skip qtdoc
-skip qtscript
-skip qtwayland
-skip qtwebengine{code}macOS 10.12.6 (16G1111) Xcode Version 9.1 (9B55) tvOS SDKs: tvOS 11.1 -sdk appletvos11.1 git clone git://code.qt.io/qt/qt5.git --branch dev perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine commit: 4096e387f0592e3dfda5eb12b0d9c32b23d6b7db configure: {code}-commercial -confirm-license -static -xplatform macx-tvos-clang -sdk appletvos11.1 -c++std c++14 -no-widgets -nomake examples -qt-harfbuzz -qt-pcre -skip qtdoc -skip qtscript -skip qtwayland -skip qtwebengine{code}
-
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 |
211692,2 | Fix the build on tvOS due to an availability declaration bug | 5.9 | qt/qtpurchasing | Status: MERGED | +2 | 0 |