image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old April 24th, 2008, 04:50 AM
Registered User
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
vinithaks is on a distinguished road
How can i add framework to my cocoa appl

hi,
How can i add GCdrawKit framework to my cocoa application?We are using xCode version 3.0 and Lepard machine.

When i run the program it displays the following error in the debug window after adding GCdrawkit (by using add-<existing framework):

run
[Switching to process 3272 local thread 0x2f1b]
dyld: Library not loaded: @executable_path/../Frameworks/GCDrawKit.framework/Versions/A/GCDrawKit
Referenced from: /Users/Newtok/Desktop/vinitha/Simple Inspector/build/Debug/Simple Inspector.app/Contents/MacOS/Simple Inspector
Reason: image not found

- Thanks in advance
Reply With Quote
  #2  
Old May 8th, 2008, 04:57 AM
Registered User
 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
cekim is on a distinguished road
You need to embed the framework into your application bundle:
  1. Choose Project > New Build Phase > New Copy Files Build Phase
  2. In the Destination drop down box select Frameworks
  3. Close the Copy Files Phase Info window to return to the Xcode main window
  4. In the Groups & Files pane expand Targets > YourApplicationExectuable, where you should now see a Copy Files entry
  5. Still in Groups & Files pane drag your framework into the Copy Files entry
  6. Recompile

Repeat steps 4 & 5 for any additional frameworks you have.

Last edited by cekim; May 8th, 2008 at 04:57 AM. Reason: fixed typo
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 08:49 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.