FBSSceneSnapshotErrorDomain Code=4

[Common] Error response from snapshot request action of type 1 gave Error Domain=FBSSceneSnapshotErrorDomain Code=4 "an error occurred during a scene snapshotting operation" UserInfo={NSLocalizedDescription=an error occurred during a scene snapshotting operation, NSLocalizedFailureReason=an unrelated condition or state was not satisfied}

  • Did you find a solution?

  • Same problem with Xcode = 14.2 + Simulator = 14.2

    There are several other errors out there that appear only with the Simulator, but not with the real App.

    Is this Snapshot Error among them?

Add a Comment

Replies

Uncheck "Supports multiple windows" from General -> Deployment Info then clean build and build again.

Supports multiple windows isn't listed when your app does support iPhone only. Therefore, in my case I still have this error message while this setting can't be checked/unchecked here.

Do you have this in your didFinishLaunchingWithOptions?

rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
 UIViewController *rootViewController = [UIViewController new];
 rootViewController.view = rootView;
 self.window.rootViewController = rootViewController;
 [self.window makeKeyAndVisible];

I got the same error in flutter using any plugin which is available.