First lets start by how to link the Frameworks
go to https://github.com/kennytm/iphone-private-frameworks/tree/master/IOSurface and download the headers
the IOSurfaceAPI.h files is not included with the download link "due to legal reasons" link and you have to copy it from Xcode from here
change MacOSX10.11.sdk in the path according to the sdk included with Xcode
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/IOSurface.framework/Versions/A/Headers
- go to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/PrivateFrameworks/IOSurface.framework
and create a folder named Headers
replace iPhoneOS.platform with iPhoneSimulator.platform an paste the headers in simulator SDK folder too if you want to try apps on the simulator
- paste all files inside
Now you can use the IOSurface Framework