Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity 4.5 bug: Undefined symbols for architecture armv7: "__curOrientation"

Discussion in 'iOS and tvOS' started by AndrewK, May 28, 2014.

  1. AndrewK

    AndrewK

    Joined:
    Sep 14, 2012
    Posts:
    38
    I upgraded Unity to 4.5 and now I cant compile Xcode project:


    Undefined symbols for architecture armv7:
    "__curOrientation", referenced from:
    -[UnityAppController applicationDidBecomeActive:] in UnityAppController.o
    ld: symbol(s) not found for architecture armv7

    Can someone help me with that?
     
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    First of all - on unity version update you absolutely should do "replace", not "append"
    On the other hand - applicationDidBecomeActive: did not have _curOrientation referenced before so it is most likely some of the plugins
    So you should go there and fix yourself, i would bet that changing curOrientation to [self.unityView contentOrientation] should help
     
  3. AndrewK

    AndrewK

    Joined:
    Sep 14, 2012
    Posts:
    38
    I did replace, but you have right: it is my Vuforia plugin. It confused me, because that error occured after Unity update. But thank you!
     
  4. marjan

    marjan

    Joined:
    Jun 6, 2009
    Posts:
    563
  5. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,741
    Thanks for your fix, marjan! Real lifesaver, that one.
     
  6. marjan

    marjan

    Joined:
    Jun 6, 2009
    Posts:
    563
    turns out that we are using slightly outdated Versions of Vuforia. You need to download the latest Unity package from developer.vuforia.com which is so far 2.8.9. Than everything worked.
    (I had 2.8.7 or 2.8.8 from december, that one does not work).