banchichen / TZImagePickerController

一个支持多选、选原图和视频的图片选择器,同时有预览、裁剪功能,支持iOS6+。 A clone of UIImagePickerController, support picking multiple photos、original photo、video, also allow preview photo and video, support iOS6+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

第一次打开弹出提示会闪退

WeiCY opened this issue · comments

commented

咨询前必看
请先回答下列三个问题,否则不允处理,谢谢配合。
1、我最新的Demo是否有这个bug?【如果Demo没问题,请升级新版
答:没有

2、你用的是什么版本?升级到最新版后是否正常?
答:最新版

3、是否有改动过我库内部的代码?【如有,请说明改动点
答:没有

您好,我遇到了一个问题,手机系统15.2 在第一次进入 提示相册权限的时候就会闪退。真机和模拟器都会遇到。我看到报错是在下面的图上,原因是空值。
image
image
我打开后看了下貌似是多语言设置弄出来的问题。但是我已经添加了简体中文的语言包,还设置了china。还是会有这个问题,之前没有遇到过。请问这是什么原因造成的。
image
image

错误信息如下:
2022-01-05 16:23:28.470284+0800 ZhongFangAPP[38568:698476] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff203feba4 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff201a1be7 objc_exception_throw + 48
2 Foundation 0x00007fff20838881 _NSDescriptionWithLocaleFunc + 0
3 Foundation 0x00007fff20831568 +[NSString stringWithFormat:] + 153
4 TZImagePickerController 0x00000001071b88cf -[TZImagePickerController initWithMaxImagesCount:columnNumber:delegate:pushPhotoPickerVc:] + 1375
5 ZhongFangAPP 0x0000000106992191 -[WorkOrderDetaiDealTableViewCell pushTZImagePickerController] + 273
6 ZhongFangAPP 0x0000000106992057 -[WorkOrderDetaiDealTableViewCell collectionView:didSelectItemAtIndexPath:] + 151
7 UIKitCore 0x00007fff2469c5d8 -[UICollectionView _selectItemAtIndexPath:animated:scrollPosition:notifyDelegate:deselectPrevious:performCustomSelectionAction:] + 941
8 UIKitCore 0x00007fff246d0913 -[UICollectionView _userSelectItemAtIndexPath:] + 194
9 UIKitCore 0x00007fff246d0bb2 -[UICollectionView touchesEnded:withEvent:] + 656
10 UIKitCore 0x00007fff2508ff8b forwardTouchMethod + 321
11 UIKitCore 0x00007fff2508ff8b forwardTouchMethod + 321
12 UIKitCore 0x00007fff24b27a22 _UIGestureEnvironmentUpdate + 9184
13 UIKitCore 0x00007fff24b251ba -[UIGestureEnvironment _updateForEvent🪟] + 902
14 UIKitCore 0x00007fff250a2d03 -[UIWindow sendEvent:] + 5267
15 UIKitCore 0x00007fff250795b6 -[UIApplication sendEvent:] + 819
16 UIKitCore 0x00007fff2510f4ef __dispatchPreprocessedEventFromEventQueue + 8683
17 UIKitCore 0x00007fff25111c75 __processEventQueue + 8579
18 UIKitCore 0x00007fff25108427 __eventFetcherSourceCallback + 240
19 CoreFoundation 0x00007fff2036ce15 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
20 CoreFoundation 0x00007fff2036cd0d __CFRunLoopDoSource0 + 180
21 CoreFoundation 0x00007fff2036c1e2 __CFRunLoopDoSources0 + 242
22 CoreFoundation 0x00007fff20366941 __CFRunLoopRun + 875
23 CoreFoundation 0x00007fff203660f3 CFRunLoopRunSpecific + 567
24 GraphicsServices 0x00007fff2c995cd3 GSEventRunModal + 139
25 UIKitCore 0x00007fff25059f42 -[UIApplication _run] + 928
26 UIKitCore 0x00007fff2505eb5e UIApplicationMain + 101
27 ZhongFangAPP 0x0000000106995766 main + 118
28 dyld 0x0000000106a15ee9 start_sim + 10
29 ??? 0x0000000000000001 0x0 + 1
)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/weichenyang/Library/Developer/Xcode/DerivedData/ZhongFangAPP-bmgtzmkzkiiofkfgndmqivibznqm/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/weichenyang/Library/Developer/Xcode/DerivedData/ZhongFangAPP-bmgtzmkzkiiofkfgndmqivibznqm/Build/Products/Debug-iphonesimulator
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument'
terminating with uncaught exception of type NSException
CoreSimulator 783.5 - Device: iPhone 13 Pro (46E8D419-8EB6-4BDA-BC05-0B0231BE2CB9) - Runtime: iOS 15.2 (19C51) - DeviceType: iPhone 13 Pro
(lldb)