Re: Embedding private Framework (Resolved)
Re: Embedding private Framework (Resolved)
- Subject: Re: Embedding private Framework (Resolved)
- From: "Dr. Volker Thieme" <email@hidden>
- Date: Wed, 10 Nov 2010 21:35:48 +0100
Hi!
Thank you for your reply!
I've made a mistake. The Installation Directory setting should be changed in the _target_. I've changed it in the project info window. Next time I'll read the docs more carefully.
Thank you!
ANE
Am 09.11.2010 um 11:36 schrieb Christiaan Hofman:
>
> 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