arcore-unity-extensions icon indicating copy to clipboard operation
arcore-unity-extensions copied to clipboard

Undefined symbols for architecture arm64: _ExternApi_ArAnchor_getTerrainAnchorState

Open halfspacer opened this issue 2 years ago • 2 comments

After updating to v 1.33, the XCode build now fails with Undefined symbols for architecture arm64: "_ArAnchor_getTerrainAnchorState", referenced from: _ExternApi_ArAnchor_getTerrainAnchorState_m9DCE274180FAB534002A2D9F9C2F3BF7F8F92DF1 in Google.XR.ARCoreExtensions.o (maybe you meant: _ExternApi_ArAnchor_getTerrainAnchorState_m9DCE274180FAB534002A2D9F9C2F3BF7F8F92DF1) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

2021 MacBook Pro M1 (12.5.1) XCode (13.4.1) Built from Unity 2021.3.8f1

halfspacer avatar Aug 25 '22 11:08 halfspacer

I faced the same problem too and found the package versions in the following file:

Assets/ExtensionAssets/Editor/ARCoreiOSDependencies.xml
Assets/ExtensionAssets/Editor/ARCoreiOSGeospatialDependencies.xml
ProjectSettings/ARCoreExtensionsProjectSettings.json

Replacing these to 1.33.0, it worked.

Maybe I missing something, but the correct update process is needed in the README or other place.

Iketaki avatar Aug 25 '22 18:08 Iketaki

After updating the Unity plugin, you can delete the ExtensionAssets/ folder and the contents will be re-generated.

jrullman avatar Aug 25 '22 23:08 jrullman