File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
FirebaseInAppMessaging/Sources/DefaultUI Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,15 @@ + (NSBundle *)getViewResourceBundle {
67
67
NSBundle *containingBundle;
68
68
NSURL *bundleURL;
69
69
// The containing bundle is different whether FIAM is statically or dynamically linked.
70
- for (containingBundle in @[ [NSBundle mainBundle ], [NSBundle bundleForClass: myClass] ]) {
70
+ for (containingBundle in @[
71
+ // Statically linked.
72
+ [NSBundle mainBundle ],
73
+ // Dynamically linked.
74
+ [NSBundle bundleForClass: myClass],
75
+ // Embedded static framework (zip distribution).
76
+ [[NSBundle .mainBundle.bundleURL URLByAppendingPathComponent: @" Frameworks" ]
77
+ URLByAppendingPathComponent: @" FirebaseInAppMessaging.framework" ]
78
+ ]) {
71
79
bundleURL = [containingBundle URLForResource: bundledResource withExtension: @" bundle" ];
72
80
if (bundleURL != nil ) break ;
73
81
}
You can’t perform that action at this time.
0 commit comments