Linked frameworks

  • Hi everyone,

    I have developed my first cocoa application in xcode.
    I have used different frameworks in my application (eg: QTKit, WebKit, etc).
    I can run executable on my mac with no problem, but when I sent it to my friend he can NOT run it and program crash and quit immediately after startup.
    I suspect that I need to somehow distribute linked framework as well but I have no idea how to do that and I am not sure if this is the source of problem.

    Any help would be high;y appreciated.
  • Hello Ali,

    Did you build your target (app) using the "Release" configuration? You
    cannot use an application that was build with the "Debug"
    configuration on other computers.

    Johan

    Op 30 nov 2007, om 11:29 heeft ali alavi het volgende geschreven:

    > I can run executable on my mac with no problem, but when I sent it
    > to my friend he can NOT run it and program crash and quit
    > immediately after startup.
  • Seems you have build in Development mode. Build it in Release mode,
    will work as expected.

    - Apparao,
    Effigent Inc,.

    On Nov 30, 2007, at 3:59 PM, ali alavi wrote:

    > Hi everyone,
    >
    > I have developed my first cocoa application in xcode.
    > I have used different frameworks in my application (eg: QTKit,
    > WebKit, etc).
    > I can run executable on my mac with no problem, but when I sent it
    > to my friend he can NOT run it and program crash and quit
    > immediately after startup.
    > I suspect that I need to somehow distribute linked framework as
    > well but I have no idea how to do that and I am not sure if this is
    > the source of problem.
    >
    > Any help would be high;y appreciated.
    >
    >
    >
    > HO HO HO, if you've been naughty this year, email Santa! Visit
    > asksanta.ca to learn more!
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Xcode-users mailing list      (<Xcode-users...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/xcode-users/apparao%
    > 40effigent.net
    >
    > This email sent to <apparao...>
  • Hi Johan,

    No I built my target (app) using "Release" configuration. Sorry I forgot to mention that before.

    > CC: <cocoa-dev...>; <xcode-users...>
    > From: <johankool...>
    > To: <alialavi67...>
    > Subject: Re: Linked frameworks
    > Date: Fri, 30 Nov 2007 11:36:43 +0100
    >
    > Hello Ali,
    >
    > Did you build your target (app) using the "Release" configuration? You
    > cannot use an application that was build with the "Debug"
    > configuration on other computers.
    >
    > Johan
    >
    >
    > Op 30 nov 2007, om 11:29 heeft ali alavi het volgende geschreven:
    >
    >> I can run executable on my mac with no problem, but when I sent it
    >> to my friend he can NOT run it and program crash and quit
    >> immediately after startup.
  • Please post the crash log.

    On Nov 30, 2007, at 4:08 PM, ali alavi wrote:

    >
    > Hi Johan,
    >
    > No I built my target (app) using "Release" configuration. Sorry I
    > forgot to mention that before.
    >
    >
    >
    >> CC: <cocoa-dev...>; <xcode-users...>
    >> From: <johankool...>
    >> To: <alialavi67...>
    >> Subject: Re: Linked frameworks
    >> Date: Fri, 30 Nov 2007 11:36:43 +0100
    >>
    >> Hello Ali,
    >>
    >> Did you build your target (app) using the "Release" configuration?
    >> You
    >> cannot use an application that was build with the "Debug"
    >> configuration on other computers.
    >>
    >> Johan
    >>
    >>
    >> Op 30 nov 2007, om 11:29 heeft ali alavi het volgende geschreven:
    >>
    >>> I can run executable on my mac with no problem, but when I sent it
    >>> to my friend he can NOT run it and program crash and quit
    >>> immediately after startup.

    >
  • BTW, I had to build my application by enabling "Allow ZeroLink", otherwise I got "Undefined symbols" build errors. It is complaining about methods which I am using from frameworks.
    Can be the source of problem?

    CC: <cocoa-dev...>
    From: <apparao...>
    Subject: Re: Linked frameworks
    Date: Fri, 30 Nov 2007 16:08:54 +0530
    To: <alialavi67...>

    Seems you have build in Development mode. Build it in Release mode, will work as expected.- Apparao,Effigent Inc,.

    On Nov 30, 2007, at 3:59 PM, ali alavi wrote: Hi everyone,

    I have developed my first cocoa application in xcode.
    I have used different frameworks in my application (eg: QTKit, WebKit, etc).
    I can run executable on my mac with no problem, but when I sent it to my friend he can NOT run it and program crash and quit immediately after startup.
    I suspect that I need to somehow distribute linked framework as well but I have no idea how to do that and I am not sure if this is the source of problem.

    Any help would be high;y appreciated.

    HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! _______________________________________________Do not post admin requests to the list. They will be ignored.Xcode-users mailing list      (<Xcode-users...>)Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/xcode-users/<apparao...>
    This email sent to <apparao...>

    _________________________________________________________________
    Exercise your brain! Try Flexicon!
    Op 30 nov 2007, om 11:46 heeft ali alavi het volgende geschreven:

    > BTW, I had to build my application by enabling "Allow ZeroLink",
    > otherwise I got "Undefined symbols" build errors. It is complaining
    > about methods which I am using from frameworks.
    > Can be the source of problem?

    Absolutely. You should turn it off to build your app for distribution.
    To link you app with the frameworks it needs, go to the target, and
    find the "link binary with libraries" phase. Drag any of the
    frameworks you used there. If they come with Mac OS X, you don't have
    to ship them in your app. If they are 3rd party frameworks, add a copy
    phase to your target, set it to copy to Frameworks and add the 3rd
    party frameworks there.

    Johan
  • I just managed to build my application without ZeroLink.
    However I don't undrestand what you mean by "Drag any of the
    frameworks you used there".

    > CC: <apparao...>; <cocoa-dev...>
    > From: <johankool...>
    > To: <alialavi67...>
    > Subject: Re: Linked frameworks
    > Date: Fri, 30 Nov 2007 12:01:33 +0100
    >
    >
    > Op 30 nov 2007, om 11:46 heeft ali alavi het volgende geschreven:
    >
    >> BTW, I had to build my application by enabling "Allow ZeroLink",
    >> otherwise I got "Undefined symbols" build errors. It is complaining
    >> about methods which I am using from frameworks.
    >> Can be the source of problem?
    >
    > Absolutely. You should turn it off to build your app for distribution.
    > To link you app with the frameworks it needs, go to the target, and
    > find the "link binary with libraries" phase. Drag any of the
    > frameworks you used there. If they come with Mac OS X, you don't have
    > to ship them in your app. If they are 3rd party frameworks, add a copy
    > phase to your target, set it to copy to Frameworks and add the 3rd
    > party frameworks there.
    >
    > Johan
  • Ali,

    Op 30 nov 2007, om 13:13 heeft ali alavi het volgende geschreven:

    > However I don't undrestand what you mean by "Drag any of the
    > frameworks you used there".

    You'll find a Frameworks group in your project. If you use a
    framework, it is best to add it to your project as you normally would
    with another file, only not copying it into your project if it is a
    system provided framework. From there you drag the framework onto the
    "link binary with libraries" phase in your target.

    Johan

    ---
      Peacock
      - Proudly presenting the peaks... -

      http://peacock.johankool.nl/
  • Thanks Johan,

    That fixed my problem.

    > CC: <cocoa-dev...>
    > From: <johankool...>
    > To: <alialavi67...>
    > Subject: Re: Linked frameworks
    > Date: Fri, 30 Nov 2007 13:59:19 +0100
    >
    > Ali,
    >
    > Op 30 nov 2007, om 13:13 heeft ali alavi het volgende geschreven:
    >
    >> However I don't undrestand what you mean by "Drag any of the
    >> frameworks you used there".
    >
    > You'll find a Frameworks group in your project. If you use a
    > framework, it is best to add it to your project as you normally would
    > with another file, only not copying it into your project if it is a
    > system provided framework. From there you drag the framework onto the
    > "link binary with libraries" phase in your target.
    >
    > Johan
    >
    > ---
    > Peacock
    > - Proudly presenting the peaks... -
    >
    > http://peacock.johankool.nl/
    >
    >
    >
    >

    _________________________________________________________________
    Exercise your brain! Try Flexicon!
    previous month november 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    
    Go to today