SNES4iOS icon indicating copy to clipboard operation
SNES4iOS copied to clipboard

Cannot build for iPhone 4S

Open offbywon opened this issue 12 years ago • 5 comments

I am trying to compile from XCode on my iPhone, but I am getting a linker error that the library "-lIOKit" cannot be found:

ld: library not found for -lIOKit clang: error: linker command failed with exit code 1 (use -v to see invocation)

Does anyone know how to get the library and what to do with it?

offbywon avatar Jul 20 '13 03:07 offbywon

It's supposed to be built in. My current conjecture is that it's not present on iOS 7? But I'm not sure.

indirect avatar Oct 01 '13 02:10 indirect

I'm having the same issue for iPad Air and iPhone 5s on iOS 7. Anyone have a solution?

valdetero avatar Nov 26 '13 05:11 valdetero

Found a way to run snes4ios on my ipad air: As libIOKit.dylib is not available anymore I removed it from the project and tried to replace it with the IOKit.framework. To do this in Xcode 5 you have to create a symlink like shown here: http://stackoverflow.com/questions/17542092/iokit-not-found

cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/IOKit.framework
sudo ln -s Versions/A/IOKit .

After creating the symlink I was able to drag & drop the IOKit.framework from the directory above into my project and to run snes4ios on my ipad. :)

danurna avatar Dec 07 '13 10:12 danurna

I follow the solution, and I was able to build the solution. But now I can't load the ROM without crash the app

yurikimo avatar Apr 17 '14 02:04 yurikimo

@yurikimo afraid I can't help. My only problem was that it didn't build. I think I've tried one or two ROMs but just for trying and not really playing. Maybe you could provide more information like the crash log?

danurna avatar Apr 17 '14 10:04 danurna