Re: Embedding private Framework
Re: Embedding private Framework
- Subject: Re: Embedding private Framework
- From: Christiaan Hofman <email@hidden>
- Date: Tue, 9 Nov 2010 11:36:11 +0100
On Nov 9, 2010, at 11:15, ANE wrote:
> Hi!
>
> I would like to install a private framework inside the application bundle. I've followed the steps described at http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html#//apple_ref/doc/uid/20002258-106880
> The Framwork itself is copied into the bundle. But if I start the application from Finder it crashes... (Framework not found)...
>
Than you must not have exactly followed these instructions, because when you do it should work. If you don't tell us exactly what you did do, we can't tell you what you did wrong.
> The Installation Directory of the framework is set to: @executable_path/../Frameworks
>
First thing, you should check that this is also exactly what you get. Check explicitly (using otool) that this the framework does have this install name, and that your app's executable also uses this install name. Also check that the framework is in fact installed in this location of your app bundle.
> Should I adapt the "#import" path (currently: <MyFramework/MyHeader.h>)? How should that be done?
>
Definitely not. This is the correct way to refer to it. Apart from that, this is a compile-time reference (i.e. it tells the compiler where to find the header), while your problem occurs at run time (i.e. the linker cannot find the framework at run-time).
> Thanks in advance!
>
>
> ANE
Christiaan
_______________________________________________
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