Okay, so I'm ready to deploy my beta limited feature edition of my app and I'm having slight problems bundling up non standard Mac frameworks.
Here is what my project looks like:
As you can tell the framework "FreeImage.framework" is highlighted red, I temporally removed the framework from the Frameworks folder in the system for testing and I have the frameworks in a copy file already and I created a shell script target, but idk if it's even running or not before I build the Unix Executable.
Encase if you cant read the code to well:
Anyways, what am I missing? I tried using the otool -L "My Unix Executable" and it keeps showing up the default framework paths instead of the paths located in the bundle and I tried using the install_name_tool -change ... directory through the Terminal and it has NO effect on the executable and it shows no error.
Can someone point out what I'm missing? Cause if I just run the app bundle without the framework in it's default location in the System it just crashes saying it can't find the framework. This is my first Mac deployment, so I'm not exactly sure what I'm missing cause I'm coming from a .dll background and I have my frameworks in the "Frameworks" folder in the app bundle.
Thanks, Ajm.
Here is what my project looks like:
As you can tell the framework "FreeImage.framework" is highlighted red, I temporally removed the framework from the Frameworks folder in the system for testing and I have the frameworks in a copy file already and I created a shell script target, but idk if it's even running or not before I build the Unix Executable.
Encase if you cant read the code to well:
Code:
function relocateLibraryInCurrentApp() {
install_name_tool -change $1$2 @executable_path/../Frameworks/$2 $CONFIGURATION_BUILD_DIR/$EXECUTABLE_PATH
}
relocateLibraryInCurrentApp /usr/local/lib/ libwx_macud_gl-2.8.dylib #note the space
relocateLibraryInCurrentApp /Library/Frameworks/ FreeImage.framework/Versions/A/Foobar #note the space
exit 0
Anyways, what am I missing? I tried using the otool -L "My Unix Executable" and it keeps showing up the default framework paths instead of the paths located in the bundle and I tried using the install_name_tool -change ... directory through the Terminal and it has NO effect on the executable and it shows no error.
Can someone point out what I'm missing? Cause if I just run the app bundle without the framework in it's default location in the System it just crashes saying it can't find the framework. This is my first Mac deployment, so I'm not exactly sure what I'm missing cause I'm coming from a .dll background and I have my frameworks in the "Frameworks" folder in the app bundle.
Code:
MyApp.app/Contents/Frameworks
|
-> FreeImage.framework
-> libwx_macud_gl-2.8.dylib
Thanks, Ajm.
Last edited: