iOS越狱开发 theos安装

1:下载安装

gitclonehttps://github.com/DHowett/theos

2:THEOS环境变量设置

exportTHEOS=/opt/theos

3:创建工程(需要先进入你要创建工程的目录)

$THEOS/bin/nic.pl

4:此时会看到命令行中的文本提示如下

NIC1.0-NewInstanceCreator

------------------------------

[1.]iphone/application

[2.]iphone/library

[3.]iphone/preference_bundle

[4.]iphone/tool

[5.]iphone/tweak

五种类型做个简单介绍,application是创建普通应用程序的,library是创建库文件,preference_bundle是创建设置束,tool是开发那种没有界面的,就好像helloworld那种程序的,tweak就是最精华的部分了,我们这里姑且翻译为外挂程序,关于tweak的开发介绍我打算再单独开一篇文章用来描述。接着,根据提示,分别输入模版类型、工程名、包名、作者名等参数回车,等待初始化完成即可进入工程文件夹,编辑源文件了。

ChooseaTemplate(required):1

ProjectName(required):iPhoneDevWiki

PackageName[com.yourcompany.iphonedevwiki]:net.howett.iphonedevwiki

Authour/MaintainerName[DustinL.Howett]:

Instantiatingiphone/applicationiniphonedevwiki/...

Done.

已经试验过。

安装TheosNICtemplates

https://github.com/DHowett/theos-nic-templates/archive/master.zip

可以从这个地址上获取额外的5中模板,下载后安装在/templates/iphone下即可

另外一篇参考文章

http://www.devdiv.com/home.php?mod=space&uid=54&do=blog&id=7596(这个demo是新增通知组件)

http://www.cppblog.com/AutomateProgram/archive/2013/11/11/204205.html(这个demo目的是hookSpringboard的init方法,然后在iphone启动时显示一个UIAlertView)

相关推荐