Unable to set up Apple's PDFKitLinker2 example code: project can't "find" PDFKit.framework
Unable to set up Apple's PDFKitLinker2 example code: project can't "find" PDFKit.framework
- Subject: Unable to set up Apple's PDFKitLinker2 example code: project can't "find" PDFKit.framework
- From: "Frederick C. Lee" <email@hidden>
- Date: Sun, 24 Jul 2005 16:08:07 -0700
Greetings:
I've downloaded 'PDFKitLinker2" example code from the following
site:
http://developer.apple.com/samplecode/PDFKitLinker2/PDFKitLinker2.html
The project had pointed to a non-existent directory so I removed it
from the framework's search path.
But the program still needs to find the PDFKit.framework.
I hard-code a direct path to the PDFKit.framework via the 'Get Info'
menu item of PDFkit.framework (found in the project's frameworks
folder):
{Path Type = Absolute Path, File Type = wrapper.framework}
/Developer/SDKs/MacOSX10.4.0.sdk/System/Library/Frameworks/
Quartz.framework/Versions/A/Frameworks/PDFKit.framework
The project appears to be okay; the PDFKit.framework has the list of
header files shown in the Project.
----
Rebuilding the project dies after the link failure (I had also set
the target's framework search-path as well):
mkdir "/Users/Ric/workarea/tmp/PDFView/myPDFKitLinker2/build/
Development/PDF Linker.app/Contents/MacOS"
cd /Users/Ric/workarea/tmp/PDFView/myPDFKitLinker2
/usr/bin/gcc-4.0 -o "/Users/Ric/workarea/tmp/PDFView/
myPDFKitLinker2/build/Development/PDF Linker.app/Contents/MacOS/PDF
Linker" -L/Users/Ric/workarea/tmp/PDFView/myPDFKitLinker2/build/
Development -F/Users/Ric/workarea/tmp/PDFView/myPDFKitLinker2/build/
Development -filelist "/Users/Ric/workarea/tmp/XCode Builds/
PDFLinker2.build/Development/PDF Linker.build/Objects-normal/ppc/PDF
Linker.LinkFileList" -framework Cocoa -framework PDFKit -arch ppc
/usr/bin/ld: can't locate framework for: -framework PDFKit
collect2: ld returned 1 exit status
What am I doing wrong?
Why can't XCode see the PDFkit.framework; when I hardcoded the path
in both the targert's search path AND the actual path within
"PDFKit.framework" that's listed within the framework's folder?
...I see PDFkit's headers within the project.
P.S. I sent a note to Apple about this.
Regards,
Ric.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden