Tried to build sample scene to iPhone 6S but am getting this error.
Undefined symbols for architecture arm64:
"_OBJC_METACLASS_$_ARAnchor", referenced from:
_OBJC_METACLASS_$_ARPlaneAttachmentAnchor in UnityARKit.a(ARKitXRReferencePointProvider.o)
"_OBJC_CLASS_$_ARAnchor", referenced from:
_OBJC_CLASS_$_ARPlaneAttachmentAnchor in UnityARKit.a(ARKitXRReferencePointProvider.o)
objc-class-ref in UnityARKit.a(ARKitXRReferencePointProvider.o)
"_OBJC_CLASS_$_ARPlaneAnchor", referenced from:
objc-class-ref in UnityARKit.a(ARKitXRReferencePointProvider.o)
objc-class-ref in UnityARKit.a(ARKitXRPlaneProvider.o)
"_OBJC_CLASS_$_ARSession", referenced from:
objc-class-ref in UnityARKit.a(ARKitXRSessionProvider.o)
"_OBJC_CLASS_$_ARWorldTrackingConfiguration", referenced from:
objc-class-ref in UnityARKit.a(ARKitXRSessionProvider.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Looks like you’re missing the ARKit framework. There’s a post build step that is supposed to do that for you, but you can also add it manually in Xcode. What version of Unity did you use?
I’d like to understand what’s going on here. The error suggests you just need to add the ARKit framework to your Xcode project. Did you make any changes at all to the samples repo, or did you just build a fresh clone? What version of Xcode? Any other errors or warnings in either Xcode or Unity?
launch Unity unity 2018.2.2f1 and open extracted project
Build settings > change to iOS, and build SampleScene
load built project in XCode 9.4.1
Change Display Name, Bundle Identifier, Team, and set Deployment Target to 11
Et voila. Feathered Planes works too
So I started playing around. Can you please share the scaling rig scene you demo’d 32mins into this vid
because am having trouble with my current demo?
see here Dropbox - File Deleted - Simplify your life (can’t embed dropbox vid files for some reason). There should be mini people as it starts at world scale, but when i scale it down (using LeanTouch’s LeanScale script), they go away. Interested to see if it fixes the sea shader too.
Thanks!
The scaling rig was no different than what you get in the default setup. There’s a branch of the ARFoundation Samples repo that allows you to play with this in the Editor, see https://discussions.unity.com/t/712531 . There’s a blue cube that acts like the complex village in the GDC video.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ARCollaborationData", referenced from:
objc-class-ref in UnityARKit.a(ARKitXRSessionProvider.o)
"_OBJC_CLASS_$_ARSkeletonDefinition", referenced from:
objc-class-ref in UnityARKit.a(ARKitXRHumanBodyProvider.o)
"_OBJC_CLASS_$_ARBodyAnchor", referenced from:
objc-class-ref in UnityARKit.a(ARKitXRHumanBodyProvider.o)
"_OBJC_CLASS_$_ARBodyTrackingConfiguration", referenced from:
objc-class-ref in UnityARKit.a(ARKitXRHumanBodyProvider.o)
"_OBJC_CLASS_$_ARMatteGenerator", referenced from:
objc-class-ref in UnityARKit.a(ARKitXRHumanBodyProvider.o)
"___isPlatformVersionAtLeast", referenced from:
_UnityARKit_Camera_AcquireConfigurations in UnityARKit.a(ARKitXRCameraProvider.o)
_UnityARKit_Camera_TryGetCurrentConfiguration in UnityARKit.a(ARKitXRCameraProvider.o)
_UnityARKit_Camera_TrySetCurrentConfiguration in UnityARKit.a(ARKitXRCameraProvider.o)
(anonymous namespace)::ARKitXRCameraProvider::ResetLocalConfigurationState() in UnityARKit.a(ARKitXRCameraProvider.o)
(anonymous namespace)::ARKitXRCameraProvider::HandleARKitEvent(UnityARKitEvent, void*, int) in UnityARKit.a(ARKitXRCameraProvider.o)
_UnityARKit_EnvironmentProbeProvider_Construct in UnityARKit.a(ARKitXREnvironmentProbeWrapper.o)
_UnityARKit_EnvironmentProbeProvider_Destruct in UnityARKit.a(ARKitXREnvironmentProbeWrapper.o)
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I checked the searched paths in Xcode and all looks ok, I’m not sure why this is happening…
I am having the same issue, tried runinstalling and installing whole stack of tools to see if I am doing something wrong, but I keep getting this error. Tried anything that I could find online and nothing worked… Hell please
Normally, you should be able to use the latest ARFoundation with any version of Xcode and iOS (depending on which features you want to use). However, we’ve identified an issue with Xcode 11 beta which prevents this. ARKit XR Plugin 2.2.0-preview.1 will only work with Xcode 11 and iOS 13. You cannot build an app using Xcode 9 or 10 and your app will crash on devices running anything less than iOS 13. You should only use ARKit XR Plugin 2.2.0-preview.1 if you want to experiment with the latest features in iOS 13. Otherwise, please use ARKit XR Plugin 2.1. We will release an updated version of the ARKit XR Plugin package when this issue is resolved in Xcode 11.
How should I downgrade, the package manager shows only version 2.2. It seems the Bitbucket repo also is deprecated. Does it mean I have to downgrade my Unity version?
Looks like you’ve figured it out. For future readers of this thread, you can view and install any previous version of the ARKit XR Plugin from Window > Package Manager:
Thanks so much for the info on downgrading. Unfortunately, my scene goes black when I use LWRP. Seems like the skybox shows up for a split second and then goes dark. Any ideas?
Hi ,
Am getting following error while building sample AR app for ios using AR Foundation and LWRP. I tried to make fresh project several times , but i get same error again and again.
Am using :
Unity 2019.1.6
xCode 10.2.1
AR Foundation 2.2.0 preview 2
Unity 3d v. 2019.1.2f1
AR Foundation preview.1 - 2.2.0
ARKit XR Plugin preview.1 - 2.2.0
(ARCore XR Plugin preview.1 - 2.2.0)
XCode v.10.2.1
I notice that if I downgrade the ARKit XR Plugin to the older version:
ARKit XR Plugin preview.5 - 2.1.0
I have no errors during Xcode compilation.
What would can be?
For
AR Foundation preview.1 - 2.2.0
ARKit XR Plugin preview.1 - 2.2.0
You also must have Xcode 11 beta and iOS 13 on your device.
Downgrading XR plugin helps. But I am not sure if 2d-3d tracking and occlusion will be supported.
I run my system on the latest versions and everything works just fine.
macOS 10.14.2 Xcode 9.4 Ar foundation plugin 2.2.0 ARKit XR plugin preview.5 - 2.1.0 IPhone 6S Plus with iOS 12.3.1
I would like to build a stable version that works on released version of iphone 6s plus, not beta ios 13. I downgraded ARKit XR plugin preview.5 - 2.1.0, but it still has the same errors. Can you please direct me to the most stable and build-able version please? Or a fix for this?