Posts

Post not yet marked as solved
1 Replies
1.1k Views
Hi there, Is any way to detect if the device supports Center Stage? Now we have some properties that Apple presented: class var centerStageControlMode: AVCaptureDevice.CenterStageControlMode { get set } okay, it means that we can change centerStage mode but what's the point if device doesn't support it? var isCenterStageActive: Bool { get } class var isCenterStageEnabled: Bool { get set } it's fine we can set and get stage status But what if you wanna change it in your app? You give us a way to set enabled state that's why I'm trying to give user a possibility to change it in-app. How can I detect if the device supports it? Now only 1 idea to check current or all AVCaptureDevices, if at least one is wide-angle camera - it can be assumed that the feature is supported. But how true is this?
Posted
by Instinct.
Last updated
.
Post not yet marked as solved
0 Replies
1.6k Views
Hi, for a long time I can't detect a reason why my app is crashing. I just see a crash without detailed stack trace: [6799:2715220] * Assertion failure in -[FBSSerialQueue assertOnQueue], /Library/Caches/com.apple.xbs/Sources/FrontBoardServices/FrontBoard-626.8/FrontBoardServices/FBSSerialQueue.m:98 2020-08-10 11:42:08.779089+0300 [6799:2715220] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'threading violation: expected the main thread' ** First throw call stack: (0x1a43d1344 0x1a40e6cc0 0x1a42ce878 0x1a4720160 0x1a965fc60 0x1a9612718 0x1a961299c 0x1a961289c 0x1a80523d4 0x1a814f734 0x1a81504b4 0x104b69e0c 0x10505205c 0x1050534d8 0x10505ac20 0x10505b834 0x105067270 0x1a40d9718 0x1a40df9c8) Okay, it's a classic problem when we change UI not in the main thread, but it doesn't look like. I fount last backtrace: Application Specific Information:** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'threading violation: expected the main thread' Last Exception Backtrace: 0	 CoreFoundation											 0x000000018f118794 __exceptionPreprocess + 224 1	 libobjc.A.dylib											0x000000018ee3abcc objc_exception_throw + 52 2	 CoreFoundation											 0x000000018f01b82c +[NSException raise:format:arguments:] + 92 3	 Foundation													 0x000000018f45316c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 124 4	 FrontBoardServices									 0x00000001942d7e84 -[FBSSerialQueue assertOnQueue] + 224 5	 FrontBoardServices									 0x000000019428dd88 -[FBSSceneImpl updateClientSettings:withTransitionContext:] + 72 6	 FrontBoardServices									 0x000000019428dfe8 -[FBSSceneImpl updateClientSettingsWithTransitionBlock:] + 148 7	 FrontBoardServices									 0x000000019428def8 -[FBSSceneImpl updateClientSettingsWithBlock:] + 108 8	 UIKitCore														0x0000000192d367b4 -[FBSScene(UIApp) updateUIClientSettingsWithBlock:] + 164 9	 UIKitCore														0x0000000192e2dad0 -[UIDevice(Private) _enableDeviceOrientationEvents:] + 136 10	UIKitCore														0x0000000192e2e788 -[UIDevice endGeneratingDeviceOrientationNotifications] + 52 11	WebRTC															 0x0000000104895e0c 0x0000000104834000 + 400908 12	libdispatch.dylib										0x000000018eddd9a8 _dispatch_call_block_and_release + 20 13	libdispatch.dylib										0x000000018edde524 _dispatch_client_callout + 12 14	libdispatch.dylib										0x000000018ed8a8a4 _dispatch_lane_serial_drain$VARIANT$mp + 604 15	libdispatch.dylib										0x000000018ed8b294 _dispatch_lane_invoke$VARIANT$mp + 412 16	libdispatch.dylib										0x000000018ed9478c _dispatch_workloop_worker_thread + 584 17	libsystem_pthread.dylib							0x000000018ee2fb74 _pthread_wqthread + 268 18	libsystem_pthread.dylib							0x000000018ee32740 start_wqthread + 4 I noticed 5 line in a trace, looks like something in a private framework (FrontBoardServices or FBS) called in an incorrect thread. By this method prototype I think that I'm changing status bar appearance (anyway it's UI). Am I right? How can I detect a crash line where I changed UI or do anybody know another this crash reason? I turned on main thread checker but also it doesn't work. Thanks,
Posted
by Instinct.
Last updated
.
Post not yet marked as solved
0 Replies
516 Views
Hello!Using UIImagePickerController with allowsEditing = true select high resolution photo 4K and higher (downloaded from internet) and zoom in as much as possible.For current iOS 13.2.2 will called delegate function imagePickerControllerDidCancelFor iOS 13.0, 13.1 app will freezed. Check it please,If you have the same problem can you tell me why it's happening?Regards,
Posted
by Instinct.
Last updated
.