Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not build module 'IOKit' #21

Closed
Sn0wFr1tz opened this issue Jan 26, 2017 · 6 comments
Closed

Could not build module 'IOKit' #21

Sn0wFr1tz opened this issue Jan 26, 2017 · 6 comments

Comments

@Sn0wFr1tz
Copy link

Also says this when i try to compile

@Sn0wFr1tz
Copy link
Author

Could not build module 'IOKit'

@ghost
Copy link

ghost commented Jan 26, 2017

That's not a problem with the source. If you can't get the headers you shouldn't be trying to use this

@oncheonche
Copy link

Download headers
Go in Project -> build settings
Add headers path to Header Search Paths

@Sn0wFr1tz
Copy link
Author

na i can im importing them jus says this lol

@Sn0wFr1tz
Copy link
Author

alright thank you mixed that up

@kpwn kpwn closed this as completed Jan 26, 2017
@malhal
Copy link

malhal commented Jan 26, 2017

Enter these two commands:

sudo cp -r /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/IOKit.framework

sudo cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern

Happy to PR to update the Readme with these commands, but lots of Readme PRs already waiting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants