错误:对xcode统一;体系结构arm64的未定义符号:

时间:2020-06-26 04:40:56

标签: xcode augmented-reality

现在,我正在团结一致地实现增强现实。 我尝试使用x代码进行构建。 但是我遇到了以下错误。 如果您有类似的经验,请告诉我。 Mu Unity的构建设置为ARM46

●Error:
Undefined symbols for architecture arm64:
 "_OBJC_CLASS_$_ARObjectScanningConfiguration", referenced from:
   objc-class-ref in ARKitNativeObjectDetection.o
 "_OBJC_CLASS_$_ARObjectAnchor", referenced from:
   objc-class-ref in ARKitNativeObjectDetection.o
 "_OBJC_CLASS_$_ARPointCloud", referenced from:
   objc-class-ref in ARPointCloud.o
 "_OBJC_CLASS_$_AREnvironmentProbeAnchor", referenced from:
   objc-class-ref in ARSessionNative.o
   objc-class-ref in AREnvironmentProbe.o
 "_OBJC_CLASS_$_ARWorldTrackingConfiguration", referenced from:
   objc-class-ref in ARSessionNative.o
 "_OBJC_CLASS_$_ARReferenceImage", referenced from:
   objc-class-ref in ARSessionNative.o
 "_OBJC_CLASS_$_AROrientationTrackingConfiguration", referenced from:
   objc-class-ref in ARSessionNative.o
 "_OBJC_CLASS_$_ARImageAnchor", referenced from:
   objc-class-ref in ARSessionNative.o
 "_OBJC_CLASS_$_ARAnchor", referenced from:
   objc-class-ref in ARSessionNative.o
 "_OBJC_CLASS_$_ARWorldMap", referenced from:
   objc-class-ref in ARWorldMap.o
   objc-class-ref in ARSessionNative.o
   objc-class-ref in ARKitNativeObjectDetection.o
 "_OBJC_CLASS_$_ARPlaneAnchor", 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
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

2 个答案:

答案 0 :(得分:0)

它缺少库。

在Unity3D项目中,请确保已启用XR。

如果使用最新版本的Unity3D,则必须在项目设置中启用ARKit Build Settings。同时,在XR插件管理(iOS)中,您必须打开ARKit作为插件提供程序。

当然,不要忘记在构建设置中添加相机使用说明。

答案 1 :(得分:0)

谢谢! 我解决了!

第一步

我添加了XR Foundation和XR工具包插件 (窗口>程序包管理器)

第二步

我更改了xcode(singin)的设置 所有设置更改iOS开发人员 enter image description here