File tree Expand file tree Collapse file tree 4 files changed +181
-241
lines changed Expand file tree Collapse file tree 4 files changed +181
-241
lines changed Original file line number Diff line number Diff line change 137
137
}
138
138
}
139
139
NSBundle *frameworkBundle = [FUIAuthUtils bundleNamed: bundleName];
140
+ if (frameworkBundle == nil ) {
141
+ frameworkBundle = [NSBundle mainBundle ];
142
+ }
140
143
return [frameworkBundle localizedStringForKey: key value: nil table: table];
141
144
}
142
145
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ + (NSBundle *)bundleNamed:(NSString *)bundleName {
26
26
NSBundle *frameworkBundle = nil ;
27
27
if (bundleName) {
28
28
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
+ }
29
33
frameworkBundle = [NSBundle bundleWithPath: path];
30
34
} else {
31
35
frameworkBundle = [NSBundle bundleForClass: [self class ]];
You can’t perform that action at this time.
0 commit comments