Linker error on update to iOS 6 and xCode 4.5

Undefined symbols for architecture armv7:
“__ios60orNewer”, referenced from:
__ZL30SelectVideoViewControllerClassv in libiPhone-lib.a(iPhoneVideo.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Anyone else having this issue??

I’m getting this issue as well, but I’m not sure how to fix it. I think it’s not finding a lib file, but not sure what to do about that. If someone else had this problem, could you post a solution?

I’m getting this error too. Do we need to upgrade xCode along with Unity?

Not sure if this is actually the fix or not, but i was using a custom AppController.mm file. Deleting this from my Plugins/iOS directory, then re-applying the changes made the error go away.

( i didn’t update xCode or anything else )

Yah same here deleted the file and then re added the code. :slight_smile:

That is the correct fix, appController.mm must be allowed to update unfortunately.

I’m getting this error, but I don’t understand the fix. I deleted the appController.mm file from my project, did a build, dragged the regenerated appController.mm file into my project, opened it and pasted in my custom code…and I still get the error in a new build. So I must have done it wrong – but what’s the correct procedure?

Nevermind, I figured it out – the specific thing that appController needs is a new line for iO6: “_ios60orNewer” and when I inert it on row 205, then I can build to my devices without errors.

Sounds like Unity runtime ↔ AppController version mismatch.
Try this:

  1. replace your Xcode project when building from Unity
  2. make sure that none of your plugins overwrite AppController with older one