Post

Replies

Boosts

Views

Activity

Debug a frozen app / view hierarchy
Hi i'm stuck on my react native development. on Xcode i'm getting the error below. Unfortunately, its a random crash and it also dosen't really tell me where (especially which view) the error is. Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'A view can only be associated with at most one view controller at a time! View &lt;RCTView: 0x7f91cdeab480; reactTag: 259; frame = (0 0; 414 896); layer = <CALayer: 0x600001a2af20&gt;> is associated with &lt;UIViewController: 0x7f91d01ca240&gt;. Clear this association before associating this view with &lt;UIViewController: 0x7f91cdc998b0&gt;.' I know on xcode i can check the UI hierarchy. But apparantely after the app crashes, i am unable to click on it because i get the 2nd error (below) DebugHierarchyRequest - Failed to unarchive request data with error: Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.} Error:  Unable to Capture View Hierarchy. Details: Log Title: Data source expression execution failure. Log Details: (null) Log Method: -[DBGDataSourceConnectionLibViewDebugger executeLLDBExpression:forRequest:onPotentialThread:iteration:]blockinvoke Method:  -[DBGViewDebugger initiateInitialRequestWithDataSourceVersion:]blockinvoke Environment: Xcode 11.6 (11E708) debugging iPhone 11 iOS Simulator 13.6 (17G64). Any ideas on how i can debug this ?
0
0
1.3k
Aug ’20