The crash position stopped at @UIApplicationMain, and printed following log in console.
invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
libc++abi.dylib: terminate_handler unexpectedly threw an exception
Present code is
let imagePicker = ELCImagePickerController(imagePicker: ())
imagePicker?.mediaTypes = [ALAssetTypePhoto]
imagePicker?.onOrder = true
imagePicker?.maximumImagesCount = canSelectPhotoNum
imagePicker?.imagePickerDelegate = self
imagePicker?.navigationBar.barTintColor = ColorMainTheme
imagePicker?.navigationBar.tintColor = UIColor.white
imagePicker?.navigationBar.titleTextAttributes = [NSFontAttributeName: self.titleLabel.font, NSForegroundColorAttributeName: imagePicker?.navigationBar.tintColor]
imagePicker?.navigationItem.title = StrPhoto
self.present(imagePicker!, animated: true, completion: nil)