App crashes when Simulator is restarted - ios

I started using facebook SDK and the official react native wrapper.
Am not sure if this is the cause or if its my usage of AsyncStorage. But whenever I quit the simulator and then re-run my app via (react-native run-ios), the app crashes. Everytime I have to "Reset content and settings" for it to go away. Below is the logs I can find.
Dec 10 21:48:34 sseshac-in-la-2 XXXXX[22405] <Error>: assertion failed: 15G1108 14A345: libxpc.dylib + 62597 [37A9DF49-35C1-3D93-B854-B35CACF0100F]: 0x7d
Dec 10 21:48:34 sseshac-in-la-2 Unknown[22405] <Error>:
Dec 10 21:48:34 sseshac-in-la-2 XXXXX[22405] <Error>: [] nw_host_stats_add_src recv too small, received 24, expected 28
--- last message repeated 2 times ---
Dec 10 21:48:34 sseshac-in-la-2 XXXXX[22405] <Notice>: Initializing <RCTBatchedBridge: 0x6100001971b0> (parent: <RCTBridge: 0x6080000b9620>, executor: RCTJSCExecutor)
Dec 10 21:48:34 sseshac-in-la-2 XXXXX[22405] <Warning>: Class GenericShare was not exported. Did you forget to use RCT_EXPORT_MODULE()?
Dec 10 21:48:34 sseshac-in-la-2 XXXXX[22405] <Warning>: Class WhatsAppShare was not exported. Did you forget to use RCT_EXPORT_MODULE()?
Dec 10 21:48:34 sseshac-in-la-2 XXXXX[22405] <Warning>: Class GooglePlusShare was not exported. Did you forget to use RCT_EXPORT_MODULE()?
Dec 10 21:48:34 sseshac-in-la-2 XXXXX[22405] <Error>: [] nw_host_stats_add_src recv too small, received 24, expected 28
Dec 10 21:48:34 sseshac-in-la-2 XXXXX[22405] <Warning>: Falling back to loading access token from NSUserDefaults because of simulator bug
Dec 10 21:48:34 sseshac-in-la-2 XXXXX[22405] <Error>: -[NSConcreteMutableData isEqualToString:]: unrecognized selector sent to instance 0x608000050710
Dec 10 21:48:34 sseshac-in-la-2 XXXXX[22405] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteMutableData isEqualToString:]: unrecognized selector sent to instance 0x608000050710'
*** First throw call stack:
(
0 CoreFoundation 0x00000001020c834b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000100fd821e objc_exception_throw + 48
2 CoreFoundation 0x0000000102137f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010204dc15 ___forwarding___ + 1013
4 CoreFoundation 0x000000010204d798 _CF_forwarding_prep_0 + 120
5 XXXXX 0x0000000100657170 -[FBSDKAccessTokenCacheV4 fetchAccessToken] + 179
6 XXXXX 0x0000000100642526 -[FBSDKAccessTokenCache fetchAccessToken] + 73
7 XXXXX 0x000000010064cfbb -[FBSDKApplicationDelegate application:didFinishLaunchingWithOptions:] + 97
8 XXXXX 0x00000001004c7552 -[AppDelegate application:didFinishLaunchingWithOptions:] + 898
9 UIKit 0x000000010476768e -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 290
10 UIKit 0x0000000104769013 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4236
11 UIKit 0x000000010476f3b9 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1731
12 UIKit 0x000000010476c539 -[UIApplication workspaceDidEndTransaction:] + 188
13 FrontBoardServices 0x0000000107bf176b __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
14 FrontBoardServices 0x0000000107bf15e4 -[FBSSerialQueue _performNext] + 189
15 FrontBoardServices 0x0000000107bf196d -[FBSSerialQueue _performNextFromRunLoopSource] + 45
16 CoreFoundation 0x000000010206d311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
17 CoreFoundation 0x000000010205259c __CFRunLoopDoSources0 + 556
18 CoreFoundation 0x0000000102051a86 __CFRunLoopRun + 918
19 CoreFoundation 0x0000000102051494 CFRunLoopRunSpecific + 420
20 UIKit 0x000000010476adb6 -[UIApplication _run] + 434
21 UIKit 0x0000000104770f34 UIApplicationMain + 159
22 XXXXX 0x00000001004c788f main + 111
23 libdyld.dylib 0x000000010613b68d start + 1
)
Dec 10 21:48:34 sseshac-in-la-2 SpringBoard[22278] <Error>: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus
Dec 10 21:48:34 sseshac-in-la-2 com.apple.CoreSimulator.SimDevice.B70B2265-1548-4811-B873-564E3E5DAFCB.launchd_sim[22261] (UIKitApplication:org.reactjs.native.example.XXXXX[0xe405][22405]) <Notice>: Service exited due to Abort trap: 6
Dec 10 21:48:34 sseshac-in-la-2 assertiond[22282] <Warning>: notify_suspend_pid() failed with error 7

Related

App closes on start when trying to run react-native run-ios

I'm facing some issues with running react-native run-ios on my react native project.
After the command the app as loading, black screen appears for a few seconds and then the app is closes.
Here is a log from WebStorm.
info Found Xcode workspace "Actors.xcworkspace"
info Launching iPhone 11 (iOS 14.3)
info Building (using "xcodebuild -workspace Actors.xcworkspace -configuration Debug -scheme Actors -destination id=5508C928-BADB-4FE5-8426-9B1461397EC3")
(node:44088) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
success Successfully built the app
info Installing "/Users/michaelionia/Library/Developer/Xcode/DerivedData/Actors-gzwkhkgvbultrlcjeogpfwamtnzi/Build/Products/Debug-iphonesimulator/Actors.app"
info Launching "org.name.Actors"
success Successfully launched the app on the simulator
When I'm running react-native run-android the app workings good with all libraries.
I've tried to run the project from xCode , but facing the same issue , the app opens with back screen and 0 Errors.
Here is a log from xcode
2021-02-15 10:43:06.728730+0200 Actors[44637:1250270] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
2021-02-15 10:43:06.728839+0200 Actors[44637:1250270] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2021-02-15 10:43:06.866897+0200 Actors[44637:1251130] [] nw_protocol_get_quic_image_block_invoke dlopen libquic failed
2021-02-15 10:43:06.904031+0200 Actors[44637:1250270] [native] Running application main ({
initialProps = {
};
rootTag = 1;
})
2021-02-15 10:43:06.930218+0200 Actors[44637:1250270] [native] 'SplashScreen.storyboard' file is missing. Fallbacking to 'SplashScreen.xib' file.
2021-02-15 10:43:06.930558+0200 Actors[44637:1250270] [native] 'SplashScreen.xib' file is missing - 'expo-splash-screen' will not work as expected.
2021-02-15 10:43:06.966657+0200 Actors[44637:1250270] *** Terminating app due to uncaught exception 'ERR_NO_SPLASH_SCREEN', reason: 'Couln't locate neither 'SplashScreen.storyboard' file nor 'SplashScreen.xib' file. Create one of these in the project to make 'expo-splash-screen' work (https://github.com/expo/expo/tree/master/packages/expo-splash-screen#-configure-ios).'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff20420af6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48
2 Actors 0x0000000101dc49e9 -[EXSplashScreenViewNativeProvider createSplashScreenView] + 2185
3 Actors 0x0000000101dc19bd -[EXSplashScreenController initWithViewController:splashScreenViewProvider:] + 221
4 Actors 0x0000000101dc3878 -[EXSplashScreenService showSplashScreenFor:splashScreenViewProvider:successCallback:failureCallback:] + 312
5 Actors 0x0000000101dc36a5 -[EXSplashScreenService showSplashScreenFor:] + 149
6 Actors 0x0000000101dc4075 -[EXSplashScreenService application:didFinishLaunchingWithOptions:] + 181
7 Actors 0x00000001021fdc9c -[UMAppDelegateWrapper application:didFinishLaunchingWithOptions:] + 476
8 Actors 0x0000000101d8567e -[AppDelegate application:didFinishLaunchingWithOptions:] + 574
9 UIKitCore 0x00007fff2468d0f1 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 232
10 UIKitCore 0x00007fff2468ec73 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3919
11 UIKitCore 0x00007fff24694681 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1237
12 UIKitCore 0x00007fff23cbd907 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
13 UIKitCore 0x00007fff2424bdb6 _UIScenePerformActionsWithLifecycleActionMask + 88
14 UIKitCore 0x00007fff23cbe416 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
15 UIKitCore 0x00007fff23cbdeda -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 474
16 UIKitCore 0x00007fff23cbe247 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 819
17 UIKitCore 0x00007fff23cbdadb -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 345
18 UIKitCore 0x00007fff23cc5d73 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 178
19 UIKitCore 0x00007fff241556ab +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 871
20 UIKitCore 0x00007fff2426865e _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 240
21 UIKitCore 0x00007fff23cc5a79 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 361
22 UIKitCore 0x00007fff23ae896f __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 797
23 UIKitCore 0x00007fff23ae7419 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 253
24 UIKitCore 0x00007fff23ae85a8 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 208
25 UIKitCore 0x00007fff24692b20 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 508
26 UIKitCore 0x00007fff2417dab7 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358
27 FrontBoardServices 0x00007fff25aa20ae -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 391
28 FrontBoardServices 0x00007fff25acab41 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 102
29 FrontBoardServices 0x00007fff25aafad5 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209
30 FrontBoardServices 0x00007fff25aca80f __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 352
31 libdispatch.dylib 0x00000001035329c8 _dispatch_client_callout + 8
32 libdispatch.dylib 0x0000000103535910 _dispatch_block_invoke_direct + 295
33 FrontBoardServices 0x00007fff25af07a5 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
34 FrontBoardServices 0x00007fff25af048b -[FBSSerialQueue _targetQueue_performNextIfPossible] + 433
35 FrontBoardServices 0x00007fff25af0950 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
36 CoreFoundation 0x00007fff2038f38a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
37 CoreFoundation 0x00007fff2038f282 __CFRunLoopDoSource0 + 180
38 CoreFoundation 0x00007fff2038e764 __CFRunLoopDoSources0 + 248
39 CoreFoundation 0x00007fff20388f2f __CFRunLoopRun + 878
40 CoreFoundation 0x00007fff203886d6 CFRunLoopRunSpecific + 567
41 GraphicsServices 0x00007fff2bededb3 GSEventRunModal + 139
42 UIKitCore 0x00007fff24690e0b -[UIApplication _run] + 912
43 UIKitCore 0x00007fff24695cbc UIApplicationMain + 101
44 Actors 0x0000000101d85eb0 main + 112
45 libdyld.dylib 0x00007fff202593e9 start + 1
46 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'ERR_NO_SPLASH_SCREEN', reason: 'Couln't locate neither 'SplashScreen.storyboard' file nor 'SplashScreen.xib' file. Create one of these in the project to make 'expo-splash-screen' work (https://github.com/expo/expo/tree/master/packages/expo-splash-screen#-configure-ios).'
terminating with uncaught exception of type NSException
CoreSimulator 732.18.6 - Device: iPhone 11 (5508C928-BADB-4FE5-8426-9B1461397EC3) - Runtime: iOS 14.3 (18C61) - DeviceType: iPhone 11
(lldb) .
I've tried to delete podfile.log and run pod install from ios directory.

Send gestures event cause crash when a wkwebview dealloced on iOS14

In my app,push to a view controller contains wkwebview and use long press gesture to show the select text menu,then pop the view controller make web view to dealloc.And then push to another web view controller,send a gesture to webview,then crashed.It's occurd on iOS 14 beta 2.I have report the bug to apple.It's exist some way workround?
Date/Time: 2020-07-13 18:46:00.715 +0800
OS Version: Mac OS X 10.15.5 (19F101)
Report Version: 12
Bridge OS Version: 4.5 (17P5300)
Anonymous UUID: DC589A65-FAD9-1105-69E1-F841F6FEE2E3
Sleep/Wake UUID: D3E2CB0D-6218-4CC0-85C5-86C8DAE0B4BC
Time Awake Since Boot: 240000 seconds
Time Since Wake: 33000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000022
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [50050]
VM Regions Near 0x22:
-->
__TEXT 000000010f792000-000000010f796000 [ 16K] r-x/r-x SM=COW /Users/USER/Library/Developer/CoreSimulator/Devices/4CDD359F-0A7E-4E13-A2CE-0DA825D90269/data/Containers/Bundle/Application/D19A53D4-CA61-4FCA-9F2D-ECAEA1A0D9C3/TestWebView.app/TestWebView
Application Specific Information:
CoreSimulator 725.10 - Device: iPhone 8 (4CDD359F-0A7E-4E13-A2CE-0DA825D90269) - Runtime: iOS 14.0 (18A5319g) - DeviceType: iPhone 8
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x0000000110d38b88 objc_retain + 8
1 com.apple.UIKitCore 0x00000001219ec716 -[UIInputResponderController prepareToMoveKeyboardForInputViewSet:animationStyle:] + 348
2 com.apple.UIKitCore 0x00000001219eacdf -[UIInputResponderController setKeyWindowSceneInputViews:animationStyle:] + 623
3 com.apple.UIKitCore 0x00000001219eaa45 -[UIInputResponderController setInputViews:animationStyle:] + 200
4 com.apple.UIKitCore 0x00000001219ec000 -[UIInputResponderController setInputViews:animated:] + 88
5 com.apple.UIKitCore 0x00000001219ec067 -[UIInputResponderController setInputViews:] + 68
6 com.apple.UIKitCore 0x00000001219e98a9 __74-[UIInputResponderController _reloadInputViewsForKeyWindowSceneResponder:]_block_invoke.605 + 30
7 com.apple.UIKitCore 0x00000001219e94b2 -[UIInputResponderController _reloadInputViewsForKeyWindowSceneResponder:] + 3982
8 com.apple.UIKitCore 0x00000001219e8507 -[UIInputResponderController _reloadInputViewsForResponder:] + 148
9 com.apple.UIKitCore 0x0000000121fdb741 -[UIResponder(UIResponderInputViewAdditions) reloadInputViews] + 133
10 com.apple.UIKitCore 0x0000000121fd6af9 -[UIResponder becomeFirstResponder] + 806
11 com.apple.UIKitCore 0x00000001224df189 -[UIView(Hierarchy) becomeFirstResponder] + 145
12 com.apple.WebKit 0x000000010fed7f9c -[WKContentView(WKInteraction) becomeFirstResponderForWebView] + 136
13 com.apple.WebKit 0x000000010fac30c8 -[WKWebView(WKViewInternalIOS) becomeFirstResponder] + 133
14 com.apple.UIKitCore 0x00000001222870b7 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) setFirstResponderIfNecessaryActivatingSelection:] + 195
15 com.apple.UIKitCore 0x00000001222881e7 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) checkEditabilityAndSetFirstResponderIfNecessary] + 376
16 com.apple.UIKitCore 0x0000000122257e63 -[UITextIndirectNonEditableInteraction willBeginGesture] + 128
17 com.apple.UIKitCore 0x0000000121e16573 -[_UIKeyboardBasedNonEditableTextSelectionInteraction oneFingerForcePan:] + 1339
18 com.apple.UIKitCore 0x0000000121aed683 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 49
19 com.apple.UIKitCore 0x0000000121af7904 _UIGestureRecognizerSendTargetActions + 100
20 com.apple.UIKitCore 0x0000000121af41cb _UIGestureRecognizerSendActions + 294
21 com.apple.UIKitCore 0x0000000121af352a -[UIGestureRecognizer _updateGestureForActiveEvents] + 725
22 com.apple.UIKitCore 0x0000000121ae5a72 _UIGestureEnvironmentUpdate + 2652
23 com.apple.CoreFoundation 0x0000000110dfc277 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
24 com.apple.CoreFoundation 0x0000000110df6dae __CFRunLoopDoObservers + 487
25 com.apple.CoreFoundation 0x0000000110df72df __CFRunLoopRun + 1137
26 com.apple.CoreFoundation 0x0000000110df6aba CFRunLoopRunSpecific + 538
27 com.apple.GraphicsServices 0x00000001139fcdb3 GSEventRunModal + 139
28 com.apple.UIKitCore 0x0000000121fa27fe -[UIApplication _run] + 912
29 com.apple.UIKitCore 0x0000000121fa7e1e UIApplicationMain + 1570
30 jkl.TestWebView 0x000000010f793fa2 main + 114 (main.m:17)
31 libdyld.dylib 0x0000000119d4395d start + 1
Thread 1:
I met the same problem.
It seems -[UIInputViewSet restorableResponder] returns a wild pointer. This property is neither weak nor strong.
I added a symbol breakpoint to -[UIInputViewSet restorableResponder] and -[UIInputViewSet setRestorableResponder:], the assembly code shows they have neither store_weak nor store_strong code.
I used a workaround, hook -[UIInputViewSet restorableResponder] and return nil. Maybe it will cause another problem. But after testing it seems work well.

View inside ViewController not updating (IB Designables Error)

Recently I got this error:
Failed to render and update auto layout status for YourViewController (GwR-7s-08s): The agent crashed
I've tried:
Editor > Refresh all views
Delete Derived Data
Delete and Undo my view controller
Restart My Pc
I'm really lost now.
This is what i found from console (~/Library/Logs/DiagnosticReports) IBDesignablesAgent-IOS.crash.
Process: IBDesignablesAgent-iOS [8917]
Path: /Users/USER/Desktop/Xcode (Vers 10.1).app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/IBDesignablesAgent-iOS
Identifier: IBDesignablesAgent-iOS
Version: 10.1 (14460.20)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [696]
Responsible: IBDesignablesAgent-iOS [8917]
User ID: 501
Date/Time: 2020-04-15 18:02:05.468 +0800
OS Version: Mac OS X 10.14.6 (18G103)
Report Version: 12
Bridge OS Version: 4.1 (17P1081)
Anonymous UUID: CBF175F5-90A8-CA46-157A-EAC22B0E9C53
Time Awake Since Boot: 7000 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [8917]
Application Specific Information:
CoreSimulator 681.15 - Device: iPhone 8 (B66229B4-2385-44FD-B679-B71B2306DF10) - Runtime: iOS 12.1 (16B91) - DeviceType: iPhone 8
Fatal error: Unexpectedly found nil while unwrapping an Optional value
Thread 0 Crashed:
0 libswiftCore.dylib 0x0000000226d276f1 specialized _fatalErrorMessage(_:_:file:line:flags:) + 113
1 libswiftCore.dylib 0x0000000226b5d053 _fatalErrorMessage(_:_:file:line:flags:) + 19
2 com.MiCaresvc.MyMed 0x0000000225e03dac UsefulLinksTableViewCell.layoutSubviews() + 268
3 com.MiCaresvc.MyMed 0x0000000225e041f4 #objc UsefulLinksTableViewCell.layoutSubviews() + 36
4 com.apple.UIKitCore 0x000000011d38d795 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1441
5 com.apple.QuartzCore 0x000000010e885b19 -[CALayer layoutSublayers] + 175
6 com.apple.QuartzCore 0x000000010e88a9d3 CA::Layer::layout_if_needed(CA::Transaction*) + 395
7 com.apple.UIKitCore 0x000000011d378077 -[UIView(Hierarchy) layoutBelowIfNeeded] + 1429
8 com.apple.IBCocoaTouchToolFoundation 0x000000010d33d267 -[UITableViewCell(IBCocoaTouchToolIntegration) awakeAfterMarshallerDidEstablishAttributesWithContext:] + 58
9 com.apple.IBCocoaTouchToolFoundation 0x000000010d332248 -[IBCocoaTouchToolObjectPackage initWithRequest:globalMarshallingContext:] + 3391
10 com.apple.IBCocoaTouchToolFoundation 0x000000010d330d91 +[IBCocoaTouchToolObjectPackage objectPackageFromRequest:] + 67
11 com.apple.IBCocoaTouchToolFoundation 0x000000010d333f1e +[IBCocoaTouchToolObjectPackage decodeWithBinaryUnarchiver:] + 106
12 com.apple.dt.IBFoundation 0x000000010e54241c -[IBBinaryUnarchiver decodeObject] + 109
13 com.apple.dt.IBFoundation 0x000000010e5e2e4f -[IBObjectBasedMarshallingRequest initWithBinaryUnarchiver:] + 135
14 com.apple.dt.IBAutolayoutFoundation 0x000000010e4b2f63 -[IBFullSceneUpdateRequest initWithBinaryUnarchiver:] + 65
15 com.apple.dt.IBFoundation 0x000000010e538f05 +[NSObject(IBBinaryArchivingAdditions) decodeWithBinaryUnarchiver:] + 65
16 com.apple.dt.IBFoundation 0x000000010e54241c -[IBBinaryUnarchiver decodeObject] + 109
17 com.apple.dt.IBFoundation 0x000000010e54281d -[IBBinaryUnarchiver decodeObjectReferenceIfPossible] + 74
18 com.apple.dt.IBFoundation 0x000000010e539486 -[NSArray(IBBinaryArchivingAdditions) initWithBinaryUnarchiver:] + 180
19 com.apple.dt.IBFoundation 0x000000010e538f05 +[NSObject(IBBinaryArchivingAdditions) decodeWithBinaryUnarchiver:] + 65
20 com.apple.dt.IBFoundation 0x000000010e54241c -[IBBinaryUnarchiver decodeObject] + 109
21 com.apple.dt.IBFoundation 0x000000010e62e745 -[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:] + 424
22 com.apple.dt.IBFoundation 0x000000010e62e152 __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke + 143
23 libdispatch.dylib 0x00000001167f954b _dispatch_client_callout + 8
24 libdispatch.dylib 0x0000000116806036 _dispatch_async_and_wait_invoke + 109
25 libdispatch.dylib 0x00000001167f954b _dispatch_client_callout + 8
26 libdispatch.dylib 0x0000000116805380 _dispatch_main_queue_callback_4CF + 1290
27 com.apple.CoreFoundation 0x00000001105183e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
28 com.apple.CoreFoundation 0x0000000110512a76 __CFRunLoopRun + 2342
29 com.apple.CoreFoundation 0x0000000110511e11 CFRunLoopRunSpecific + 625
30 com.apple.Foundation 0x000000010eaea322 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
31 com.apple.dt.IBFoundation 0x000000010e5e9c36 -[IBAbstractPlatformTool startServingReceiveChannel:] + 447
32 com.apple.dt.IBFoundation 0x000000010e5e9ef2 -[IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:] + 119
33 com.apple.dt.IBFoundation 0x000000010e5ead9a +[IBAbstractPlatformTool main] + 1211
34 IBDesignablesAgent-iOS 0x000000010d253957 main + 34
35 libdyld.dylib 0x0000000116869575 start + 1

React Native ios: App crashes when it sent to the background

I have a React Native ios app. I'm trying to solve a problem but I couldn't manage to solve it yet.
When I send the app to the background with pressing the home button twice or whenever I pass to another app, app crashes. You can see the video below;
You can see error image with this link
http://sendvid.com/gwoqfybp
Error:
2016-11-08 20:51:58.874 NewsApp[33572:686315] -[RCTDeviceExtension orientationDidChange:]: unrecognized selector sent to instance 0x60000001d100
2016-11-08 20:51:58.884 NewsApp[33572:686315] WARNING: GoogleAnalytics 3.15 void GAIUncaughtExceptionHandler(NSException *) (GAIUncaughtExceptionHandler.m:48): Uncaught exception: -[RCTDeviceExtension orientationDidChange:]: unrecognized selector sent to instance 0x60000001d100
2016-11-08 20:51:59.018 NewsApp[33572:686315] invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
2016-11-08 20:51:59.961503 NewsApp[33572:689959] [] __nw_connection_get_connected_socket_block_invoke 210 Connection has no connected handler
2016-11-08 20:52:03.298381 NewsApp[33572:689437] [] __nw_connection_get_connected_socket_block_invoke 211 Connection has no connected handler
2016-11-08 20:52:04.005 NewsApp[33572:686315] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCTDeviceExtension orientationDidChange:]: unrecognized selector sent to instance 0x60000001d100'
*** First throw call stack:
(
0 CoreFoundation 0x000000010789f34b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000106ccb21e objc_exception_throw + 48
2 CoreFoundation 0x000000010790ef34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x0000000107824c15 ___forwarding___ + 1013
4 CoreFoundation 0x0000000107824798 _CF_forwarding_prep_0 + 120
5 CoreFoundation 0x000000010783d19c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
6 CoreFoundation 0x000000010783d09b _CFXRegistrationPost + 427
7 CoreFoundation 0x000000010783ce02 ___CFXNotificationPost_block_invoke + 50
8 CoreFoundation 0x00000001077ffea2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
9 CoreFoundation 0x00000001077fef3b _CFXNotificationPost + 667
10 Foundation 0x00000001067930ab -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
11 UIKit 0x0000000108d24e3e -[UIApplication _stopDeactivatingForReason:] + 633
12 UIKit 0x0000000108d2c712 __62-[UIApplication _sceneSettingsPostLifecycleEventDiffInspector]_block_invoke.1251 + 107
13 FrontBoardServices 0x000000010bc1a7f5 __52-[FBSSettingsDiffInspector inspectDiff:withContext:]_block_invoke.27 + 231
14 Foundation 0x00000001067f7199 __NSIndexSetEnumerate + 1027
15 BaseBoard 0x000000010be05acb -[BSSettingsDiff inspectChangesWithBlock:] + 116
16 FrontBoardServices 0x000000010bc14354 -[FBSSettingsDiff inspectOtherChangesWithBlock:] + 92
17 FrontBoardServices 0x000000010bc1a598 -[FBSSettingsDiffInspector inspectDiff:withContext:] + 332
18 UIKit 0x0000000108d2d1a8 __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 201
19 UIKit 0x0000000108d2cdea -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 1060
20 UIKit 0x0000000109258676 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 492
21 FrontBoardServices 0x000000010bc0302e __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.376 + 204
22 FrontBoardServices 0x000000010bc31723 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
23 FrontBoardServices 0x000000010bc3159c -[FBSSerialQueue _performNext] + 189
24 FrontBoardServices 0x000000010bc31925 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
25 CoreFoundation 0x0000000107844311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
26 CoreFoundation 0x000000010782959c __CFRunLoopDoSources0 + 556
27 CoreFoundation 0x0000000107828a86 __CFRunLoopRun + 918
28 CoreFoundation 0x0000000107828494 CFRunLoopRunSpecific + 420
29 GraphicsServices 0x000000010b819a6f GSEventRunModal + 161
30 UIKit 0x0000000108d2f964 UIApplicationMain + 159
31 NewsApp 0x0000000102822dcf main + 111
32 libdyld.dylib 0x000000010a70668d start + 1
33 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Solution
Basically problem caused by a Google Analytics plugin. I switched to Fribase Analytics and problem solved!
You need to change the app state and make sure no processes are running like push notifications that won't run in the background. Try to post the code that's running and I will try to change my answer.
getInitialState: function() {
return {
currentAppState: AppState.currentState,
};
},
componentDidMount: function() {
AppState.addEventListener('change', this._handleAppStateChange);
},
componentWillUnmount: function() {
AppState.removeEventListener('change', this._handleAppStateChange);
},
_handleAppStateChange: function(currentAppState) {
this.setState({ currentAppState, });
},
render: function() {
return (
<Text>Current state is: {this.state.currentAppState}</Text>
);
},
read more here for full example and documentation
https://facebook.github.io/react-native/docs/appstate.html

Application crashes when calling native code after upgrade to ios 9.3

Our application uses external library for scanning pdf417 bar code. Application worked ok before iOS 9.3 upgrade. On version 9.3 it crashes when executing native code on this line:
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:cameraViewController animated:YES completion:nil];
this is the output from the xcode console:
Mar 25 12:47:41 iPhone-od-Ratko MobileBankRetail[616] <Warning>: ---- before [UIApplication sharedApplication].keyWindow.rootViewController presentViewController:cameraViewController animated:YES completion:nil
Mar 25 12:47:42 iPhone-od-Ratko MobileBankRetail[616] <Warning>: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
Stack:(
0 CoreFoundation 0x20ef39a3 <redacted> + 150
1 libobjc.A.dylib 0x2068ee17 objc_exception_throw + 38
2 CoreFoundation 0x20ef38d1 <redacted> + 0
3 Foundation 0x217e53c7 <redacted> + 170
4 Foundation 0x21689e4f <redacted> + 38
5 UIKit 0x255662ad <redacted> + 52
6 UIKit 0x25566c93 <redacted> + 222
7 UIKit 0x255838c5 <redacted> + 96
8 UIKit 0x25ca32ef <redacted> + 322
9 UIKit 0x25471e41 <redacted> + 748
10 UIKit 0x25599df1 <redacted> + 936
11 UIKit 0x25618b49 <redacted> + 92
12 UIKit 0x254f2c67 <redacted> + 302
13 UIKit 0x25607337 <redacted> + 130
14 UIKit 0x25497a19 <redacted> + 548
15 UIKit 0x255e6e99 <redacted> + 68
16 UIKit 0x2551f1e9 <redacted> + 536
17 UIKit 0x25466d47 <redacted> + 490
18 UIKit 0x254d85c9 <redacted> + 192
19 UIKit 0x255622bb <redacted> + 70
20 UIKit 0x257ce063 <redacted> + 1490
21 UIKit 0x257cf82b <redacted> + 4346
22 UIKit 0x257d1bc5 <redacted> + 336
23 UIKit 0x257d1e31 <redacted> + 416
24 UIKit 0x25558ce9 <redacted> + 144
25 MobileBankRetail 0x0055b061 -[hr_kaba_bcscanner_NativeScannerImpl scanBarCode] + 448
26 MobileBankRetail 0x0064d9a9 hr_kaba_bcscanner_NativeScannerImplCodenameOne_scanBarCode__ + 32
27 MobileBankRetail 0x0055b82f hr_kaba_bcscanner_NativeScannerStub_scanBarCode__ + 90
28 MobileBankRetail 0x0055aa15 hr_kaba_bcscanner_BCScanner_scanBarCode___com_codename1_codescan_ScanResult + 844
29 MobileBankRetail 0x006bf1e7 userclasses_StateMachine_scan2DBarCode__ + 662
30 MobileBankRetail 0x006bef29 userclasses_StateMachine_onPlacanjaMenu_MultiButtonHUB2DBarCodeAction___com_codename1_ui_Component_com_codename1_ui_events_ActionEvent + 280
31 MobileBankRetail 0x00551597 generated_StateMachineBase_handleComponentAction___com_codename1_ui_Component_com_codename1_ui_events_ActionEvent + 68130
32 MobileBankRetail 0x004bcfed com_codename1_ui_util_UIBuilder_FormListener_actionPerformed___com_codename1_ui_events_ActionEvent + 1300
33 MobileBankRetail 0x0048e4a7 com_codename1_ui_util_EventDispatcher_fireActionEvent___com_codename1_ui_events_ActionEvent + 1154
34 MobileBankRetail 0x001d4b85 com_codename1_ui_Button_fireActionEvent___int_int + 916
35 MobileBankRetail 0x001d4efb com_codename1_ui_Button_released___int_int + 222
36 MobileBankRetail 0x001d58f1 com_codename1_ui_Button_pointerReleased___int_int + 496
37 MobileBankRetail 0x0027bd07 com_codename1_ui_Form_pointerReleased___int_int + 6126
38 MobileBankRetail 0x001ff507 com_codename1_ui_Component_pointerReleased___int_1ARRAY_int_1ARRAY + 386
39 MobileBankRetail 0x00248a51 com_codename1_ui_Display_handleEvent___int_R_int + 12052
40 MobileBankRetail 0x00240f21 com_codename1_ui_Display_edtLoopImpl__ + 1492
41 MobileBankRetail 0x002449fb com_codename1_ui_Display_mainEDTLoop__ + 5110
42 MobileBankRetail 0x00400603 com_codename1_ui_RunnableWrapper_run__ + 3270
43 MobileBankRetail 0x0010e4ef com_codename1_impl_CodenameOneThread_run__ + 282
44 MobileBankRetail 0x005da449 java_lang_Thread_runImpl___long + 556
45 MobileBankRetail 0x0064f469 threadRunner + 40
46 libsystem_pthread.dylib 0x20c2785b <redacted> + 138
47 libsystem_pthread.dylib 0x20c277cf _pthread_start + 110
48 libsystem_pthread.dylib 0x20c25724 thread_start + 8
)
Mar 25 12:47:42 iPhone-od-Ratko MobileBankRetail[616] <Warning>: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
Stack:(
0 CoreFoundation 0x20ef39a3 <redacted> + 150
1 libobjc.A.dylib 0x2068ee17 objc_exception_throw + 38
2 CoreFoundation 0x20ef38d1 <redacted> + 0
3 Foundation 0x217e53c7 <redacted> + 170
4 Foundation 0x217e5253 <redacted> + 38
5 Foundation 0x2168e30b <redacted> + 42
6 Foundation 0x21689f93 <redacted> + 362
7 UIKit 0x255662ad <redacted> + 52
8 UIKit 0x25566c93 <redacted> + 222
9 UIKit 0x255838c5 <redacted> + 96
10 UIKit 0x25ca32ef <redacted> + 322
11 UIKit 0x25471e41 <redacted> + 748
12 UIKit 0x25599df1 <redacted> + 936
13 UIKit 0x25618b49 <redacted> + 92
14 UIKit 0x254f2c67 <redacted> + 302
15 UIKit 0x25607337 <redacted> + 130
16 UIKit 0x25497a19 <redacted> + 548
17 UIKit 0x255e6e99 <redacted> + 68
18 UIKit 0x2551f1e9 <redacted> + 536
19 UIKit 0x25466d47 <redacted> + 490
20 UIKit 0x254d85c9 <redacted> + 192
21 UIKit 0x255622bb <redacted> + 70
22 UIKit 0x257ce063 <redacted> + 1490
23 UIKit 0x257cf82b <redacted> + 4346
24 UIKit 0x257d1bc5 <redacted> + 336
25 UIKit 0x257d1e31 <redacted> + 416
26 UIKit 0x25558ce9 <redacted> + 144
27 MobileBankRetail 0x0055b061 -[hr_kaba_bcscanner_NativeScannerImpl scanBarCode] + 448
28 MobileBankRetail 0x0064d9a9 hr_kaba_bcscanner_NativeScannerImplCodenameOne_scanBarCode__ + 32
29 MobileBankRetail 0x0055b82f hr_kaba_bcscanner_NativeScannerStub_scanBarCode__ + 90
30 MobileBankRetail 0x0055aa15 hr_kaba_bcscanner_BCScanner_scanBarCode___com_codename1_codescan_ScanResult + 844
31 MobileBankRetail 0x006bf1e7 userclasses_StateMachine_scan2DBarCode__ + 662
32 MobileBankRetail 0x006bef29 userclasses_StateMachine_onPlacanjaMenu_MultiButtonHUB2DBarCodeAction___com_codename1_ui_Component_com_codename1_ui_events_ActionEvent + 280
33 MobileBankRetail 0x00551597 generated_StateMachineBase_handleComponentAction___com_codename1_ui_Component_com_codename1_ui_events_ActionEvent + 68130
34 MobileBankRetail 0x004bcfed com_codename1_ui_util_UIBuilder_FormListener_actionPerformed___com_codename1_ui_events_ActionEvent + 1300
35 MobileBankRetail 0x0048e4a7 com_codename1_ui_util_EventDispatcher_fireActionEvent___com_codename1_ui_events_ActionEvent + 1154
36 MobileBankRetail 0x001d4b85 com_codename1_ui_Button_fireActionEvent___int_int + 916
37 MobileBankRetail 0x001d4efb com_codename1_ui_Button_released___int_int + 222
38 MobileBankRetail 0x001d58f1 com_codename1_ui_Button_pointerReleased___int_int + 496
39 MobileBankRetail 0x0027bd07 com_codename1_ui_Form_pointerReleased___int_int + 6126
40 MobileBankRetail 0x001ff507 com_codename1_ui_Component_pointerReleased___int_1ARRAY_int_1ARRAY + 386
41 MobileBankRetail 0x00248a51 com_codename1_ui_Display_handleEvent___int_R_int + 12052
42 MobileBankRetail 0x00240f21 com_codename1_ui_Display_edtLoopImpl__ + 1492
43 MobileBankRetail 0x002449fb com_codename1_ui_Display_mainEDTLoop__ + 5110
44 MobileBankRetail 0x00400603 com_codename1_ui_RunnableWrapper_run__ + 3270
45 MobileBankRetail 0x0010e4ef com_codename1_impl_CodenameOneThread_run__ + 282
46 MobileBankRetail 0x005da449 java_lang_Thread_runImpl___long + 556
47 MobileBankRetail 0x0064f469 threadRunner + 40
48 libsystem_pthread.dylib 0x20c2785b <redacted> + 138
49 libsystem_pthread.dylib 0x20c277cf _pthread_start + 110
50 libsystem_pthread.dylib 0x20c25724 thread_start + 8
)
Mar 25 12:47:42 iPhone-od-Ratko MobileBankRetail[616] <Warning>: *** Assertion failure in -[UIApplication _cachedSystemAnimationFenceCreatingIfNecessary:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.60.7/UIApplication.m:1774
Mar 25 12:47:42 iPhone-od-Ratko MobileBankRetail[616] <Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'accessing _cachedSystemAnimationFence requires the main thread'
*** First throw call stack:
(0x20ef398b 0x2068ee17 0x20ef3861 0x216d7509 0x256fb2a9 0x2574fb0f 0x2551f297 0x25466d47 0x254d85c9 0x255622bb 0x257ce063 0x257cf82b 0x257d1bc5 0x257d1e31 0x25558ce9 0x55b061 0x64d9a9 0x55b82f 0x55aa15 0x6bf1e7 0x6bef29 0x551597 0x4bcfed 0x48e4a7 0x1d4b85 0x1d4efb 0x1d58f1 0x27bd07 0x1ff507 0x248a51 0x240f21 0x2449fb 0x400603 0x10e4ef 0x5da449 0x64f469 0x20c2785b 0x20c277cf 0x20c25724)
Mar 25 12:47:42 iPhone-od-Ratko SpringBoard[166] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Mar 25 12:47:42 iPhone-od-Ratko com.apple.xpc.launchd[1] (UIKitApplication:hr.kaba.mbankretail[0xe600][616]) <Notice>: Service exited due to signal: Abort trap: 6
Mar 25 12:47:42 iPhone-od-Ratko mediaserverd[43] <Notice>: '' hr.kaba.mbankretail(pid = 616) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Mar 25 12:47:42 iPhone-od-Ratko SpringBoard[166] <Warning>: Application 'UIKitApplication:hr.kaba.mbankretail[0xe600]' crashed.
Mar 25 12:47:42 iPhone-od-Ratko UserEventAgent[23] <Warning>: 1112896938070: id=hr.kaba.mbankretail pid=616, state=0
Mar 25 12:47:43 iPhone-od-Ratko ReportCrash[618] <Error>: assertion failed: 13E233: libsystem_trace.dylib + 15927 [2171E90D-32AA-3F60-9692-C2F8E0D4B1A0]: 0x0
Mar 25 12:47:43 iPhone-od-Ratko Unknown[618] <Error>:
Mar 25 12:47:43 iPhone-od-Ratko ReportCrash[618] <Warning>: os_activity_diagnostic_for_pid() failed!
Mar 25 12:47:43 iPhone-od-Ratko ReportCrash[618] <Notice>: Formulating report for corpse[616] MobileBankRetail
Mar 25 12:47:43 iPhone-od-Ratko ReportCrash[618] <Warning>: Saved type '109(109_MobileBankRetail)' report (5 of max 25) at /var/mobile/Library/Logs/CrashReporter/MobileBankRetail-2016-03-25-124743.ips
Mar 25 12:47:47 iPhone-od-Ratko kernel[0] <Notice>: AppleH4CamIn::setPowerStateGated: 0
Mar 25 12:47:47 iPhone-od-Ratko kernel[0] <Notice>: AppleH4CamIn::power_off_hardware
Mar 25 12:49:03 iPhone-od-Ratko com.apple.CDScheduler[23] <Error>: Failed to read UserNextSleepPeriod from contextstore
Mar 25 12:49:03 iPhone-od-Ratko com.apple.CDScheduler[23] <Error>: Failed to get user inactivity forecast
Mar 25 12:49:03 iPhone-od-Ratko com.apple.CDScheduler[23] <Error>: AutoSu doesn't have any prediction yet
Mar 25 12:49:03 iPhone-od-Ratko com.apple.CDScheduler[23] <Error>: Failed to get device restart forecast
Mar 25 12:49:03 iPhone-od-Ratko geocorrectiond[619] <Warning>: /BuildRoot/Library/Caches/com.apple.xbs/Sources/Maps/Maps-1906.50/iOS/geocorrectiond/MCAddressCorrector.m:79 0x14e1a290 _primaryAccount = DA48B5E1-3DB1-48DD-BEBA-739BAAC6BB6F personID = 1717754467 mapsToken = AQAAAABW9GfKzmxjlhvjb0VGYzq7LGFn161Mqyw~
Mar 25 12:49:03 iPhone-od-Ratko geocorrectiond[619] <Warning>: /BuildRoot/Library/Caches/com.apple.xbs/Sources/Maps/Maps-1906.50/iOS/geocorrectiond/MCAddressCorrector.m:120 0x14e1a290 startProcessing - failed. Too early. LastRunTime 480545405.295504 CurrentTime 480599343.342015 shouldRunAfter 481150205.295504
Mar 25 12:49:48 iPhone-od-Ratko syslogd[22] <Notice>: ASL Sender Statistics
Does anyone knows what could be causing the problem?
As the error says: you are modifying the autolayout engine from a background thread. You should use the main thread/queue:
dispatch_async(dispatch_get_main_queue(), ^{
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:cameraViewController animated:YES completion:nil];
});
The first part of the problem was solved using main thread as Tapani and Larme said.
dispatch_async(dispatch_get_main_queue(), ^{
//some code here..
});
The second part of the problem (failed build on codenameone server) was solved by using
[[CodenameOne_GLViewController instance] presentViewController:cameraViewController animated:YES completion:nil];
instead of
[[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:cameraViewController animated:YES completion:nil];
Thans everybody for the effort!

Resources