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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unable to build project using latest unity and latest xcode.

Discussion in 'iOS and tvOS' started by zooma, Oct 5, 2012.

  1. zooma

    zooma

    Joined:
    Oct 5, 2012
    Posts:
    1
    I have banged my head against this for a good day now, and I am unable to resolve this - We have Unity Pro and Unity iOS Pro, but using the latest XCode I am not able to build a project that uses a native plugin to an iOS device. The plugin in question we're using is the "Powered by String" AR library, this has worked before - but after upgrading everything to the latest version, I can't get this error to go away:

    Code (csharp):
    1.  
    2. Undefined symbols for architecture armv7:
    3.   "HandleOrientationRequest()", referenced from:
    4.       _String_SetProjectionAndViewport in libStringUnityDemo-1.1.3.a(StringAppController.o)
    5.   "ShouldHandleRotation(ScreenOrientation*)", referenced from:
    6.       _String_SetProjectionAndViewport in libStringUnityDemo-1.1.3.a(StringAppController.o)
    7.   "UnitySetAllowOrientationDetection(bool)", referenced from:
    8.       _String_LoadImageMarker in libStringUnityDemo-1.1.3.a(StringAppController.o)
    9.  
     
  2. SIU Saluki

    SIU Saluki

    Joined:
    Oct 12, 2012
    Posts:
    2
    I am having the exact same problem as you are, I just cannot seem to get past these errors. It is no help at all that this is my first time trying to get the app to build. I am trying to do a HelloWorld with the String Augmented Reality tools and this happens to be my latest issue. Any help would be greatly appreciated.

    Code (csharp):
    1. Undefined symbols for architecture armv7:
    2.   "HandleOrientationRequest()", referenced from:
    3.       _String_SetProjectionAndViewport in libStringUnityDemo-1.1.3.a(StringAppController.o)
    4.   "ShouldHandleRotation(ScreenOrientation*)", referenced from:
    5.       _String_SetProjectionAndViewport in libStringUnityDemo-1.1.3.a(StringAppController.o)
    6.   "UnitySetAllowOrientationDetection(bool)", referenced from:
    7.       _String_LoadImageMarker in libStringUnityDemo-1.1.3.a(StringAppController.o)
    8. ld: symbol(s) not found for architecture armv7
    9. clang: error: linker command failed with exit code 1 (use -v to see invocation)
     
    Last edited: Oct 23, 2012
  3. chrish6987

    chrish6987

    Joined:
    Nov 5, 2012
    Posts:
    5
    I am also having the same problem. Did any of you find what was wrong yet? Or how to fix it?
     
  4. retox

    retox

    Joined:
    Sep 12, 2012
    Posts:
    29
    I'm getting the same issue. Anyone worked it out yet?
     
  5. n0mad

    n0mad

    Joined:
    Jan 27, 2009
    Posts:
    3,732
    Since Xcode 4.5, you have to add custom frameworks manually (xcode > target-iPhone > build phases > link to libraries).
    It was done automatically before.
     
  6. Donny

    Donny

    Joined:
    Nov 24, 2012
    Posts:
    1
    Has anyone resolved this issue?
    The basic tutorial does mention including the appropriate frameworks so I don't think that's the issue.
     
  7. mtoivo

    mtoivo

    Joined:
    Jul 30, 2012
    Posts:
    274
    Just asked about it from String themselves (am I the only one who bothered?) and they replied they're working on to support newer Unity versions. They say 3.5.4 should work for now, if you're able to get your hands on that.
     
  8. mikolo

    mikolo

    Joined:
    Nov 27, 2009
    Posts:
    249
    I am using Unity 3.5.6f4 and xCode 4.5.1 and i get following errors in xcode when try to build:

    PHP:
    Undefined symbols for architecture armv7:
      
    "HandleOrientationRequest()"referenced from:
          
    _String_SetProjectionAndViewport in libStringUnityDeveloper-1.1.3.a(StringAppController.o)
      
    "ShouldHandleRotation(ScreenOrientation*)"referenced from:
          
    _String_SetProjectionAndViewport in libStringUnityDeveloper-1.1.3.a(StringAppController.o)
      
    "UnitySetAllowOrientationDetection(bool)"referenced from:
          
    _String_LoadImageMarker in libStringUnityDeveloper-1.1.3.a(StringAppController.o)
    ldsymbol(snot found for architecture armv7
    clang
    errorlinker command failed with exit code 1 (use -v to see invocation)
    Any solutions for that? Thanks
     
  9. mtoivo

    mtoivo

    Joined:
    Jul 30, 2012
    Posts:
    274
    Read the thread? Like the last post before yours.
     
  10. Joe ByDesign

    Joe ByDesign

    Joined:
    Oct 13, 2005
    Posts:
    841
    Resurrecting this thread, seems String hasn't updated their stuff at all (in fact, seems nothing about their support really matches their attempt at premium pricing).

    Also, installing Unity 3.5.4 (shameful as it is that any developer would suggest doing this) doesn't fix the problem :(

    As it is, String appears "dead in the water" which is too bad, because the tech looked like a good performer.
     
  11. Gunhi

    Gunhi

    Joined:
    Apr 18, 2012
    Posts:
    300
    String project is dead. Don't use it.
     
  12. JuiceReis

    JuiceReis

    Joined:
    May 28, 2013
    Posts:
    29
    What you mean String project is dead?
     
  13. Joe ByDesign

    Joe ByDesign

    Joined:
    Oct 13, 2005
    Posts:
    841
    Yah, we decided on Qualcomm's QCar (which actually isn't a car! haha).

    It's not the most Unity friendly workflow but easy to pick up, works great, good performance, and the developer doesn't try to gouge other devs with ridiculous license schemes (!)

    Does everything we need :)