I wish to embed the ogg and vobis frameworks in my app. Vorbis depends on Ogg, and tries to find it in /Library/Frameworks instead of MyApp.app/Frameworks
I've compiled the ogg and vorbis frameworks from source (the ogg.xcodeproj and vorbis.xcodeproj files were provided with the source). I have set the "Installation Directory" property of the target in both of these projects to "@executable_path/../Frameworks". (I've noticed that now the inspector shows "<multiple values>" after I made this change, and if I try to edit the field, it is empty. Is this normal?)
In MyApp.xcodeproj, I have a build phase that copies these two frameworks into MyApp.app/Frameworks.
When I try and run MyApp on a 'clean' test machine (without the ogg or vorbis frameworks in /Library/Frameworks), I get this error:
------ dyld: Library not loaded: /Library/Frameworks/Ogg.framework/Versions/A/Ogg Referenced from: /Users/Me/Developer/MyApp/build/Release/MyApp.app/Contents/MacOS/../Frameworks/Vorbis.framework/Versions/A/Vorbis Reason: image not found ------
...vorbis is expecting to find ogg in /Library/Frameworks - even though I am compiling vorbis with it linking against the same ogg.framework that my app is linking against.
I've noticed that the free program OggDrop.app contains the ogg and vorbis frameworks, so I know this is possible.
What am I missing?
Thanks in advance. |