iOS开发环境theos开发环境搭建与介绍
iOS开发环境theos开发环境搭建与介绍
标签(空格分隔): 越狱开发-第一篇
1. 环境准备
- 一台Mac,本人的机器是MacBook Air (13-inch, Mid 2013),系统是10.11.6 (15G31)
- Mac安装Xcode,本人安装的是Version 8.2.1 (8C1002)
- VPN连接墙外环境
2. 安装流程
- 检查电脑是否安装Homebrew环境,如果出现下面的情况表示已经安装
bogon:~ user$ brew
Example usage:
brew search [TEXT|/REGEX/]
brew (info|home|options) [FORMULA...]
brew install FORMULA...
brew update
brew upgrade [FORMULA...]
brew uninstall FORMULA...
brew list [FORMULA...]
Troubleshooting:
brew config
brew doctor
brew install -vd FORMULA
Developers:
brew create [URL [--no-fetch]]
brew edit [FORMULA...]
http://docs.brew.sh/Formula-Cookbook.html
Further help:
man brew
brew help [COMMAND]
brew home
bogon:~ lunli$
- 如果没有安装,执行代码:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 安装dpkg和ldid,前者是用来打包deb的,后者用来签名
brew install dpkg ldid
- 下载theos代码到/opt/theos 目录下,并修改权限
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
sudo chown $(id -u):$(id -g) /opt/theos
- 修改~/.bash_profile环境变量,在该文件下面添加
export THEOS=/opt/theos
export PATH=/opt/theos/bin/:$PATH
- 在终端刷新环境变量
source ~/.bash_profile
3. 检查测试,终端输入 /opt/theos/bin/nic.pl 命令
bogon:~ user /opt/theos/bin/nic.pl
NIC 2.0 - New Instance Creator
------------------------------
[1.] iphone/activator_event
[2.] iphone/application_modern
[3.] iphone/cydget
[4.] iphone/flipswitch_switch
[5.] iphone/framework
[6.] iphone/ios7_notification_center_widget
[7.] iphone/library
[8.] iphone/notification_center_widget
[9.] iphone/preference_bundle_modern
[10.] iphone/tool
[11.] iphone/tweak
[12.] iphone/xpc_service
如果出现上面到结果表示安装成功!