Linked frameworks

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.

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...>

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?

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...>

> 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.

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

> 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.