现在的位置: 首页 > 综合 > 正文

theos iOSOpenDev 遇到的问题

2013年08月05日 ⁄ 综合 ⁄ 共 3861字 ⁄ 字号 评论关闭

最近看到一些项目 是在越狱环境下开发的 而且很使用 比如说隐藏桌面图标 还有黑名单等等这些功能。于是想看下如何开发越狱软件。

在知道IOSOpenDev这个软件的时候 安装失败 我估计 每个安装这个软件的第一次肯定不会安装成功的。

如果失败了 COMMON+L 就会看到日志,显示全部日志 就会出现失败的LOG

具体的看他们官网GitHub的说明 连接如下

https://github.com/kokoabim/iOSOpenDev/wiki/Troubleshoot

View installer log

Problem: Installer fails with:
Installer Failure

Resolution:
1. Press ⌘L to view log
2. Select Show All Errors Logs
Installer Log Show All
3. Scroll to the bottom of log to see why the installer failed.
4. Do something about it.

Developer
Tools directory set incorrectly

Problem: Installer fails with:

installd: ./postinstall: Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path.

Resolution:
1. In Terminal, run: system_profiler SPDeveloperToolsDataType
2. From the output, use the Location value and in Terminal, run: sudo
xcode-select -switch (the-location-outputted)

3. Re-run the iOSOpenDev Installer.

Xcode
License

Problem: Installer fails with the following in the log:

installd: ./postinstall: You have not agreed to the Xcode license agreements, please run xcodebuild standalone from within a Terminal window to review and agree to the Xcode license agreements.

Resolution:

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

dpkg-deb
not found

Problem: Installer fails with the following in the log:

installd: ./postinstall: Unable to locate dpkg-deb. Make sure it is installed and in the PATH. If it is not installed then use MacPorts to install it by typing `sudo port -f install dpkg` in Terminal. If MacPorts is not installed, download it from http://www.macports.org/ and install it and install dpkg. Then re-run the iOSOpenDev Installer.

Resolution: Install dpkg (follow dpkg wiki article)

Email
installer log for help

1. View installer log as described above.
2. Select all the text in the log and copy it.
3. Email copied text to dev@iosopendev.com.

Xcode
Build Failures

Use
MacPort’s dpkg

Problem: Build fails in Xcode with the following in the build message:

Building package /Users/chucknorris/Foo/Packages/Foo_1.0_iphoneos-arm.deb...
/opt/iOSOpenDev/bin/iosod: line 644: 37836 Trace/BPT trap: 5 "$dpkgdebPath" -b "$packageDir" "$packageFileName" >&/dev/null
Failed.
Command /bin/sh failed with exit code 133

Resolution: Use MacPort’s dpkg not Fink’s.

但是按照他们的方法 无法解决问题  需要同时设置上面两个条件 记得 千万要用root权限 不然是安装不上的

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/

然后./xcode-license
这个也需要root权限执行  切记


时间匆忙 就先写到这吧。


http://blog.csdn.net/jimmy54/article/details/7453298



环境需要: Mac OS X 10.6 || 10.7 XCode 4.x

一直非常想开发越狱程序.一直是无从下手,直到最近发现了Theos,实在是太好用了.刚教程写了一半,准备发我第一篇文章,结果出了个更好用的东西—iOSOpenDev. iOSOpenDev是一个XCode插件.本来如果开发越狱程序,很多东西都是手动的,像写Makefile文件,也没有IDE,还要自己找编辑器.但是现在这些都被iOSOpenDev解决了!iOSOpenDev可以在XCode里写越狱的程序,整体和写正常的App差不多.还能自动传送到设备里调试.大大降低了越狱程序的开发.
安装:

  1. 首先安装MacPorts.MacPorts类似于Ubuntu的aptitude或者python的easyInstall.验证安装的方法是在Terminal里输入port,看看有没这个命令.安装方法参照http://www.macports.org/和http://www.ccvita.com/434.html
  2. 安装dpkg.在Terminal里输入 “sudo port -f install dpkg” 会安装很长时间的,让他自己慢慢装就行了.这个是把程序打包成.deb文件用的.
  3. 官方说需要reboot,但是我没重启也可以,建议重启.
  4. 安装iOSOpenDev 下载,最好是在dpkg安装完毕后安装,否则可能会出一些未知问题.其他的都默认就行,”Dump SDK Header Files”这项默认是没选上的,这个是用来提取私有API的头文件的.大约占用5-10分钟,我当时安装的时候选上了.主要是怕之后麻烦.
  5. 在设备上安装OpenSSH并且在设备上添加SSH签名.在Cydia(别告诉我你设备没越狱…)里搜索OpenSSH安装.建议更改SSH的默认密码,默认密码是:alpine.更改方法是在Mac上登陆设备的SSH.命令”ssh root@<设备IP>”.登陆后输入命令”passwd root”.输入新密码,注意是密文.
  6. 给SSH添加签名,在Mac的Terminal里输入”iosod sshkey -h <设备IP>”,中间问你是否继续,当然yes.如果期间失败了重新试下.我失败了好几次.可能是设备屏幕关闭会断网(我的iPod Touch总断,iPad就不会).这样就不用密码也可以登陆设备SSH了.

 

然后就可以打开Xcode,新建一个工程切换到iOSOenDev.就可以新建你想要的越狱程序了!

为了方便的调试,还要在工程里设置一些参数.这里介绍下这些参数的意义.首先打开程序设置TARGETS里的工程

  1. iOSOpenDevCopyOnBuild 布尔值YES/NO 默认是NO,是否把生成的可执行文件拷贝到/var/root/iOSOpenDevBuilds/[project name]/[executable name] 路径下.是为了方便那些远程SSH控制的程序,可能暂时用不到.
  2. iOSOpenDevDevice 设置你设备的IP.
  3. iOSOpenDevInstallOnProfiling 布尔值 默认为YES, 是否在build for profiling的时候直接远程安装到设备上.
  4. iOSOpenDevPath 不要修改此项,是iOSOpenDev的安装路径.
  5. iOSOpenDevRespringOnInstall 布尔值 默认为YES,是否在安装后重启SpringBoard.

iOSOpenDev默认安装在/opt/iOSOpenDev里,在里面可以找到undocument api的头文件.

编译的时候不能像正常的App点Run,点击Product->Build For->Build For Profiling.配置好上面的设备IP,程序会自动安装到设备里.

接下来就开始写个越狱程序试试吧!

抱歉!评论已关闭.