arcore-unity-extensions
arcore-unity-extensions copied to clipboard
Persistent cloud anchors ios xcode crash when trying to host
I get an app crash when clicking on the begin hosting button in the Persistent Cloud anchors sample. I am running version 1.34.0, ARFoundation 4.2.7.
I am running on unity 2021.3.15f and Xcode 14.1. I am going to try unity 2019.
Any idea what could be wrong?
This is the stack from Xcode
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[GARDeviceProfile profileForIdentifier:osVersion:configurationManager:]: unrecognized selector sent to class 0x10be24310' *** First throw call stack: (0x18043e288 0x199138744 0x18051bef4 0x1803d2e98 0x1803d1f70 0x10a61d174 0x10a61cd78 0x10a61ca5c 0x10a61e750 0x10b5ec784 0x10b5ec570 0x10b5e65d4 0x10b5e69a0 0x10b0bf6f4 0x10b0bf554 0x10a7f521c 0x10a800c90 0x10a811d94 0x10a8117dc 0x10a847608 0x10a8474d0 0x10a686084 0x10a6421c0 0x10b6b0848 0x10b1f198c 0x10b7587e4 0x10b757dc8 0x10b757b0c 0x10b0bf6f4 0x10b0bf554 0x10a7f521c 0x10a800c90 0x10a80fb08 0x10a69f0c8 0x10a734e40 0x10a734e80 0x10a7350dc 0x10abe5bf4 0x10a4e97f8 0x10a4e9788 0x1840f1d40 0x1840f8d70 0x1803afbf0 0x1803f3258 0x1803f6a64 0x1803b0664 0x1803c3bc8 0x19c4f7374 0x182d33648 0x182ab4d90 0x10a4e932c 0x104f7bccc 0x10528dce4) libc++abi: terminating with uncaught exception of type NSException dyld4 config: DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[GARDeviceProfile profileForIdentifier:osVersion:configurationManager:]: unrecognized selector sent to class 0x10be24310'
The solution was to download the external dependency manager unity package from this link. When importing, it will throw an error in the console saying that there is a conflict with the dependency manager which is included in the extensions package.
To remove it, go into packages -> ARCore Extensions -> Editor, right click on 'reveal in finder' and manually delete the folder called 'ExternalDependencyManager'. Unity will recreate the folder immediately but it will be empty and the issue should be solved. It worked for me.