终端登录 root 用户
终端输入
export THEOS=/opt/theos
git clone --recursive git://github.com/theos/theos.git $THEOS
等待安装;安装成功后 配置环境变量;
sudo vim .bash_profile
回车 输入密码
按 i 回车 进入编辑模式
export THEOS=/opt/theos
export PATH=$THEOS/bin:$PATH
添加PATH 路径 按 ESC 退出编辑模式
按 :(冒号)进入最后行模式
输入 wq! 强制保存 退出
回到命令行输入
source .bash_profile
配置生效
测试
zeno@zeno-macbook ~ % nic.pl
NIC 2.0 - New Instance Creator
------------------------------
[1.] iphone/activator_event
[2.] iphone/activator_listener
[3.] iphone/application_modern
[4.] iphone/application_swift
[5.] iphone/cydget
[6.] iphone/flipswitch_switch
[7.] iphone/framework
[8.] iphone/library
[9.] iphone/notification_center_widget
[10.] iphone/notification_center_widget-7up
[11.] iphone/preference_bundle_modern
[12.] iphone/theme
[13.] iphone/tool
[14.] iphone/tool_swift
[15.] iphone/tweak
[16.] iphone/tweak_with_simple_preferences
[17.] iphone/xpc_service
Choose a Template (required):15