Fwd: IOKit.framework - The Destruction of my Project
Fwd: IOKit.framework - The Destruction of my Project
- Subject: Fwd: IOKit.framework - The Destruction of my Project
- From: Jeremy <email@hidden>
- Date: Tue, 12 Feb 2008 19:07:47 -0500
Hey,
I had this huge e-mail typed up... Explaining what I did and reply to
you specifically Herb. With Jens reply I find that useless and
restarted. Great. lol.
Once I went into "Edit Active Target..." I was looking at all the SDK
paths and under Search Paths the second option DID actually include
10.5 SDK's path. Now once I remove that and set it back to what it was
I got a building app. I can't say that it is working (It stalls on
start up and I don't know why, but that is for me to find out).
So thanks to Herb for dealing with my beginner cluelessness and thanks
to the reply by Jens that actually got me looking in the right place
(No offense Herb!). (Sorry Herb for sending that e-mail straight to
you, it was a quick automatic click to send instead of changing the e-
mail!)
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 6:56 PM, Herb Petschauer wrote:
Ok, almost there. You're not quite there yet. IOKitLib.h doesn't use
io_user_reference_t. What file does IOKitLib.h include (and so on) to
generate the errors.
Also, if you create a brand new Cocoa project (that has a pch file
with the same import), does that compile?
You haven't edited any system header files have you? (You're not
logged in as root?)
Cheers,
-H.
On 12/02/2008, Jeremy <email@hidden> wrote:
Herb,
The error chain? Meaning where it is happening? Hopefully this is
correct.
MyProject_Prefix.pch
- Cocoa.h
-- Foundation.h
--- NSAppleEventDescription
---- ApplicationServices.h
----- CoreServices.h
------ AE.h
------- CarbonCore.h
-------- Components.h
--------- Files.h
---------- DADisk.h
----------- IOKitLib.h
That is where the errors are listed. If you would like to see a
screen
cap of my errors one can be found within this thread of a coding
forum:
http://www.youngcoders.com/showpost.php?p=138849&postcount=7
Thanks for anything,
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 6:41 PM, Herb Petschauer wrote:
How about the error chain? I don't see where Cocoa.h is including
anything from IOKit. What is the offending header file that is
including the IOKit header file? Who is including the offending
header file, etc., etc.
On 12/02/2008, Jeremy <email@hidden> wrote:
Herb,
This is the code where the errors occur (Since you wanted code):
//
// Prefix header for all source files of the 'My Project' target in
the 'My Project' project
//
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
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 6:15 PM, Herb Petschauer wrote:
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
_______________________________________________
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