Linking to Framework inside app bundle
Linking to Framework inside app bundle
- Subject: Linking to Framework inside app bundle
- From: Dave Zwerdling <email@hidden>
- Date: Wed, 24 Nov 2010 18:58:34 -0800
Hi all,
Sorry if this is in the wrong list.
I have an .app in XCode which is dependent on a custom framework/dynamically linked library which is compiled from another XCode project. The library is compiled as a dependency in XCode for the app. I have a Link Binary with Libraries build phase which includes the external library, and a Copy Libraries build phase in which 2 libraries are copied (Sparkle and the aforementioned external library). In Debug and Release modes in XCode, the building works fine. However, if the app is taken to another machine or the Products directory in my Developer folder is removed or relocated, the app fails to link to the library. The bundle is trying to look in my Development/Products/Debug folder for the library.
I assumed this was a library search path issue, so in Release mode, I removed the entry that specified the Debug folder. This does not work.
What is going wrong here? If Sparkle is linking correctly, why isn't the custom library? They are both in the Copy Libraries and Link Binary with Libraries build phases. The only difference I can see here is that the custom library is being compiled separately, while the Sparkle lib is pre-compiled.
Secondly, and more relevant to specifically solving this issue for me, is there an environment variable for the bundle path? Would that even work? I get the feeling the env vars become static once the build is finished.
Thanks in advance!
Dave _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden