tweak环境安装及编写
tweak安装及编写
1. 安装dpkg与ldid
brew install dpkg ldid
2. 安装Theos
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
给theos安装目录权限
sudo chown $(id -u):$(id -g) /opt/theos
配置环境变量
vim ~/.bash_profile
在.bash_profile文件的末尾加上
export THEOS=/opt/theos export PATH=/opt/theos/bin/:$PATH
然后执行
source ~/.bash_profile
3. 开始编写tweak
在终端输入nic.pl
, 然后选择iphone/tweak
对应的编号
$ nic.pl
NIC 2.0 - New Instance Creator
------------------------------[1.] iphone/activator_event[2.] iphone/application_modern[3.] iphone/application_swift[4.] iphone/cydget[5.] iphone/flipswitch_switch[6.] iphone/framework[7.] iphone/ios7_notification_center_widget[8.] iphone/library[9.] iphone/notification_center_widget[10.] iphone/preference_bundle_modern[11.] iphone/tool[12.] iphone/tool_swift[13.] iphone/tweak[14.] iphone/xpc_service
Choose a Template (required):
选择13, 输入项目名称FirstTweak
Choose a Template (required): 13
Project Name (required): FirstTweak
Package Name直接回车,Author默认回车,剩下的一直回车即可。
Package Name [com.yourcompany.firsttweak]:
Author/Maintainer Name [daye]: daye
[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 firsttweak/...
Done.
4. 安装tweak
将22端口转发到22222
iproxy 22222 22
回到终端,cd到tweak目录, 连接我们的越狱手机
$ make package install
如果报错,缺少THEOS_DEVICE_IP
,在终端输入如下
export THEOS_DEVICE_IP=localhost:22222
再次执行make package install
结果如下:
$ make package install
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -find llvm-dsymutil 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "llvm-dsymutil", not a developer tool or in PATH
> Making all for tweak FirstTweak…
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -find llvm-dsymutil 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "llvm-dsymutil", not a developer tool or in PATH
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -find llvm-dsymutil 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "llvm-dsymutil", not a developer tool or in PATH
make[2]: Nothing to be done for `internal-library-compile'.
> Making stage for tweak FirstTweak…
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -find llvm-dsymutil 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "llvm-dsymutil", not a developer tool or in PATH
dm.pl: building package `com.yourcompany.firsttweak:iphoneos-arm' in `./packages/com.yourcompany.firsttweak_0.0.1-3+debug_iphoneos-arm.deb'
==> Installing…
root@localhost's password:
Selecting previously unselected package com.yourcompany.firsttweak.
(Reading database ... 2140 files and directories currently installed.)
Preparing to unpack /tmp/_theos_install.deb ...
Unpacking com.yourcompany.firsttweak (0.0.1-3+debug) ...
Setting up com.yourcompany.firsttweak (0.0.1-3+debug) ...
install.exec "killall -9 SpringBoard"
root@localhost's password:
输入两次密码后,成功安装到手机。
tweak环境安装及编写相关推荐
- 安装jdk配置环境、cmd命令行测试环境变量配置是否正确及运行java程序、安装IDEA编写代码测试
文章目录 1.安装jdk配置环境 2.cmd命令行测试环境变量配置是否正确及运行java程序 3.安装IDEA编写代码测试 1.安装jdk配置环境 首先打开官网Oracle https://www.o ...
- Go语言(下载、安装、环境配置、GoLand编译器安装、编写HelloWorld)
文章目录 Go语言(下载.安装.环境配置.GoLand编译器安装.编写HelloWorld) 一.官网下载 二.无脑安装 三.配置环境变量 四.GoLand开发工具安装 五.编写Hello World ...
- 使用VS2019编写C语言程序,环境安装配置+代码调试
墙裂推荐:C语言学习资源汇总,史上最全面总结,没有之一 环境安装配置 首先我们要在Visual Studio官方网站去下载安装包 https://visualstudio.microsoft.com/ ...
- Go语言环境安装,验证go语言环境、使用文本编辑器编写一个go hello world,Go lang IDE安装,在golang中新建一个go程序
1 Golang语言环境安装包下载 https://www.golangtc.com/ 下载: go1.9.2.windows-amd64.msi 和 go1.9.2.windows-amd64.zi ...
- 2021年大数据常用语言Scala(二):Scala开发环境安装
目录 开发环境安装 安装JDK 安装scala SDK 步骤 具体操作 安装IDEA scala插件 步骤 开发环境安装 学习如何编写scala代码之前,需要先安装scala编译器以及开发工具 sca ...
- lua菜鸟教程_Lua 环境安装
Lua 环境安装 Linux 系统上安装 Linux & Mac上安装 Lua 安装非常简单,只需要下载源码包并在终端解压编译即可,本文使用了5.3.0版本进行安装: curl -R -O h ...
- windows环境下32位汇编语言程序设计 90盘_Python 0基础详细教程 环境安装01
Python语言有什么用,首先让大家了解Python语言的基本知识: Python语言是一种解释型,面向对象,动态数据类型的高级程序设计语言,Python语言是数据分析师的首选数据分析语言,通过数据挖 ...
- 使用VS2019开始第一个C语言程序,环境安装配置+代码实例
C语言文章更新目录 C/C++学习资源(百度云盘链接) 计算机二级资料(过级专用) C语言学习路线(从入门到实战) 编写C语言程序的7个步骤和编程机制 C语言基础-第一个C程序 C语言基础-简单程序分 ...
- linux go语言运行环境,安装Go语言运行环境
安装Go运行环境,如果从旧版本的Go进行升级,必须先删除现有版本. 1. 二进制包安装 下载包 cd /usr/local/src wget https://storage.googleapis.co ...
- python数字图像处理(1):环境安装与配置
一提到数字图像处理编程,可能大多数人就会想到matlab,但matlab也有自身的缺点: 1.不开源,价格贵 2.软件容量大.一般3G以上,高版本甚至达5G以上. 3.只能做研究,不易转化成软件. 因 ...
最新文章
- 技术人的不惑之路...... | 每日趣闻
- 支持向量机原理(一)线性支持向量机
- 【paddlepaddle速成】paddlepaddle图像分类从模型自定义到测试
- 超标量体系结构_CPU体系结构以及指令流水原理
- 闪电网络介绍以及试用 (上)
- 获取某几个分类下的前N条数据 mssql语句
- 数码显示实验报告C语言,数码问题C语言A星算法详细实验报告含代码(9页)-原创力文档...
- http://127.0.0.1:8000/accounts/login/总是重定向到http://127.0.0.1:8000/accounts/profile/并且报告404
- 真正的maven私服搭建器--Artifactory
- HealthKit有名无实,疑点重重
- 【ArcGIS遇上Python】栅格影像批量除以10000
- oracle 有计划任务吗,oracle计划任务的问题
- html5 职工入职后台管理系统_ChemCMS是一款基于GO+PHP+MYSQL+HTML5构建的化学内容管理系统
- c#自动更新+安装程序的制作
- linux raid autodetect,软raid的建立
- 【华为云技术分享】【开发记录】Linux服务器维护常用命令(二)
- 屏幕距离和坐便转换工具_【软件推荐】你和大神的距离,只差这几个效率工具!...
- 我的.emacs(Ubuntu版)
- Arts 第九周(5/13 ~ 5/19)
- 自我鉴定200字大专生计算机专业,本科毕业自我鉴定200字(通用10篇)