- Home /
Apple Mach-O linker error during build
Hi please help resolve this issue I'm trying to compile an app but it keeps giving me 3 Mach-O linker error messages
Undefined symbols for architecture armv7:
"NotifyAutoOrientationChange()", referenced from:
ScreenManager::SetIsOrientationEnabled(EnabledOrientation, bool) in libiPhone-lib.a(ScreenManager.o)
"Register_UnityEngine_Mesh_INTERNAL_CALL_Clear()", referenced from:
RegisterAllStrippedInternalCalls() in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'd appreciate the community's help I've tried everything within my capacity
Thanks
Answer by drawcode · Sep 25, 2012 at 09:51 PM
Try doing a clean. Also make sure your build is only set to armv7 if you are using newer XCode. They dropped support for arvm6. You can adjust this in your Unity Project Settings for iOS. Just select armv7 only. Also possibly remove the export if you can and reexport or replace when you build and run.
Hi Ryan, I made sure build is set to armv7. Re: "Also possibly remove the export if you can and reexport or replace when you build and run." Could you please be more specific. Apologies still learning )
I mean the build export path where the xcode project is built. Just remove that and rebuild. Or you can just 'replace' ins$$anonymous$$d of 'append' when you build and run to reset it.
Hi pixelbug, did you solve your problem? i have the same, and maybe you can tell me how to solve it. thanks
Where do you set the target platform? It used to be in player settings but I haven't seen it since 4.0
Answer by MrRetroCentral · Dec 06, 2015 at 03:38 AM
I had the same problem. I made a video to show you how to fix it. https://www.youtube.com/watch?v=j3UzJSRex_E
Your answer
![](https://koobas.hobune.stream/wayback/20220613081504im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
iOS Objective C plugin linker error 2 Answers
Error building for iOS: framework not found FBSDKCoreKit for architecture armv7 2 Answers
Apple Mach-O Linker Error 4 Answers
Xcode "Undefined symbols for architecture armv7" after attempted iAd script in Unity 0 Answers
How to Fix linker command failed with exit code 1 (use -v to see invocation)? 0 Answers