Environment variable not setting correct path to libcache.dylib

Discussion in 'iOS Programming' started by rchaud10, May 28, 2013.

  1. rchaud10 macrumors newbie

    Joined:
    May 28, 2013
    #1
    Hey everyone,

    I have been trying to build a package for the iPhone that requires the use of libcache.dylib under the Xcode path, but I keep getting an error where it keeps looking for it in /usr/bin/libcache.dylib. I want it to use the Xcode one rather than the MacOS one because it does not have the required armv7 architecture for compiling the package for the iPhone properly. Does anyone know how I need to set the environment variables in my script to make this work? I am working with Xcode that includes iOS6.1 SDK.

    Thanks
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    Look at the features of the xcode-select and xcrun command line tools to find the appropriate path for your command line build.
     
  3. rchaud10 thread starter macrumors newbie

    Joined:
    May 28, 2013
    #3
    I am building outside of the Xcode application. I'm just using a script that is setting environment variables to point to the right places. But it was not working properly. How do I make sure it works?
     
  4. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    I recommend you look at the tools I already suggested.
     

Share This Page