Skip to content

Commit 562f5c7

Browse files
authored
Change LogDebug to NSLog in app's swizzling code. (#783)
* Change LogDebug to NSLog. * Change log message. * Add comment.
1 parent ce2a22d commit 562f5c7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/src/invites/ios/invites_ios_startup.mm

+2-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ static void HookAppDelegateMethods(Class clazz) {
284284
// http://www.opensource.apple.com/source/objc4/objc4-274/runtime/objc-runtime.m)
285285
@implementation UIApplication (FIRFBI)
286286
+ (void)load {
287-
::firebase::LogDebug("Loading UIApplication FIRFBI category");
287+
// C++ constructors may not be called yet so call NSLog rather than LogDebug.
288+
NSLog(@"Loading UIApplication category for Firebase App");
288289
::firebase::util::ForEachAppDelegateClass(^(Class clazz) {
289290
::firebase::invites::HookAppDelegateMethods(clazz);
290291
});

release_build_files/readme.md

+7
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,13 @@ workflow use only during the development of your app, not for publicly shipping
567567
code.
568568

569569
## Release Notes
570+
### Next Release
571+
- Changes
572+
- General (iOS): Fixed an intermittent crash on iOS 15 caused by
573+
constructing C++ objects during Objective-C's `+load` method.
574+
([#706](https://github.com/firebase/firebase-cpp-sdk/pull/706))
575+
([#783](https://github.com/firebase/firebase-cpp-sdk/pull/783))
576+
570577
### 8.8.0
571578
- Changes
572579
- General: Fixed a data race that could manifest as null pointer

0 commit comments

Comments
 (0)