XCode/Frameworks/App bundles

  • Hi,

    I've been reading the docs all night and I can't work out how to get XCode to put my private framework in the output app bundle. I tried copying it in there manually but the app itself is still looking for it in the location that I build the framework.

    My app is "i.Ftp", and my framework is "Lgi"...

    Normally I build them in these folders:

    + Code
      + i.Ftp
      |  + Build
      |      + i.Ftp
      + Lgi
            + Build
              + Lgi.framework

    And I want the Lgi framework to end up in the i.Ftp.app bundle and to run happily from there. I've added Lgi.framework to the "External Frameworks and Libraries" section of my i.Ftp project and added an absolute path to it in the "Frameworks Search Path" setting so it links. The Lgi.framework appears in Targets->i.Ftp->Frameworks+Libraries... so I expected it would get copied into the final bundle. But it doesn't. And even if it did, it won't get used by the i.Ftp binary... because it's looking for it in Code/Lgi/Build...

    Help?
    --
    Matthew Allen - Memecode Software
    (http://www.memecode.com)
  • On 24 Jan 2007, at 1:39 PM, Matthew Allen wrote:

    > Hi,
    >
    > I've been reading the docs all night and I can't work out how to
    > get XCode to put my private framework in the output app bundle. I
    > tried copying it in there manually but the app itself is still
    > looking for it in the location that I build the framework.
    >
    > My app is "i.Ftp", and my framework is "Lgi"...
    >
    > Normally I build them in these folders:
    >
    > + Code
    > + i.Ftp
    > |  + Build
    > |      + i.Ftp
    > + Lgi
    > + Build
    > + Lgi.framework
    >
    > And I want the Lgi framework to end up in the i.Ftp.app bundle and
    > to run happily from there. I've added Lgi.framework to the
    > "External Frameworks and Libraries" section of my i.Ftp project and
    > added an absolute path to it in the "Frameworks Search Path"
    > setting so it links. The Lgi.framework appears in Targets->i.Ftp-
    >> Frameworks+Libraries... so I expected it would get copied into the
    > final bundle.

    Why would you expect that? If you don't tell xcode to copy, it won't
    be copied. So add a Copy Files build phase (with target Frameworks)
    to your i.Ftp target and drag the framework there. Also is the
    framework it in the Link... build phase (I don't remember if that
    happens automatically)?

    hth,
    Christiaan

    > But it doesn't. And even if it did, it won't get used by the i.Ftp
    > binary... because it's looking for it in Code/Lgi/Build...
    >
    > Help?
    > --
    > Matthew Allen - Memecode Software
    > (http://www.memecode.com)
  • Apologies if this was sent twice.

    Try this link for doc on how to do this.

    http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Tas
    ks/CreatingFrameworks.html

    --- Christiaan Hofman <cmhofman...> wrote:

    >
    > On 24 Jan 2007, at 1:39 PM, Matthew Allen wrote:
    >
    >> Hi,
    >>
    >> I've been reading the docs all night and I can't work out how to
    >> get XCode to put my private framework in the output app bundle. I
    >> tried copying it in there manually but the app itself is still
    >> looking for it in the location that I build the framework.
    >>
    >> My app is "i.Ftp", and my framework is "Lgi"...
    >>
    >> Normally I build them in these folders:
    >>
    >> + Code
    >> + i.Ftp
    >> |  + Build
    >> |      + i.Ftp
    >> + Lgi
    >> + Build
    >> + Lgi.framework
    >>
    >> And I want the Lgi framework to end up in the i.Ftp.app bundle and
    >> to run happily from there. I've added Lgi.framework to the
    >> "External Frameworks and Libraries" section of my i.Ftp project and
    >> added an absolute path to it in the "Frameworks Search Path"
    >> setting so it links. The Lgi.framework appears in Targets->i.Ftp-
    >>> Frameworks+Libraries... so I expected it would get copied into the
    >> final bundle.
    >
    > Why would you expect that? If you don't tell xcode to copy, it won't
    > be copied. So add a Copy Files build phase (with target Frameworks)
    > to your i.Ftp target and drag the framework there. Also is the
    > framework it in the Link... build phase (I don't remember if that
    > happens automatically)?
    >
    > hth,
    > Christiaan
    >
    >> But it doesn't. And even if it did, it won't get used by the i.Ftp
    >> binary... because it's looking for it in Code/Lgi/Build...
    >>
    >> Help?
    >> --
    >> Matthew Allen - Memecode Software
    >> (http://www.memecode.com)
    >
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
    >

    Jerry Porter
    2200 Benjamin Franklin Parkway
    APT S1114
    Philadelphia, PA 19130
    (301) 461-3854

    __________________________________________________
    Do You Yahoo!?
    Tired of spam?  Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
  • On Jan 24, 2007, at 5:41 AM, jerry porter wrote:

    > Try this link for doc on how to do this.
    >
    > http://developer.apple.com/documentation/MacOSX/Conceptual/
    > BPFrameworks/Tasks/CreatingFrameworks.html

    Here's another, with video:
    http://www.rentzsch.com/cocoa/embeddedFrameworks

        - Scott
previous month january 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today