diff --git a/FirebaseCore/Sources/FIRApp.m b/FirebaseCore/Sources/FIRApp.m index 8f4aefe4bc7..dff2d4b1dc5 100644 --- a/FirebaseCore/Sources/FIRApp.m +++ b/FirebaseCore/Sources/FIRApp.m @@ -110,7 +110,12 @@ @implementation FIRApp static FIRApp *sDefaultApp; + (void)configure { - FIROptions *options = [FIROptions defaultOptions]; + // The following should not compile if visionOS is properly being built. +#if defined(TARGET_OS_VISION) && TARGET_OS_VISION + THIS SHOULD NOT COMPILE +#endif // defined(TARGET_OS_VISION) && TARGET_OS_VISION + + FIROptions *options = [FIROptions defaultOptions]; if (!options) { #if DEBUG [self findMisnamedGoogleServiceInfoPlist];