Re: AddressBook.framework in Xcode: Reference vs Copy
Re: AddressBook.framework in Xcode: Reference vs Copy
- Subject: Re: AddressBook.framework in Xcode: Reference vs Copy
- From: email@hidden
- Date: Tue, 17 Jun 2008 10:33:16 -0700 (PDT)
I found via hard way that you CAN NOT COPY a framework into a project. -- okay.
I'm trying to build an iPhone project; mimicking what I've done on the Desktop (Cocoa).
The problem is incorporating the AddressBook.framework into the project.
Okay...
You mentioned the Linker... which makes sense.
I've checked the target info, under 'Linker':
FRAMEWORK_SEARCH_PATHS = $(inherited) "$(SRCROOT)"
I think this may be the culprit.
I replaced this line with the following (even add the recursive option):
FRAMEWORK_SEARCH_PATHS = $(inherited) /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AddressBook.framework
.. but no change. Still Undefined AB entities.
Note: I opened up the AddressBook.framework reference under the 'Link Binary with Libraries' group.
I can see the Headers (locked) staring at me.
BTW: I have the following at the top of the code:
#import <AddressBook/AddressBook.h>
I just don't get it.
I works for the desktop (cocoa) sdk without modification; beyond just adding the reference the AddressBook.framework.
On 06/17/2008 09:17 Chris Espinosa wrote ..
> On Jun 17, 2008, at 8:13 AM, email@hidden wrote:
>
> > Greetings:
> > I'm working on an iP*e project. I need access to the
> > AddressBook.framework.
> > Normally I can add the framework via Reference (i.e., add to project
> > w/out COPY selected).
> >
> > But on this particular platform, I can see the header files, but the
> > project fails to build.
> > I get numerous fatal (not defined) errors.
> >
> > However...
> >
> > If I COPY the AddressBook.framework (25MB), the project builds
> > without the fatal errors.
>
> You're probably aware that it's not going to be successful to copy
> system frameworks into your product source.
-- yes, now I'm aware!
>
> > I'm using the 'import <AddressBook/AddressBook.h>' stmt.
> >
> > Originally I thought it had something to do with the compiler
> > directive with the header files:
> > #if MAC_OS_X_VERSION_10_3 <= MAC_OS_X_VERSION_MAX_ALLOWED
>
> When you're not compiling with a Mac OS X SDK, these macros will not
> be defined. Besides, you're having a link-time problem, not a compile-
> time problem.
>
> > But that doesn't appear to be the case, having actually install a
> > full COPY (25MB) into the project and to see it compile.
> >
> > Any Ideas to this behavior?
> >
> > I filed a bug with Apple.
>
> You could also use email@hidden for help with seeded
> products.
>
> My guess is that while you added the framework to your *project*, you
> didn't add it to the Link Binaries phase of your *target*. Or you
> added the framework from the wrong SDK, or used the wrong reference
> style for the SDK.
-- I've checked the Link Binary phase. It's there: {AddressBook, Foundation, UIKit} in that order.
-- I've linked with a) /System/Library/Frameworks/AddressBook.framework and
b) /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AddressBook.framework
I get the same result.
-- Wrong Reference Style for the SDK???? --- hmmm, don't know that.
>
> It would help to know the precise details of the link command, which
> you can send to the feedback address above.
>
> Chris
_______________________________________________
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