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

2 Answers

2

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' instead 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

Same problem here with Xcode 4.5.2 and Unity 3.5.3

Where do you set the target platform? It used to be in player settings but I haven't seen it since 4.0

I had the same problem.
I made a video to show you how to fix it.