Posts

Post not yet marked as solved
0 Replies
213 Views
Team, we have recently enabled universal links for our app. And our customers started facing one issue during the login flow. For login we generally open a web view inside the app with /login url Our login process can be configured with different IDPs, which takes care of authentication and once the authentication is done, IDP gives a callback to our server /callback. Once the callback succeeds, web view closes and we receive a token using deeplink of our app. (app://code) But for some IDPs the callback made to our domain /callback is received by the app and the login process stops in between. It doesn't happen for all the IDPs, so I am not sure what is going wrong. From what I know, in case of universal link redirection calls shouldn't open the app and should have been continued in browser then why we are receiving the automatic redirection calls to the app. Is there any response header in the redirection call that decides whether to open the url in web or app?
Posted Last updated
.
Post marked as solved
6 Replies
1.1k Views
The app crashes with Thread 1: EXCBADINSTRUCTION (code=EXCI386INVOP, subcode=0x0) when I add the instance of the below mentioned view as subview to any VC's view. Reason : the lblContainer gets deallocated after being assigned by a local var object . The crash doesn't reproduce when I use a let variable to create the view and assign it to lblContainer. class HorizontalViewMore: UIView {     private weak var lblContainer : UIView!     override init(frame: CGRect) {        	 super.init(frame: frame)        	 createViews() 		}        required init?(coder aDecoder: NSCoder) {         fatalError("init(coder:) has not been implemented") 		}        func createViews() { //it crashes only when the object is declared as var not let         var view : UIView = UIView.init(frame: CGRect.zero)         self.lblContainer = view;         self.lblContainer.isUserInteractionEnabled = false	 //it often crashes here with //Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)         self.lblContainer.translatesAutoresizingMaskIntoConstraints = false;         self.addSubview(self.lblContainer)         self.lblContainer.backgroundColor = UIColor.clear;         self.lblContainer.centerXAnchor.constraint(equalTo: self.centerXAnchor).isActive = true;         self.lblContainer.centerYAnchor.constraint(equalTo: self.centerYAnchor).isActive = true;         self.lblContainer.leftAnchor.constraint(greaterThanOrEqualTo: self.leftAnchor, constant: 8.0).isActive = true         self.lblContainer.rightAnchor.constraint(lessThanOrEqualTo: self.rightAnchor, constant: -8.0).isActive = true 		}    deinit {         print("MemTest : HorizontalViewMore is deinitialized")     } } Also the crash happens only in the optimised builds compiled with Xcode version above 11.3. The optimisation settings are : Apple CLang Code Generation Optimization Level: Fastest, Smallest [-Os] Swift Compiler - Code Generation Optimization Level: Optimize for speed [-O] You can find my sample project here - https://github.com/KirtyKumari/VarLetTest Could anyone please explain this behaviour to me ?
Posted Last updated
.
Post not yet marked as solved
0 Replies
413 Views
I want to implement content search for multiple webviews present in a container (ScrollView). I have added the NSTextFinder instance to each webView making it as a client and findbarContainer as enclosing ScrollViewSo its searching only in the current webview.Is it possible to add a NSTextFinder object common to all webviews inside the container just like Apple's Native Mail Client?Please let me if I have to implement NSTextFInderClient for the container and how to implement that as I am unable to find any reference regarding that.
Posted Last updated
.
Post not yet marked as solved
0 Replies
396 Views
1) While loading an .ics file in QLPreviewView, I get a crash stating Assertion failure (_visibility == QLPreviewHiddenVisibilityState) - [QLPreviewDocument item: <ZohoMail.ZQLPreviewItem:> loaded url /Users/*/137797169343110040.ics] visibility of QLRemoteDisplayBundle 137797169343110040.ics should be hidden when deactivating (not shown)#1 pthread_kill ()#2 abort ()#3 _QLCrash ()#4 _QLRaiseAssert ()#5 -[QLDisplayBundle deactivate] ()#6 -[QLRemoteDisplayBundle deactivate] ()#7 -[QLPreviewDocument _didEndLoading] ()#8 -[QLPreviewDocument _loadPreviewSucceeded] ()#9 -[QLPreviewDocument _loadWithDisplayBundleID:hints:remoteMode:] ()#10 -[QLPreviewDocument _loadDisplayBundleID:withLastError:hints:] ()#11 QLTryCatchAndCrash(void () block_pointer) ()#12 dispatch_call_block_and_release ()#13 _dispatch_client_callout ()#14 _dispatch_main_queue_callback_4CF ()#15 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()#16 __CFRunLoopRun ()#17 CFRunLoopRunSpecific ()#18 RunCurrentEventLoopInMode ()#19 ReceiveNextEventCommon ()#20 _BlockUntilNextEventMatchingListInModeWithFilter ()#21 _DPSNextEvent ()#22 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] ()#23 -[NSApplication run] ()#24 NSApplicationMain ()#25 main2) In case of PDF, encountered the following crash *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: isfinite(newKnobProportion)'*** First throw call stack:( 0 CoreFoundation 0x00007fff2fbcd43d __exceptionPreprocess + 256 1 libobjc.A.dylib 0x00007fff5badf720 objc_exception_throw + 48 2 CoreFoundation 0x00007fff2fbe808e +[NSException raise:format:arguments:] + 98 3 Foundation 0x00007fff31f8455d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194 4 AppKit 0x00007fff2d0c6911 -[NSScrollerImp setKnobProportion:] + 422 5 QuickLookUI 0x00007fff3aa517d2 -[QLScrollerLayer setKnobProportion:] + 80 6 Foundation 0x00007fff31e70fa3 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] + 694 7 Foundation 0x00007fff31e70cd0 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 68 8 Foundation 0x00007fff31f26925 _NSSetDoubleValueAndNotify + 260 9 AppKit 0x00007fff2d16a05d -[NSObjectParameterBinder _updateObject:observedController:observedKeyPath:context:] + 1687 10 Foundation 0x00007fff31e721b6 NSKeyValueNotifyObserver + 346 11 Foundation 0x00007fff31e71c22 NSKeyValueDidChange + 481 12 Foundation 0x00007fff32001868 NSKeyValueDidChangeWithPerThreadPendingNotifications.llvm.15835543126851482145 + 143 13 AppKit 0x00007fff2d0b00ab -[NSView didChangeValueForKey:] + 144 14 QuickLookUI 0x00007fff3a9a527c -[QLPreviewView _setDisplayable:transition:] + 1775 15 QuickLookUI 0x00007fff3a99eb7c -[QLPreviewView _updateDisplayableWithTransition:] + 208 16 QuickLookUI 0x00007fff3a9a89a4 -[QLPreviewDocument _didEndLoading] + 357 17 QuickLookUI 0x00007fff3a9a87e8 -[QLPreviewDocument _loadPreviewSucceeded] + 253 18 QuickLookUI 0x00007fff3a9ef41d -[QLDisplayBundle didLoad] + 251 19 Text 0x000000011cf3bc5d Text + 19549 20 libdispatch.dylib 0x0000000109d0671b _dispatch_call_block_and_release + 12 21 libdispatch.dylib 0x0000000109d077f3 _dispatch_client_callout + 8 22 libdispatch.dylib 0x0000000109d163c0 _dispatch_main_queue_callback_4CF + 1909 23 CoreFoundation 0x00007fff2fb14147 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 24 CoreFoundation 0x00007fff2fb13856 __CFRunLoopRun + 2335 25 CoreFoundation 0x00007fff2fb12ce4 CFRunLoopRunSpecific + 463 26 HIToolbox 0x00007fff2edac895 RunCurrentEventLoopInMode + 293 27 HIToolbox 0x00007fff2edac5cb ReceiveNextEventCommon + 618 28 HIToolbox 0x00007fff2edac348 _BlockUntilNextEventMatchingListInModeWithFilter + 64 29 AppKit 0x00007fff2d06995b _DPSNextEvent + 997 30 AppKit 0x00007fff2d0686fa -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362 31 AppKit 0x00007fff2d06275d -[NSApplication run] + 699 32 AppKit 0x00007fff2d051e97 NSApplicationMain + 780 33 Zoho Mail 0x0000000100e8982d main + 13 34 libdyld.dylib 0x00007fff5cbad085 start + 1)libc++abi.dylib: terminating with uncaught exception of type NSExceptionif anybody aware of these crashes , please let me know, I am not able to find the exact root cause for these crashes.Thanks
Posted Last updated
.