File tree Expand file tree Collapse file tree 5 files changed +152
-249
lines changed
FirebaseUISample/Assets.xcassets/AppIcon.appiconset Expand file tree Collapse file tree 5 files changed +152
-249
lines changed Original file line number Diff line number Diff line change 137137 }
138138 }
139139 NSBundle *frameworkBundle = [FUIAuthUtils bundleNamed: bundleName];
140+ if (frameworkBundle == nil ) {
141+ frameworkBundle = [NSBundle mainBundle ];
142+ }
140143 return [frameworkBundle localizedStringForKey: key value: nil table: table];
141144}
142145
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ + (NSBundle *)bundleNamed:(NSString *)bundleName {
2626 NSBundle *frameworkBundle = nil ;
2727 if (bundleName) {
2828 NSString *path = [[NSBundle mainBundle ] pathForResource: bundleName ofType: @" bundle" ];
29+ if (path == nil ) {
30+ // Check framework resources if bundle isn't present in main bundle.
31+ path = [[NSBundle mainBundle ] pathForResource: bundleName ofType: @" framework" ];
32+ }
2933 frameworkBundle = [NSBundle bundleWithPath: path];
3034 } else {
3135 frameworkBundle = [NSBundle bundleForClass: [self class ]];
You can’t perform that action at this time.
0 commit comments