| iOS 4.2 SDK and IOKit Bug |
| Written by Neonkoala |
| Saturday, 04 December 2010 00:15 |
|
I decided to port Bootlace over to the iOS 4.2 SDK today. In the process however I encountered a bug left by Apple regarding IOKit. If you try to build a project in the Simulator and include libIOKit then XCode will likely spout the following error: ld: file not found: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/lib/umbrella/IOKit.hostThe fix for this is simple. XCode can’t find a symbolic link to the host’s IOKit so we can fix it with the following command: sudo ln -s /usr/lib/libIOKit.dylib /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/lib/umbrella/IOKit.host |