Re: IOKit.framework - The Destruction of my Project
Re: IOKit.framework - The Destruction of my Project
- Subject: Re: IOKit.framework - The Destruction of my Project
- From: "Herb Petschauer" <email@hidden>
- Date: Tue, 12 Feb 2008 15:15:23 -0800
Noone can help you unless you post some code. Please see my previous email :-)
On 12/02/2008, Jeremy <email@hidden> wrote:
> Herb,
>
> Thanks for the reply. I don't even know what IOKit.framework does, so
> I don't call it. The only thing I call is <Cocoa/Cocoa.h> because I
> don't even interlink my classes together. What other code would
> accidently call or include those two files? And looking into the
> preferences I have no 10.5u SDK references. But if I change it to 10.5
> SDK build target, my only problem is the fact that it stalls (got to
> find that on my own)...
>
> Jeremy
>
> "How would a car function if it were designed like a computer?
> Occasionally, executing a maneuver would cause your car to stop and
> fail and you would have to re-install the engine, and the airbag
> system would say, 'Are you sure?' before going off." - Katie Hafner
>
>
> On Feb 12, 2008, at 4:43 PM, Herb Petschauer wrote:
>
> > On 12/02/2008, Jeremy <email@hidden> wrote:
> >> Hello,
> >>
> >> I have a relatively new project (meaning that it is in the design
> >> phrases) but I am coding the GUI as I design it (Mainly the showing
> >> of
> >> sheets and opening of windows). Now about a week, maybe a week and a
> >> half ago I made the decision to add a mini-web browser to the
> >> application to display formatting rules (since the site has a help
> >> page dedicated to that).
> >>
> >> I added the WebKit.framework to my project so that I could utilize it
> >> for the display of that help page. I added a copy files build phrase
> >> and such so that my set up would actually work. When I went to build
> >> with adding no code at all (just the added WebKit.framework) the
> >> build
> >> failed with 10 errors and 6 warnings.
> >>
> >> Upon investigation into these errors I discovered that it is within
> >> the 10.5sdk's IOKit.framework... I have my project's build target to
> >> be 10.4.x so that Tiger users of the site may access and use my tool.
> >> After removing the WebKit.framework stuff that I added, hoping that
> >> doing so would allow me to build my project but with no avail. I have
> >> tried to reinstall Xcode at the suggestion of a very good Cocoa
> >> developer that I trust extremely well because he believed that it
> >> could be a corrupt framework.
> >>
> >> I am working on two apps and one builds find. So here goes with my
> >> errors and warnings.
> >>
> >> error: 'io_user_reference_t' undeclared here (not in a function)
> >> error: syntax error before 'OSAsyncReference64'
> >> warning: data definition has no type or storage class
> >> error: syntax error before 'OSAsyncReference64'
> >> warning: no semicolon at end of struct or union
> >> error: syntax error before '}' token
> >> error: syntax error before 'io_user_reference_t'
> >> warning: no semicolon at end of struct or union
> >> error: 'io_user_reference_t' undeclared here (not in a function)
> >> error: syntax error before 'OSAsyncReference64'
> >> warning: data definition has no type or storage class
> >> error: syntax error before 'OSAsyncReference64'
> >> warning: no semicolon at end of struct or union
> >> error: syntax error before '}' token
> >> error: syntax error before 'io_user_reference_t'
> >> warning: no semicolon at end of struct or union
> >>
> >> We cannot figure out how this can be fixed! Any help would be
> >> appreciated!
> >
> > Basically the compiler has never seen a definition of
> > io_user_reference_t.
> >
> > You need to post your code as well. No one can really help you with
> > the info you've posted. Who is including IOUSBUserClient.h (I assume
> > that's what is bonking)? Who is including the file that includes
> > IOUSBUserClient.h (etc, all the way back to your code). You need to
> > post your code.
> >
> > Also, check your Mac OSX Deployment target and Base SDK Path. Any
> > 10.5 occurences? Check the executable preferences as well
> > (command-opt E in Xcode).
> >
> > Adding a framework to a project doesn't add any code (it's just
> > another "library" to link against). And searching on "IOKit" with
> > WebKit (under 10.4 and 10.5) doesn't yield any results so I'm
> > reasonably sure that WebKit doesn't include anything from IOKit.
> >
> > Failing all that, start from scratch but I doubt you should have to.
> >
> > Cheers,
> > -H.
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden