Azure-docs: Lots of "Undefined symbols for architecture arm64" when building in Xcode

Created on 17 May 2019  Â·  10Comments  Â·  Source: MicrosoftDocs/azure-docs

By following exactly the documentation here, after clicking "Build" in Xcode, the following Buildtime errors occur:

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ARObjectScanningConfiguration", referenced from:
objc-class-ref in ARKitNativeObjectDetection.o
"_OBJC_CLASS_$_AREnvironmentProbeAnchor", referenced from:
objc-class-ref in ARSessionNative.o
objc-class-ref in AREnvironmentProbe.o
"_OBJC_CLASS_$_AROrientationTrackingConfiguration", referenced from:
objc-class-ref in ARSessionNative.o
"_OBJC_CLASS_$_ARWorldTrackingConfiguration", referenced from:
objc-class-ref in ARSessionNative.o
"_OBJC_CLASS_$_ARImageAnchor", referenced from:
objc-class-ref in ARSessionNative.o
"_OBJC_CLASS_$_ARSession", referenced from:
objc-class-ref in ARSessionNative.o
"_OBJC_CLASS_$_ARReferenceObject", referenced from:
objc-class-ref in ARWorldMap.o
objc-class-ref in ARSessionNative.o
objc-class-ref in AREnvironmentProbe.o
objc-class-ref in ARKitNativeObjectDetection.o
"_ssc_get_error_details", referenced from:
_NativeLibrary_ssc_get_error_details_m1D0CB3B71927A18E6B7A00CDF2DF071DB5970C69 in Assembly-CSharp.o
(maybe you meant: _NativeLibrary_ssc_get_error_details_m1D0CB3B71927A18E6B7A00CDF2DF071DB5970C69)
"_ssc_near_anchor_criteria_create", referenced from:
_NativeLibrary_ssc_near_anchor_criteria_create_m5DB31872248D53FC51782BB1374EBC9DD51AB074 in Assembly-CSharp.o
_NearAnchorCriteria__ctor_mAF01DEF96672EA4191A2AE9C2824E2DBF6245C3E in Assembly-CSharp.o
(maybe you meant: _NativeLibrary_ssc_near_anchor_criteria_create_m5DB31872248D53FC51782BB1374EBC9DD51AB074)
"_ssc_near_anchor_criteria_set_distance_in_meters", referenced from:
_NativeLibrary_ssc_near_anchor_criteria_set_distance_in_meters_mE933C601DB873A630ACE4AFE74BC48A448D04A65 in Assembly-CSharp.o

... it goes long way with the errors above.

Is there any missing libraries or trick in Xcode to build this App to an iPhone 8 device?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

azure-spatial-anchorsvc cxp product-question triaged

Most helpful comment

Actually, it seems like ASA has some pod update steps that are missing from SpectatorView's documentation. Using the xcode workspace compared to the xcode project + running the pod install steps described in the ASA documentation seems to unblock.

All 10 comments

Thanks for the feedback! We are currently investigating and will update you shortly.

@marcelohsilva Are you still facing this issue? Unity Version you are using? Did you install cocoapods as described in the tutorial? Also are you opening the project in Xcode by opening the .xcodeproj file instead of the .xcworkspace file?

@marcelohsilva Do you have any updates?

@marcelohsilva Do you have any updates?

Hello Alberto, I figured out I'm using a Beta version of Unity. I'll give it a new try tonight with the official 2019.1 version.

Please, feel free to close this topic as Unity Beta version does not apply in this context.

Thanks for the feedback.

@marcelohsilva Our current recommendation is to stick with Unity 2018.3, as stated in the guide, until we officially support Unity 2019.

Hi @marcelohsilva I am glad to hear that you figured out the issue? @craigktreasure Thanks for the help. We will now proceed to close this issue

I'm experiencing this same issue when building MixedReality-SpectatorView with ASA support. I have been using our platform switcher that seems to configure things correctly when ASA is removed from the project:

https://github.com/microsoft/MixedReality-SpectatorView/blob/68874ae626d99bad80d1edf7d1fe236d2a297604/src/SpectatorView.Unity/Assets/SpectatorView.Editor/Scripts/PlatformSwitcherEditor.cs#L48
EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.iOS, BuildTarget.iOS);
PlayerSettings.iOS.cameraUsageDescription = "Camera required for AR Foundation";
PlayerSettings.defaultInterfaceOrientation = UIOrientation.Portrait; // Currently needed based on Marker Visual logic
PlayerSettings.SetArchitecture(BuildTargetGroup.iOS, 1); // Set Architecture to ARM64

We are using commit 61a1e390cb09ab7544da9304460f5b88e331a3ef for ASA as a submodule in our project

I am using Unity 2018.3.6f1 and am building the ios app with il2cpp

Actually, it seems like ASA has some pod update steps that are missing from SpectatorView's documentation. Using the xcode workspace compared to the xcode project + running the pod install steps described in the ASA documentation seems to unblock.

Pod documentation where? @chrisfromwork

Was this page helpful?
0 / 5 - 0 ratings