本帖最后由 至高无上 于 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 … 包,请先卸载。 - apt-get remove
- apt-get remove iphone-gcc odcctools
- apt-get remove perl net.howett.theos
- rm -fr /var/theos
复制代码3、解压及安装 - cd /var/root
- tar xzvf iphonedev_v5.1_ios81.tgz
- cd /var/root/iphonedev/DEBS
- dpkg -i *.deb
- cd /var/root/iphonedev
- mv Projects /var/mobile
- rm -fr /var/theos
- mv theos /var
复制代码4、测试编译 - cd /var/mobile/Projects/blocktest
- make
- ./obj/blocktest
- otool -h ./obj/blocktest
- cd /var/mobile/Projects/ipadinfo
- make
- ./obj/ipadinfo
- otool -h ./obj/ipadinfo
- cd /var/mobile/Projects/IconRenamer
- make
- make package
- cd /var/mobile/Projects/WebViewer
- make
- make ipa
- cd /var/mobile/Projects/StandardCLibrary
- make output
- otool -h ./obj/teststring
- ./obj/teststring
复制代码5、推荐使用 Textastic 编辑器进行编写,配合外置键盘效果更佳。
|