Started working on a photo editing extension in Xcode. no matter what I do whenever I select my extension to edit a photo the app crashes with the following error.
After finding the solution for hours only thing I got was to uninstall and restart the app, but that too didn’t work.
The following is the screenshot of the error.
EDIT:
This is the console output after the app stops working:
*** First throw call stack:
(
0 CoreFoundation 0x0000000118374fba __exceptionPreprocess + 242
1 libobjc.A.dylib 0x000000010eb52ff5 objc_exception_throw + 48
2 CoreFoundation 0x0000000118383d2f +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00000001183794cf ___forwarding___ + 1455
4 CoreFoundation 0x000000011837b7a8 _CF_forwarding_prep_0 + 120
5 ExtensionKit 0x00000001261654ab -[EXExtensionContextImplementation _willPerformHostCallback:] + 172
6 ExtensionKit 0x00000001261679f1 __112-[EXConcreteExtensionContextVendor _beginRequestWithExtensionItems:listenerEndpoint:withContextUUID:completion:]_block_invoke + 988
7 libdispatch.dylib 0x000000011959a70d _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x000000011959b8df _dispatch_client_callout + 8
9 libdispatch.dylib 0x00000001195a1e15 _dispatch_lane_serial_drain + 715
10 libdispatch.dylib 0x00000001195a298c _dispatch_lane_invoke + 400
11 libdispatch.dylib 0x00000001195acf81 _dispatch_workloop_worker_thread + 772
12 libsystem_pthread.dylib 0x0000000119a6945d _pthread_wqthread + 314
13 libsystem_pthread.dylib 0x0000000119a6842f start_wqthread + 15
)
libc++abi: terminating with uncaught exception of type NSException
_LSContextInitReturningError() failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }}
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSXPCDistantObject ___nsx_pingHost:]: unrecognized selector sent to instance 0x600002bfcfa0'
using thread backtrace command, This is the console output:
* thread #5, queue = 'com.apple.extension.global-state-queue', stop reason = signal SIGABRT
* frame #0: 0x00000001199ed92e libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x0000000119a6c5bd libsystem_pthread.dylib`pthread_kill + 263
frame #2: 0x0000000119759cb5 libsystem_c.dylib`abort + 120
frame #3: 0x00000001193a9692 libc++abi.dylib`abort_message + 241
frame #4: 0x000000011939adfd libc++abi.dylib`demangling_terminate_handler() + 266
frame #5: 0x000000010eb38ace libobjc.A.dylib`_objc_terminate() + 96
frame #6: 0x00000001193a8aa7 libc++abi.dylib`std::__terminate(void (*)()) + 8
frame #7: 0x00000001193a8a49 libc++abi.dylib`std::terminate() + 41
frame #8: 0x000000010eb5315e libobjc.A.dylib`objc_terminate + 9
frame #9: 0x000000011959b8f3 libdispatch.dylib`_dispatch_client_callout + 28
frame #10: 0x00000001195a1e15 libdispatch.dylib`_dispatch_lane_serial_drain + 715
frame #11: 0x00000001195a298c libdispatch.dylib`_dispatch_lane_invoke + 400
frame #12: 0x00000001195acf81 libdispatch.dylib`_dispatch_workloop_worker_thread + 772
frame #13: 0x0000000119a6945d libsystem_pthread.dylib`_pthread_wqthread + 314
frame #14: 0x0000000119a6842f libsystem_pthread.dylib`start_wqthread + 15