Framework question

  • Are the /System frameworks included by default in the header search
    path?  I'm building my first sizable project under XCode, and it is
    complaining that Foundation/Foundation.h is not found. The import line
    is simply:
    #import <Foundation/Foundation.h>
  • Am 10.11.2003 um 03:04 schrieb T Reaves:

    > Are the /System frameworks included by default in the header search
    > path?  I'm building my first sizable project under XCode, and it is
    > complaining that Foundation/Foundation.h is not found. The import line
    > is simply:
    > #import <Foundation/Foundation.h>

    Are you sure you actually included the Foundation Framework?
    /usr/include is the only path you can expect to be included by default.

    Markus

    - - - - - - - - - - - - - - - - - - -
    Dipl. Ing. Markus Hitter
    http://www.jump-ing.de/
  • >> Are the /System frameworks included by default in the header search
    >> path?  I'm building my first sizable project under XCode, and it is
    >> complaining that Foundation/Foundation.h is not found. The import
    >> line is simply:
    >> #import <Foundation/Foundation.h>
    >
    > Are you sure you actually included the Foundation Framework?
    > /usr/include is the only path you can expect to be included by > default.

    Presumably this has changed in Panther/XCode?  Jaguar/PB includes
    /System/Library/Frameworks/ and /Library/Frameworks/ in the path by
    default.  Adding the frameworks to your project is a mere formality in
    terms of gcc.  ld, on the other hand, gets a bit pickier.. ;)

    Wade Tregaskis
    -- Sed quis custodiet ipsos custodes?
  • >>> Are the /System frameworks included by default in the header search
    >>> path?  I'm building my first sizable project under XCode, and it is
    >>> complaining that Foundation/Foundation.h is not found. The import
    >>> line is simply:
    >>> #import <Foundation/Foundation.h>
    >>
    >> Are you sure you actually included the Foundation Framework?
    >> /usr/include is the only path you can expect to be included by >
    >> default.
    >
    > Presumably this has changed in Panther/XCode?  Jaguar/PB includes
    > /System/Library/Frameworks/ and /Library/Frameworks/ in the path by
    > default.  Adding the frameworks to your project is a mere formality in
    > terms of gcc.  ld, on the other hand, gets a bit pickier.. ;)
    >
    > Wade Tregaskis
    > -- Sed quis custodiet ipsos custodes?
    >
    >

    I know the include is there.

    In a small app I created from scratch, where Foundation.h was imported, it
    worked fine.  Now I am tring to build a framework for PostgreSQL access,
    and the xcode project is not mine.

    It is when I build this PostgreSQL xcode project that I get the error.
    And being a neophite to Mac, I'm not sure why it wouldn't find on of the
    most basic Frameworks.
  • On Nov 10, 2003, at 1:41 PM, Timothy Reaves wrote:

    >>>> Are the /System frameworks included by default in the header search
    >>>> path?  I'm building my first sizable project under XCode, and it is
    >>>> complaining that Foundation/Foundation.h is not found. The import
    >>>> line is simply:
    >>>> #import <Foundation/Foundation.h>
    >>>
    >>> Are you sure you actually included the Foundation Framework?
    >>> /usr/include is the only path you can expect to be included by >
    >>> default.
    >>
    >> Presumably this has changed in Panther/XCode?  Jaguar/PB includes
    >> /System/Library/Frameworks/ and /Library/Frameworks/ in the path by
    >> default.  Adding the frameworks to your project is a mere formality in
    >> terms of gcc.  ld, on the other hand, gets a bit pickier.. ;)
    >>
    > I know the include is there.
    >
    > In a small app I created from scratch, where Foundation.h was
    > imported, it
    > worked fine.  Now I am tring to build a framework for PostgreSQL
    > access,
    > and the xcode project is not mine.
    >
    > It is when I build this PostgreSQL xcode project that I get the error.
    > And being a neophite to Mac, I'm not sure why it wouldn't find on of
    > the
    > most basic Frameworks.

    You probably don't have it as one of the frameworks in the project..  I
    believe it may have to be one of the "External Frameworks and
    Libraries" of the project and "Frameworks and Libraries" of the target
    if you expect xcode to find it and link properly.

    -bob
  • Am 10.11.2003 um 20:02 schrieb Bob Ippolito:

    > You probably don't have it as one of the frameworks in the project..
    > I believe it may have to be one of the "External Frameworks and
    > Libraries" of the project and "Frameworks and Libraries" of the target
    > if you expect xcode to find it and link properly.

    After all, a look in the build log is better than all guesses :-)

    The full command output is still available in XCode. Menu -> Build ->
    Show Detailed Build Results, then pull up the split view from the
    bottom. Have a look at the -I, -L and -framework parameters.

    Markus

    - - - - - - - - - - - - - - - - - - -
    Dipl. Ing. Markus Hitter
    http://www.jump-ing.de/
  • Well, I really am trying to get this right.  My Standard Build
    Settings/Framework search paths is set to
    '/Library/Frameworks/P3CCocoaExtensions, /System/Library/Frameworks'.

    On Nov 10, 2003, at 2:02 PM, Bob Ippolito wrote:

    >
    > On Nov 10, 2003, at 1:41 PM, Timothy Reaves wrote:
    >
    >>>>> Are the /System frameworks included by default in the header
    >>>>> search
    >>>>> path?  I'm building my first sizable project under XCode, and it is
    >>>>> complaining that Foundation/Foundation.h is not found. The import
    >>>>> line is simply:
    >>>>> #import <Foundation/Foundation.h>
    >>>>
    >>>> Are you sure you actually included the Foundation Framework?
    >>>> /usr/include is the only path you can expect to be included by >
    >>>> default.
    >>>
    >>> Presumably this has changed in Panther/XCode?  Jaguar/PB includes
    >>> /System/Library/Frameworks/ and /Library/Frameworks/ in the path by
    >>> default.  Adding the frameworks to your project is a mere formality
    >>> in
    >>> terms of gcc.  ld, on the other hand, gets a bit pickier.. ;)
    >>>
    >> I know the include is there.
    >>
    >> In a small app I created from scratch, where Foundation.h was
    >> imported, it
    >> worked fine.  Now I am tring to build a framework for PostgreSQL
    >> access,
    >> and the xcode project is not mine.
    >>
    >> It is when I build this PostgreSQL xcode project that I get the error.
    >> And being a neophite to Mac, I'm not sure why it wouldn't find on of
    >> the
    >> most basic Frameworks.
    >
    > You probably don't have it as one of the frameworks in the project..
    > I believe it may have to be one of the "External Frameworks and
    > Libraries" of the project and "Frameworks and Libraries" of the target
    > if you expect xcode to find it and link properly.
    >
    > -bob