Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Framework problem



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden


This email sent to email@hidden
References: 
 >Framework problem (From: Michael Swan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.