Skip to content

Commit

Permalink
[visionOS] Fix FirebaseMessaging build on Xcode 15.1 beta 1 (#11930)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard authored Oct 12, 2023
1 parent edc9081 commit d81afaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion FirebaseMessaging/Sources/FIRMessagingUtilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ BOOL FIRMessagingIsProductionApp(void) {
#if TARGET_OS_OSX || TARGET_OS_MACCATALYST
NSString *path = [[[[NSBundle mainBundle] resourcePath] stringByDeletingLastPathComponent]
stringByAppendingPathComponent:@"embedded.provisionprofile"];
#elif TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH
#elif TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH || \
(defined(TARGET_OS_VISION) && TARGET_OS_VISION)
NSString *path = [[[NSBundle mainBundle] bundlePath]
stringByAppendingPathComponent:@"embedded.mobileprovision"];
#endif
Expand Down
2 changes: 1 addition & 1 deletion FirebaseMessaging/Sources/Token/FIRMessagingAuthKeychain.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ - (NSMutableDictionary *)keychainQueryForService:(NSString *)service account:(NS
NSMutableDictionary *keychainQuery = [self keychainQueryForService:service account:account];
NSMutableArray<NSData *> *results;
keychainQuery[(__bridge id)kSecReturnData] = (__bridge id)kCFBooleanTrue;
#if TARGET_OS_IOS || TARGET_OS_TV
#if TARGET_OS_IOS || TARGET_OS_TV || (defined(TARGET_OS_VISION) && TARGET_OS_VISION)
keychainQuery[(__bridge id)kSecReturnAttributes] = (__bridge id)kCFBooleanTrue;
keychainQuery[(__bridge id)kSecMatchLimit] = (__bridge id)kSecMatchLimitAll;
// FIRMessagingKeychain should only take a query and return a result, will handle the query here.
Expand Down

0 comments on commit d81afaa

Please sign in to comment.