google-ar / arcore-unity-extensions

Google ARCore Extensions and Geospatial Creator for Unity's AR Foundation
Other
354 stars 96 forks source link

Undefined symbols for architecture arm64: _ExternApi_ArAnchor_getTerrainAnchorState #85

Open halfspacer opened 2 years ago

halfspacer commented 2 years ago

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

Iketaki commented 2 years ago

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.

jrullman commented 2 years ago

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