扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 2369|回复: 0
收起左侧

在 iOS 搭建越狱开发环境

[复制链接]

一米阳光长工

贡献:735

金钱:276

威望:368

313

主题

322

帖子

3417

积分

发表于 2016-3-2 22:16:47 | 显示全部楼层 |阅读模式
本帖最后由 至高无上 于 2016-3-2 22:21 编辑

1、下载:[pan=http://pan.baidu.com/s/1sk1Zwjr]||2[/pan]

支持 iOS SDK 5.1, 6.1, 7.1, 8.1;CPU 架构:armv6, armv7, arm64;基于 llvm-clang 64bit; 可在 armv7 平台或 arm64 平台上设置不同的 SDK 进行编译;但 armv7 平台无法编译 arm64 平台的程序。
为什么要设置不同的 SDK 版本同时编译 armv6, armv7, arm64? 由于 iOS SDK 7 以上,已经不支持编译 armv6 的程序。 要使用例如 iOS SDK 6.1 编译 armv6、iOS SDK 7.1 编译 armv7、iOS SDK 8.1 编译 arm64。 编译后便会产生通用二进制代码 (FAT Binary) 并可支持在 armv6, armv7, arm64 平台上使用。
下载完成后,放置在 iPhone 或 iPad 的 /var/root 下。 该套件包含以下软件包:

dv-cmds 119-5 finger, fingerd, last, lsvfs, md, ps apt 1:0-23 Advanced Packaging Tool from Debian coreutils 8.12-12p Core Set of Unix Shell Utilities from GNU curl 7.33.0-8 Flexible Multi-Protocol File Transfers gdb 1821 Debugger + Debugserver 300.2 for iOS git 1.5.6.rc0-2p Fast Content-Addressable Filesystem iphone-gcc 4.2-20080604-1-8p A Native C Compiler on the iPhone ldid 1:1.1.1 Pseudo-codesign Mach-O files make 3.81-2p Dependency-Based Build Environments mobilesubstrate 0.9.5016 Powerful Code Insertion Platform mobileterminal-applesdk 520-3 A Terminal Emulator for iOS org.coolstar.cctools 855 Tools to Work with Mach-o Files ARM64 org.coolstar.ld64 224.1 linker for building on iOS arm64 org.coolstar.llvm-clang 3.4 Clang, and Compiler for iOS ARM64 org.coolstar.perl 5.14.4 Perl for iOS subversion 1.4.6-2p Modern Version Control System uikittools 1.1.9 UIKit/GraphicsServices Command Line Access vim 7.1-4 Vi improved with Multi-byte (e.g. Unicode) Support wget 1.11-3p Simple HTTP File Transfer Client
2、以 root 身份用 ssh 或本地终端登录 iPhone 或 iPad
如果曾经安装 iphone-gcc, perl … 包,请先卸载。
  1. apt-get remove
  2. apt-get remove iphone-gcc odcctools
  3. apt-get remove perl net.howett.theos
  4. rm -fr /var/theos
复制代码
3、解压及安装
  1. cd /var/root
  2. tar xzvf iphonedev_v5.1_ios81.tgz
  3. cd /var/root/iphonedev/DEBS
  4. dpkg -i *.deb
  5. cd /var/root/iphonedev
  6. mv Projects /var/mobile
  7. rm -fr /var/theos
  8. mv theos /var
复制代码
4、测试编译
  1. cd /var/mobile/Projects/blocktest
  2. make
  3. ./obj/blocktest
  4. otool -h ./obj/blocktest

  5. cd /var/mobile/Projects/ipadinfo
  6. make
  7. ./obj/ipadinfo
  8. otool -h ./obj/ipadinfo

  9. cd /var/mobile/Projects/IconRenamer
  10. make
  11. make package

  12. cd /var/mobile/Projects/WebViewer
  13. make
  14. make ipa

  15. cd /var/mobile/Projects/StandardCLibrary
  16. make output
  17. otool -h ./obj/teststring
  18. ./obj/teststring
复制代码
5、推荐使用 Textastic 编辑器进行编写,配合外置键盘效果更佳。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为兴趣而生…… 立即登录 立即注册
TOP

在 iOS 搭建越狱开发环境

1、下载:||2[/pan] 支持 iOS SDK 5.1, 6.1, 7.1, 8.1;CPU 架 ...

温馨提示:手机扫描二维码继续浏览

快速回复 返回顶部 返回列表