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 13:43:32 -0800
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