随笔 - 224  文章 - 41  trackbacks - 0
<2013年11月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

享受编程

常用链接

留言簿(11)

随笔分类(159)

随笔档案(224)

文章分类(2)

文章档案(4)

经典c++博客

搜索

  •  

最新评论

阅读排行榜

评论排行榜

关于ios越狱开发的那些事

iosopendev的安装和使用

 

人们总是寻求着简便的方法,来追求工作的效率,这样很多的工具就出来了。在前篇Theos的介绍中,我们需要编写makefile文件,还有很多工作自己需要去做。有没有一种简便的方法能够快捷如模板一样的东西,帮我们完成很多的工作吧,这个工具就是iOSOpenDev。

          

IOS OpenDev下载与安装

 

1.下载地址 http://iosopendev.com/download/

2. 安装的过程中,如果出现错误的话,可以参考:https://github.com/kokoabim/iOSOpenDev/wiki/Troubleshoot

当然有时候出现的提示不知道是什么问题的话,可以将以上的问题都FIX下,FIX一个再安装一下看看,

正如本人在安装的过程中,出现如下的错误:

Jan 28 14:20:30 xxxmatoMacBookinstalld[2020]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “iOSOpenDev-1.5.pkg”." UserInfo=0x7fc17a5291f0 {NSFilePath=./postinstall, NSURL=file://localhost/Users/xxxx/Downloads/iOSOpenDev-1.5.pkg#iodsetup.pkg, PKInstallPackageIdentifier=com.iosopendev.iosopendev15.iod-setup.pkg, NSLocalizedDescription=An error occurred while running scripts from the package “iOSOpenDev-1.5.pkg”.} {
NSFilePath = "./postinstall";
NSLocalizedDescription = "An error occurred while running scripts from the package \U201ciOSOpenDev-1.5.pkg\U201d.";
        NSURL = "file://localhost/Users/xxxx/Downloads/iOSOpenDev-1.5.pkg#iodsetup.pkg";
PKInstallPackageIdentifier = "com.iosopendev.iosopendev15.iod-setup.pkg";
    }

按照 https://github.com/kokoabim/iOSOpenDev/wiki/Troubleshoot  中的Xcode License 问题,FIX下,

 

1. Download https://github.com/downloads/kokoabim/iOSOpenDev/xcode-license.tar.gz and extract xcode-license out of it.2. Open Terminal, go to the directory where the file was extracted to and run: ./xcode-license

2.然后重新安装就可以了。

3.所有方案都试过了,还是有问题的话:

可以给  dev@iosopendev.com 发邮件,别忘了带上日志(command L, 调出日志) 

4.如果编译的时候出现如下的错误:

target specifies product type ‘com.apple.product-type.library.dynamic’, but there’s no such product type for the ‘iphoneos’ platform


可以重启下机器看看。一般是因为刚安装完IOS Open-DEV还没有重启的缘故。

 

好了,基本上的搭建已经完成了。我们来完成前面一篇文章的helloworld的程序吧。

打开xcode,建立一个logos tweak工程:


生成了如下的工程:




编写helloworld_1.xm文件,跟上次的代码一模样。

#import<UIKit/UIKit.h>
%hookSpringBoard
-(void)applicationDidFinishLaunching:(id)application {
    %orig;
UIAlertView *alert = [[UIAlertViewalloc] initWithTitle:@"Welcome"
                                                    message:@"Welcome to 漂漂 iPhone!"
delegate:nil
cancelButtonTitle:@"Thanks"
otherButtonTitles:nil];
    [alert show];
    [alert release];
}
%end

添加必须的库文件:如图

编译文件,生成deb文件


在当前目录下的Packages下生成了deb文件


总体看上来iosopendev简化了之前的很多东西,使得ios的越狱开发规范话了很多。关于hook的东西就介绍到这边,还有很多的东西需要学习才能达到所谓的入门。
posted on 2013-11-18 10:34 漂漂 阅读(7279) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理