I am having trouble getting RevenueCat to work properly in my project when building for visionOS, integrating via CocoaPods. The problem seems to come from lines like this:
#if os(iOS) || targetEnvironment(macCatalyst) || VISION_OS
where VISION_OS is not defined, even when building for visionOS, causing the code to take the wrong path.
How is this supposed to work? I can’t quite figure out where VISION_OS is supposed to be defined. Is there a reason this isn’t just using #if os(visionOS)? Any help or workaround you could provide would be much appreciated!
Using Xcode 15.1 beta 2.