Skip to content

StoreKit tvOS xcode14.3 beta1

Alex Soto edited this page Feb 16, 2023 · 2 revisions

#StoreKit.framework

diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKitDefines.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKitDefines.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKitDefines.h	2022-10-06 13:21:14
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKitDefines.h	2023-02-11 22:22:03
@@ -16,3 +16,13 @@
 #define SK_EXTERN_CLASS_AVAILABLE_MAC(version) __attribute__((visibility("default"))) NS_CLASS_AVAILABLE_MAC(version)
 #define SK_EXTERN_CLASS_AVAILABLE_IOS(version) __attribute__((visibility("default"))) NS_CLASS_AVAILABLE_IOS(version)
 #define SK_CLASS_FINAL __attribute__((objc_subclassing_restricted))
+
+#ifdef DEBUG
+// Allow for the framework to be deployed in alternate locations.
+#define StoreKitBundle [NSBundle bundleWithIdentifier:@"com.apple.StoreKit"]
+#else
+// Slightly more direct way to retrieve bundle.
+#define StoreKitBundle [NSBundle bundleWithPath:@"/System/Library/Frameworks/StoreKit.framework"]
+#endif
+
+#define SKLocalizedString(x) NSLocalizedStringFromTableInBundle(x, nil, StoreKitBundle, @"")
Clone this wiki locally