flutter – App crashes on iOS (Xcode) when trying to relaunch: gives me errors on debug mode and release mode


Relaunching my Flutter app on iOS (Xcode) sometimes gives me errors aka it crashes. It is very random. Note that the app does not relaunch at all in debug mode, so always fails after initial installation. In release mode, it occasionally relaunches the app. Note that sandbox mode is not enabled (don’t know if I have to do that or not) and I can provide any info you would like.

To reproduce:

  1. Launch app via Xcode (always succeeds)
  2. Close the app on springboard (screen) of iPhone
  3. Try to relaunch the app
  4. Loads splashscreen for 1 second and then terminates.

Here is the error log I managed to get:

domain: BSServiceConnectionErrorDomain; code: 3 ("OperationFailed"); "XPC error received on message reply handler">.

Jan  2 01:14:09 SpringBoard(FrontBoard)[33] <Error>: 
[app<com.example.myappnamehere(6DC11EF2-C3B9-459A-9210-004DA66051D2)>:2287] 
Termination failed with error: Error Domain=RBSRequestErrorDomain Code=3 "No such process found" UserInfo={NSLocalizedFailureReason=No such process found}

    NSUnderlyingError = <NSError: 0x2801a5e30; domain: 
BSServiceConnectionErrorDomain; code: 3 ("OperationFailed"); "XPC error received on message reply handler">;

Jan  2 01:14:10 ReportCrash(MetricKitSource)[134] 
<Error>: Failed to create bundle record for bundleID <private> and error <private>

Jan  2 01:15:56 SpringBoard(FrontBoard)[33] <Notice>: [(FBSceneManager):sceneID:com.example.myappnamehere-default][1] 
Scene invalidated with error: <NSError: 0x2801a2d30; domain: BSServiceConnectionErrorDomain; code: 3 ("OperationFailed"); "XPC error received on message reply handler">.

I do not know what is causing the actual problem. I also see some other things:

Jan  2 01:15:56 kernel[0] <Notice>: necp_process_defunct_list: necp_update_client abort nexus error (2) for pid 2358
Jan  2 01:15:56 wifid(CoreWiFi)[49] <Notice>: [corewifi] AUTO-JOIN: Auto-join aborted (requeued=0, cancelled=0, error=(1 'Auto-join is disabled by user (and not in priority link setup)'))
Jan  2 01:15:56 wifid(CoreWiFi)[49] <Notice>: [corewifi] AUTO-JOIN: Auto-join aborted (requeued=0, cancelled=0, error=(1 'Auto-join is disabled by user (and not in priority link setup)'))
Jan  2 01:15:56 SpringBoard(FrontBoard)[33] <Error>: [app<com.example.myappnamehere(6DC11EF2-C3B9-459A-9210-004DA66051D2)>:2355] Termination failed with error: Error Domain=RBSRequestErrorDomain Code=3 "No such process found" UserInfo={NSLocalizedFailureReason=No such process found}
Jan  2 01:15:56 wifid(WiFiPolicy)[49] <Notice>: -[WiFiSettlementObserver _handleScanResults:error:userInfo:]: scanType=2 client="locationd" directed=0 results="{(
Jan  2 01:15:56 wifid(WiFiPolicy)[49] <Notice>: -[WiFiSettlementObserver _handleScanResults:error:userInfo:]: settled for 4474.86 seconds
Jan  2 01:15:56 locationd[69] <Notice>: WifiMgr, onWiFiDeviceClientScanCallback, error, 0, valid, 1, count, 23
Jan  2 01:15:56 locationd[69] <Notice>: WifiScan, addAps, scan, returned, 23, unique, 16, insert, 16, keep, 0, error, 0, stale, 7, ignore, 0

Any chance someone knows what the actual error is here? Never seen this before and as the app crashes at reload, I can”t go live like this.

Note that here I found the sane issue, but sadly no solution:
https://github.com/flutter/flutter/issues/127463

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img