Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 08f4d63

Browse files
committed
fix test
1 parent de5ecba commit 08f4d63

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

shell/platform/darwin/ios/framework/Source/FlutterViewController.mm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,12 @@ - (UIView*)splashScreenFromStoryboard:(NSString*)name {
482482
}
483483

484484
- (UIView*)splashScreenFromXib:(NSString*)name {
485-
NSArray* objects = [[NSBundle mainBundle] loadNibNamed:name owner:self options:nil];
485+
NSArray* objects = nil;
486+
@try {
487+
objects = [[NSBundle mainBundle] loadNibNamed:name owner:self options:nil];
488+
} @catch (NSException* exception) {
489+
return nil;
490+
}
486491
if ([objects count] != 0) {
487492
UIView* view = [objects objectAtIndex:0];
488493
return view;

testing/scenario_app/ios/Scenarios/Scenarios/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
<string>1</string>
2121
<key>LSRequiresIPhoneOS</key>
2222
<true/>
23+
<key>UILaunchStoryboardName</key>
24+
<string>LaunchScreen</string>
2325
<key>UIRequiredDeviceCapabilities</key>
2426
<array>
2527
<string>arm64</string>

0 commit comments

Comments
 (0)