将GraphicsServices私有框架添加到IOS中 [英] add GraphicsServices private framework into IOS

查看:77
本文介绍了将GraphicsServices私有框架添加到IOS中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上,我需要以编程方式锁定我的iPhone,我已经在互联网上进行搜索,也得到了一些想法,也就是使用GraphicsServices.frameworkGSEventLockDevices()方法.到我的项目?我知道这是越狱的,但没问题.

actually I need to lock my iPhone programmatically, I have searched in the internet, also got some ideas, that is, using GraphicsServices.framework and GSEventLockDevices() method.. here is the thing: how can I add a private framework to my project? I knew it's jailbreaking, but no problem.

有人可以帮助我向Xcode添加私有框架并以编程方式锁定设备吗?

Could anyone help me to add a private framework to Xcode and lock the device programmatically?

推荐答案

如果您错过了导入某些框架的方法,则可能会遇到此类错误. ..

If you missed to import certain framework means, you may get like this kind of error.. When I met like this kind of problem, i have followed this way..

1)在项目导航窗口中选择项目,该项目将在右侧显示项目摘要

1) Select the project in the project navigation window which will show project summary on right

2)选择第四个标签构建阶段

2) Select 4th tab build phases

3)选择使用库选项链接二进制文件"

3) Select Link binary with library option

4)添加您要获得的框架

4) Add framework for which you are getting

5)将框架从主文件夹移动到框架文件夹

5) Move the framework from main folder to the frameworks folder

6)重新构建它,错误消失了.

6) Build it again and errors are gone.

希望这会有所帮助:)

这篇关于将GraphicsServices私有框架添加到IOS中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆