We created an IOS application. This application is important and developed using AGSRuntimeSDKiosv10.2.5.pkg. It worked fine so far but crashing at "self.view.layoutIfNeeded()" function call in IOS 15.x. Below is the code snippet and error message where it crash, quick help will be appreciated.
Error Mesage:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SMPAgentryClientGISEsri.SymbolsViewController collectionView:numberOfItemsInSection:]: unrecognized selector sent to instance 0x1247375d0'
terminating with uncaught exception of type NSException
(lldb)
Code
func animateContainer(_ toolContainerType: ToolContainerType)
if let containerModel = self.toolHelper.getContainerModel(toolContainerType)
self.view.layoutIfNeeded()
//UIView.animate(withDuration: 0.5, animations:
// containerModel.animateContainer()
// self.view.layoutIfNeeded()
//)
self.setButtonActive(toolContainerType)