Question: how to use iokit in xcode?
Answer: Step 1：Import IOKit Framework Then go to application Target → General in Xcode project tab, and find “Link Frameworks and Libraries“. Press the add button on the bottom left and use “Add Other” button to find the framework in the specific path.