• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Framework problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Framework problem (From: Michael Swan <email@hidden>)

  • Prev by Date: Framework problem
  • Next by Date: Re: When to use Stabs or DWARF?
  • Previous by thread: Framework problem
  • Next by thread: Obj-C private and XCode 2.3
  • Index(es):
    • Date
    • Thread