iOS 私有api的调用

来源:互联网 发布:dota2公开比赛数据在哪 编辑:程序博客网 时间:2024/05/16 12:08

在项目中用到了IOSurface framework,但怎么在xcode中的模拟器编译运行出错,提示找不到IOSurface,于是在Other Linker Flags 加入
-framework IOSurface  


并在真机编译运行通过。


以下摘抄有机调用ios的private api和private framework的一些讨论


I'm a noob to Xcode, I used my provisioning profile and tried to build it, but get this error.

(null): Framework not found IOSurface 


-framework IOSurface



That error is because you're trying to run it on the simulator, which doesn't work.
You must run it on a device.


IOSurface is private framework. So no way to get approve by appstore, right?


Nope, no way.
The Display Recorder apps that made their way to the Appstore were hiding their usage of private frameworks, however apple found out somewhen and kicked them



原创粉丝点击