iOS逆向

Theos 制作插件流程

2017-06-22  本文已影响167人  24K_纯帅

Theos 安装流程

sudo xcode-select -s /Applications/Xcode8.app/Contents/Developer
// 创建临时的环境变量
export THEOS=/opt/theos

// clone 项目到/opt/theos目录下
sudo git clone git://github.com/DHowett/theos.git $THEOS

/* 
上面这个命令是书上写的命令, 但是发现貌似这样下载不会把依赖下载下载, 所以建议用下面这个命令
因为我在后面打包时, 会出现 ==> Error: The vendor/include and/or vendor/lib directories are missing. Please run `git submodule update --init --recursive` in your Theos directory. More information: https://github.com/theos/theos/wiki/Installation.
后来我在opt/theos目录下, 用 git submodule update --init --recursive 这个命令才解决无法使用make命令打包的问题
*/
git clone --recursive git://github.com/DHowett/theos.git $THEOS

配置ldid

sudo chmod 777 /opt/theos/bin/ldid

配置CydiaSubstrate

配置dpkg-deb

sudo chmod 777 /opt/theos/bin/dpkg-deb

自此就全部操作完成, 可以开始用 Theos 开发插件了

创建工程

// $THEOS 是一开始设置好的环境变量
// test 是工程名
$THEOS/bin/nic.pl test - New Instance Creator
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
Choose a Template (required): 11
> Making all for tweak test…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (armv7)…
==> Linking tweak test (armv7)…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (arm64)…
==> Linking tweak test (arm64)…
==> Merging tweak test…
==> Signing test…
上一篇 下一篇

猜你喜欢

热点阅读