- Home /
Apple Mach-O Linker Error for arm64
I'm trying to integrate a Unity project in my existing native Xcode project. So far I followed this guide to get this working:
http://www.makethegame.net/unity/add-unity3d-to-native-ios-app-with-unity-5-and-vuforia-4-x/
I ran into a lot of issues, but I narrowed it down to the following linker error that I can't get rid of and hope one of you guys can help me with.
ld: warning: directory not found for option '-L/Users/x/Unity-iPhone.xcodeproj/Libraries/Plugins/iOS'
ld: warning: directory not found for option '-L/Users/x/Unity-iPhone.xcodeproj/Libraries'
Undefined symbols for architecture arm64:
"_UnitySetGraphicsDevice", referenced from:
-[MyAppController shouldAttachRenderDelegate] in MyUnityAppController.o
"_UnityRenderEvent", referenced from:
-[MyAppController shouldAttachRenderDelegate] in MyUnityAppController.o
"_GetAppController", referenced from:
-[SecondViewController viewDidLoad] in SecondViewController.o
ld: symbol(s) not found for architecture arm64
I'm already using IL2CPP for backend scripting and universal architecture. My Unity version is 5.1.1 and I'm using XCode 6.4.
Answer by Sca · Jul 21, 2015 at 01:37 PM
I have exactly the same problem, except only the getAppController error. Seems that the paths "-L/Users/x/Unity-iPhone.xcodeproj/Libraries/Plugins/iOS" and "-L/Users/x/Unity-iPhone.xcodeproj/Libraries" are wrong. Search those in finder and make sure to introduce them corretly. For this i usually put the full path (ie no $(SRCROOT) and the likes), just to try to get it to compile.
Answer by Kornikolia · Oct 19, 2015 at 11:34 AM
Hi @kgoedecke, Change extension for your ViewControllers files from .m to .mm.
Your answer
Follow this Question
Related Questions
Unity XCode build linker error 0 Answers
iOS Build Crash : task_set_exception_ports(B07, 400, D03, 0, 0) Error 0 Answers
Linker error - Unity on iOS/React Native project 1 Answer
iOS font missing when build is nested in another project only after Unity 5.3 update. 0 Answers
Firebase.analytics are not showing 2 Answers