Log in or register to post comments

Error building for iOS - Mach-O Linker (Id) Error

August 25, 2017 - 10:26am #1

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).

Error building for iOS - Mach-O Linker (Id) Error

September 6, 2017 - 11:56am #14

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,

-Vuforia Support

Error building for iOS - Mach-O Linker (Id) Error

September 6, 2017 - 8:02am #13

Reimporting the Unity Vurforia package added the missing files and fixed my Linker errors. Thanks for working through this with me.

For what it's worth, I started this project on PC, got the latest version of Vurforia for Unity, imported it, then via version control moved the project over to OSX. From there was where I was building to iOS. I'm not sure why the files I was missing wouldn't have been imported from the PC version of the Vurofia package, but I definitely didn't explicitly exclude them.

Error building for iOS - Mach-O Linker (Id) Error

September 5, 2017 - 4:41pm #12

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.

Attached is a screenshot of the file selected with the Inspector having the correct box checked.

If you aren't seeing this file, could you try re-downloading the Vuforia SDK and re-importing it into your project.

Thanks,

-Vuforia Support

AttachmentSize
Image icon libVuforia in Unity.png722.88 KB

Error building for iOS - Mach-O Linker (Id) Error

September 5, 2017 - 1:30pm #11

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?

Error building for iOS - Mach-O Linker (Id) Error

September 5, 2017 - 11:07am #10


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?

Thanks,

-Vuforia Support

AttachmentSize
Image icon XCode Libraries.png760.58 KB

Error building for iOS - Mach-O Linker (Id) Error

September 5, 2017 - 9:07am #9

@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?

Error building for iOS - Mach-O Linker (Id) Error

August 31, 2017 - 7:21am #8

My Xcode is 8.3.3.

Error building for iOS - Mach-O Linker (Id) Error

August 30, 2017 - 11:54am #7

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,

-Vuforia Support

Error building for iOS - Mach-O Linker (Id) Error

August 30, 2017 - 7:51am #6

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. It looks like there is just a missing library link, but I'm not sure what or where. The scripts the error log is complaining about are: VuforiaRenderDelegate.o, VuforiaNativeRendererController.o, and (mostly) Bulk_Vuforia.UnityExtensions.iOS_0.o.

Error building for iOS - Mach-O Linker (Id) Error

August 28, 2017 - 8:42am #5

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.

https://developer.vuforia.com/forum/unity-extension-technical-discussion/apple-mach-o-linker-error-undefined-symbols-architecture-armv7

Thanks,

-Vuforia Support

Error building for iOS - Mach-O Linker (Id) Error

August 28, 2017 - 6:49am #4

@Strasza, any ideas?

Error building for iOS - Mach-O Linker (Id) Error

August 25, 2017 - 12:12pm #3

I just installed Unity 5.6 and building in Xcode has the same errors.

Error building for iOS - Mach-O Linker (Id) Error

August 25, 2017 - 10:43am #2

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

Log in or register to post comments