标签:int for str 输入 blog hunk install list 运行
1.安装Xcode环境. AppStore直接安装.不多表述.
2.安装THEOS,
#打开终端,设置目录 export THEOS=/opt/theos #安装 THEOS sudo svn co http://svn.howett.net/svn/theos/trunk $THEOS
3.下载ldid.
#下载到tmp sudo curl -s http://dl.dropbox.com/u/3157793/ldid > /tmp/ldid #复制 sudo cp /tmp/ldid $THEOS/bin/ #权限 sudo chmod +x $THEOS/bin/ldid #删除 rm /tmp/ldid
4.dpkg,打包用
#安装Xcode Command Tools xcode-select --install
#安装Macport 选择自己的系统版本
#https://guide.macports.org/chunked/installing.macports.html
#设置下Port的环境 不然一直报command not found: port
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
#安装dpkg
sudo port install dpkg
5.建立新工程
直接使用终端在你需要建立新工程的目录里
#如果之前的command已经关闭,重新输入运行 export THEOS=/opt/theos 设置环境变量
$THEOS/bin/nic.pl
如下,一般都是选5...
? ~ $THEOS/bin/nic.pl NIC 2.0 - New Instance Creator ------------------------------ [1.] iphone/application [2.] iphone/library [3.] iphone/preference_bundle [4.] iphone/tool [5.] iphone/tweak Choose a Template (required): 5 Project Name (required): NewTest Package Name [com.yourcompany.newtest]: com.m1989.newtest Author/Maintainer Name [KayCM]: [iphone/tweak] MobileSubstrate Bundle filter [com.apple.springboard]: [iphone/tweak] List of applications to terminate upon installation (space-separated, ‘-‘ for none) [SpringBoard]: Instantiating iphone/tweak in newtest/... Done.
未完待续...
标签:int for str 输入 blog hunk install list 运行
原文地址:http://www.cnblogs.com/ngi8/p/6062385.html