Skip to content

Commit d81afaa

Browse files
authored
[visionOS] Fix FirebaseMessaging build on Xcode 15.1 beta 1 (#11930)
1 parent edc9081 commit d81afaa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

FirebaseMessaging/Sources/FIRMessagingUtilities.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ BOOL FIRMessagingIsProductionApp(void) {
334334
#if TARGET_OS_OSX || TARGET_OS_MACCATALYST
335335
NSString *path = [[[[NSBundle mainBundle] resourcePath] stringByDeletingLastPathComponent]
336336
stringByAppendingPathComponent:@"embedded.provisionprofile"];
337-
#elif TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH
337+
#elif TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH || \
338+
(defined(TARGET_OS_VISION) && TARGET_OS_VISION)
338339
NSString *path = [[[NSBundle mainBundle] bundlePath]
339340
stringByAppendingPathComponent:@"embedded.mobileprovision"];
340341
#endif

FirebaseMessaging/Sources/Token/FIRMessagingAuthKeychain.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ - (NSMutableDictionary *)keychainQueryForService:(NSString *)service account:(NS
9292
NSMutableDictionary *keychainQuery = [self keychainQueryForService:service account:account];
9393
NSMutableArray<NSData *> *results;
9494
keychainQuery[(__bridge id)kSecReturnData] = (__bridge id)kCFBooleanTrue;
95-
#if TARGET_OS_IOS || TARGET_OS_TV
95+
#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION)
9696
keychainQuery[(__bridge id)kSecReturnAttributes] = (__bridge id)kCFBooleanTrue;
9797
keychainQuery[(__bridge id)kSecMatchLimit] = (__bridge id)kSecMatchLimitAll;
9898
// FIRMessagingKeychain should only take a query and return a result, will handle the query here.

0 commit comments

Comments
 (0)