Skip to content

Commit 542105e

Browse files
committed
[InAppMessaging] Fix #12882 (#12910)
1 parent 3b2869c commit 542105e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

FirebaseInAppMessaging/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
- [fixed] Fixed crash at app start that affected SwiftPM users and CocoaPods
3+
users using static frameworks (#12882).
4+
15
# 10.25.0
26
- [changed] Removed usages of user defaults API to eliminate required reason
37
impact.

FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMDefaultDisplayImpl.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ + (NSBundle *)getViewResourceBundle {
7272
[NSBundle mainBundle],
7373
// Dynamically linked.
7474
[NSBundle bundleForClass:myClass],
75+
#if FIREBASE_BUILD_ZIP_FILE
7576
// Embedded static framework (zip distribution).
7677
[NSBundle bundleWithURL:[NSBundle.mainBundle.bundleURL
7778
URLByAppendingPathComponent:
7879
@"Frameworks/FirebaseInAppMessaging.framework"]]
80+
#endif // FIREBASE_BUILD_ZIP_FILE
7981
]) {
8082
bundleURL = [containingBundle URLForResource:bundledResource withExtension:@"bundle"];
8183
if (bundleURL != nil) break;

0 commit comments

Comments
 (0)