apple/iOS

image_picker crashes when picking images on simulator running on Apple Silicon M1

lgvv 2021. 5. 26. 02:42

image_picker crashes when picking images on simulator running on Apple Silicon M1

 

 

시뮬레이터에서 포토 라이브러리를 사용하는데 에러가 발생.

실기기에서만 되고, 시뮬에서는 안되는 문제가 발생했지만 인터넷 찾아보니 

 

2021년 5월 26일 기준으로는 아직까지 문제가 해결되지는 않은듯.

 

근데 예전에는 되었던건데, 갑자기 시뮬에서 안되던거라, 조금 있으면 고쳐질거 같기도 하다.

이 문제는 인텔맥에서 확인결과 나타나는 않는 것으로 확인되었다.

<NSXPCConnection: 0x60000016a080> connection on anonymousListener or serviceListener from pid 17615: Warning: Exception caught during invocation of selector didSelectMediaWithInfoDictionary:, dropping incoming message and invalidating the connection.
Exception: * -[NSURL URLByAppendingPathExtension:]: component, components, or pathExtension cannot be nil.
* -[NSURL URLByAppendingPathExtension:]: component, components, or pathExtension cannot be nil.
(
0 CoreFoundation 0x00007fff20421af6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48
2 Foundation 0x00007fff20860900 -[NSURL(NSURLPathUtilities) URLByDeletingPathExtension] + 0
3 PhotosUI 0x00007fff3faf656a -[PUPhotoPickerExtensionHostContext _UIImagePickerControllerInfoDictionaryFromPhotoPickerInfoDictionary:] + 2177
4 PhotosUI 0x00007fff3faf5b5b -[PUPhotoPickerExtensionHostContext didSelectMediaWithInfoDictionary:] + 34
5 Foundation 0x00007fff209290e3 __NSXPCCONNECTION_IS_CALLING_OUT_TO_EXPORTED_OBJECT_S1__ + 10
6 Foundation 0x00007fff20927e1b -[NSXPCConnection _decodeAndInvokeMessageWithEvent:flags:] + 2268
7 Foundation 0x00007fff20929412 message_handler + 206
8 libxpc.dylib 0x00007fff20055cac _xpc_connection_call_event_handler + 56
9 libxpc.dylib 0x00007fff2005603e _xpc_connection_mach_event + 905
10 libdispatch.dylib 0x000000010c73ba68 _dispatch_client_callout4 + 9
11 libdispatch.dylib 0x000000010c755ba8 _dispatch_mach_msg_invoke + 550
12 libdispatch.dylib 0x000000010c7420ad _dispatch_lane_serial_drain + 307
13 libdispatch.dylib 0x000000010c756a76 _dispatch_mach_invoke + 563
14 libdispatch.dylib 0x000000010c7420ad _dispatch_lane_serial_drain + 307
15 libdispatch.dylib 0x000000010c742f9d _dispatch_lane_invoke + 493
16 libdispatch.dylib 0x000000010c74ede2 _dispatch_workloop_worker_thread + 882
17 libsystem_pthread.dylib 0x00007fff61167499 _pthread_wqthread + 314
18 libsystem_pthread.dylib 0x00007fff61166467 start_wqthread + 15