Framework file not getting picked up

Discussion in 'Mac Programming' started by jbsp72, Jul 21, 2008.

  1. jbsp72 macrumors newbie

    Joined:
    Jul 21, 2008
    #1
    Hi,

    I am new to programming on Mac. I have an application which uses its own custom framework file to render sound files. I have the framework there in my application at the expected path but still when I try to launch the application it asks me for the path of the framework file. Even when I provide the right path It keeps asking for a path and doesnot accept thr framework file.

    Could Anybody please tell me what the possible reasons may be for this behaviour?

    Thanks
    Shivaprasad
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    You probably need to add the path to the framework to your path environmental variables.
     
  3. jbsp72 thread starter macrumors newbie

    Joined:
    Jul 21, 2008
    #3
    But It should have picked up the framework when I gav eit the path to the framework explicitly right? Its not accepting the framework even then.
    Anyway I will try setting the environment variable and see if it works. :)
     
  4. Sayer macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #4
    If you made your own framework then you may not have set a few properties for it such that it would load properly.

    In the framework project in Xcode, click on the target your are building and Get Info on it (right click).

    In the Build tab change the Deployment category's Installation Directory to be: @executable_path/../Frameworks

    And in the Linking category add to Other Linker Flags: -seg1addr 0xNNNNNNNN

    where 0xNNNNNNNN is any number such as 0x30000000 which tells the linker where to load the framework into memory at.

    Now your framework can be properly loaded by placing it inside the App bundle in "Frameworks" or any "Frameworks" folder in the Library folders.
     

Share This Page