Re: Framework problem
Re: Framework problem
- Subject: Re: Framework problem
- From: "James W. Walker" <email@hidden>
- Date: Tue, 23 May 2006 23:27:19 -0700
On May 23, 2006, at 11:19 PM, Michael Swan wrote:
Does anyone have any ideas as to what I am doing wrong with a
framework I am using? I get the following warning every time I
clean the project:
dyld: Library not loaded: @executable_path/../Frameworks/
LightsOn.framework/Versions/A/LightsOn
Referenced from: /Users/michaelswan/MySrc/XLiteBasic/build/Debug/
XLite Basic.app/Contents/MacOS/XLite Basic
Reason: image not found
If I dig through to the app in the build folder and show package
contents and then open 'Contents' add a folder named 'Frameworks'
and put a copy of the framework in the folder myself it works. Here
are the steps I used:
select the frameworks group
select 'Project' -> 'Add To Project...'
select the framework from the dialog
check 'Copy items into destination group's folder (if needed)'
Reference Type: Default
'Recursively create groups for any added folders'
the check box is selected under 'add to target'
Surely I am missing something, XCode can't possibly be that dumb of
a program not to put things where it needs them.
When you add a framework to a project, the usual assumption is that
you want to link against that framework. If you also need to have it
available to the built application at runtime, you need to do more:
Namely, add a copy files build phase to copy the framework into the
Frameworks folder of the built application.
_______________________________________________
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