Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jbsp72

macrumors newbie
Original poster
Jul 21, 2008
5
0
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
 
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. :)
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.