Re: GCC 4 Failed during compiling with a framework :(
Re: GCC 4 Failed during compiling with a framework :(
- Subject: Re: GCC 4 Failed during compiling with a framework :(
- From: malcom <email@hidden>
- Date: Thu, 24 Nov 2005 10:12:24 +0100
Ok I've solved the problem.
This the correct way to add a framework:
1. Make sure the framework bundle ".framework" appears in "Groups &
Files "Frameworks -> Linked Frameworks" group (you can drag it here).
2. Create a new copy files build phase ******after the Copy Bundle
Resources***** (this is my mistake!!!) build phase
3. Drag a copy of the framework to this new Build Phase
4. In the build phase inspector change the "Destination:" to
"Frameworks"
5. Remember to import the framework into your code with something like:
#import <xy/xy.h>
Now all works fine!
2005/11/24, E. Wing <email@hidden>:
> Your download link is broken. Total random guess, maybe gcc has
> nothing to compile? Do you have files that are checked to be compiled?
> Also is the framework from the cross-project checked (so it knows it
> has to be linked?
>
> -Eric
>
>
>
> > From: malcom <email@hidden>
> > Subject: GCC 4 Failed during compiling with a framework :(
> > To: Cocoa ML <email@hidden>
> > Message-ID: <email@hidden>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hello (again),
> >
> > I have finally compiled my framework. Following the Renzsch docs at
> > http://rentzsch.com/cocoa/embeddedFrameworks I've tried to add my
> > framework into the project. But (without using it) during the
> > compilation phase I receive this error:
> >
> > Tool:0: Command /usr/bin/gcc-4.0 failed with exit code 1
> > then this warning
> > Tool:0: can't locate framework for: -framework nemoTabFM
> > Tool:0: warning -F: directory name
> > (Support/tab/myApp/../../nemoTabFM/build/Release) does not exist
> > Tool:0: warning -F: directory name (Software/Progetti/Tab) does not exist
> > Tool:0: warning -F: directory name (/Users/malcolm/Documents/Sviluppo)
> > does not exist
> >
> > I've tried to copy it in my project folder but the gcc-4.0 error still
> > here.
> > James have successfully used it in a project (I wrote to him a mail
> > but I've not received any response) but I can't. The project is here:
> > http://www.malcom-mac/files/tab.zip (120kb). If anyone can find where
> > is the here I'll appreciate it too.
> > Thanks
> >
>
--
-- marklar-x86 software development --
web: www.malcom-mac.com
mail: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden