By jlink5
on Fri, 08/25/2017 - 17:26
I'm trying to build a fresh Vuforia app to an iOS device from Unity but am getting a bunch of "Apple Mach-O Linker (Id)" build errors in Xcode. Opening up the log, the errors are for "Undefined symbols for architecture arm64", with 200+ errors for various references in Vuforia scripts.
Am I missing something in my setup to make iOS builds from Unity? I'm running the latest versions of Unity (2017.1) and Vuforia (6.2.10).
Hello jlink5,
Hello jlink5,
Could you try this with Unity 5.6 instead? Unity 2017.1 is not an officially support version of Vuforia 6.2.10.
Thanks,
-Vuforia Support
I just installed Unity 5.6
I just installed Unity 5.6 and building in Xcode has the same errors.
@Strasza, any ideas?
@Strasza, any ideas?
I have no personally run into
I have not personally run into this issue before, but here is an old thread that encountered it in the past. It looks like it might contain the solution you're looking for.
I tried solutions from that
I tried solutions from that thread (3 years old), but they didn't fix the Linker errors. This should be a pretty easy issue to reproduce since I'm building from all latest versions on latest macOS (Sierra 10.12) with a clean project.
With a fresh version of the
With a fresh version of the sample project in Unity 5.6 with Vuforia 6.2.10 I am able to build to iOS without any issues. I am on Sierra 10.12 as well. What version of XCode are you on?
Thanks,
My Xcode is 8.3.3.
My Xcode is 8.3.3.
@Strasza, does this
@Strasza, does this information help? Can you tell me what libraries need to be linked and where, since the auto setup of XCode from Unity doesn't seem to be linking everything?
*/
I've uploaded an image of the libraries and frameworks that are being included in the XCode project that is built from Unity. Are you missing anything seen here?
It looks like libVuforia.a is
It looks like libVuforia.a is missing. Does that get included and linked through the Unity plugin, or do I need to set that up elsewhere?
That should be getting linked
That should be getting linked and included through Unity. Navigate to Assets/Plugins/iOS/ and you should find it there. Select it and look at it in the Inspector panel. Make sure that the section for "Select platforms for plugin" has iOS checked.
Reimporting the Unity
Reimporting the Unity Vurforia package added the missing files and fixed my Linker errors. Thanks for working through this with me.
That's strange, the file
That's strange, the file should be included in the UnityPackage regardless of PC or Mac. I'm glad reimporting Vuforia resolved your issue!
Thanks,