idb的安装log及解决办法

一、Quickstart OS X
Install ruby (1.9.3, 2.1 or 2.2 are known to work. Don't use 2.0)
Shared library support is required!
Under rvm use --enable-shared when installing ruby.
Under ruby-install/chruby use -- --enable-shared when installing ruby.
Under ruby-build/rbenv with ruby-build use CONFIGURE_OPTS=--enable-shared [command] when installing Ruby.
gem install bundler
brew install qt cmake usbmuxd libimobiledevice
git clone --recursive https://github.com/dmayer/idb.git
cd idb
bundle install
ruby gidb.rb

Device Requirements
Jailbroken iOS 6 or 7 (most things tested on 7, but 6 is safer for now).
SSH server running (get it from Cydia)
apt-get or aptitude (get it from Cydia)

log:

1,rvm install
\curl -sSL https://get.rvm.io | bash -s stable
jszdeiMac:~ iosTest$ rvm install ruby-2.1.4
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/osx/10.11/x86_64/ruby-2.1.4.tar.bz2
Checking requirements for osx.
Installing requirements for osx.
Updating system……..
Error running ‘requirements_osx_brew_update_system ruby-2.1.4’,
showing last 15 lines of /Users/iosTest/.rvm/log/1450786215_ruby-2.1.4/update_system.log
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure brew update works before continuing.’
++ rvm_pretty_print stderr
++ case “ rvmprettyprintflag:=autoin++case {TERM:-dumb}” in
++ case “$1” in
++ [[ -t 2 ]]
++ return 1
++ printf %b ‘Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure brew update works before continuing.\n’
Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure brew update works before continuing.
++ return 1
Requirements installation failed with status: 1.

2,brew update(之前通过 ruby-install 安装的ruby,rvm命令更新ruby时失效)
升级osx 10.11后(即osx EI),brew在使用的时候就会直接报错了。因为从10.11开始,对几个重要目录的权限苹果有了新的限制,特别是/usr目录,所以官方有一个解决方法:https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md
内容很长,如果你是第一次使用brew 就看上面的内容吧,如果你已经使用过了brew(即是从旧机器 升级上来的),你可以来一句简单的办法:
sudo chown -R $(whoami):admin /usr/local

3,brew reinstall ruby-2.1.4
error:
An error occurred while installing awesome_print (1.6.1), and Bundler cannot continue.
Make sure that gem install awesome_print -v '1.6.1' succeeds before bundling.
解决:gem install awesome_print -v ‘1.6.1’

4, gem bundle install

二、通过 ssh 命令与 手机中Cydia 建立链接,运行 idb 开始测试 ,选择相关的app 进行测试

waiting for connection
Error creating socket: Address already in use
[DEBUG] 2015-12-29 15:50:45 :: idb :: Connecting via USB
[DEBUG] 2015-12-29 15:50:45 :: idb :: Using port 54386 for SSH forwarding
[INFO] 2015-12-29 15:50:45 :: idb :: Launching SSH proxy on port 54386
waiting for connection
[INFO] 2015-12-29 15:50:46 :: idb :: Establishing SSH Session for root@localhost:54386
accepted connection, fd = 4
waiting for connection
Number of available devices == 0
No connected device found, terminating.
[ERROR] 2015-12-29 15:50:46 :: idb :: connection closed by remote host
2015-12-29 15:50:52.934 ruby[3180:2988507] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
[DEBUG] 2015-12-29 15:50:52 :: idb :: opening port 54386 for manual ssh connection
[INFO] 2015-12-29 15:50:52 :: idb :: Launching SSH proxy on port 2222
[DEBUG] 2015-12-29 15:50:52 :: idb :: opening tool port 54390 for internal ssh connection
[INFO] 2015-12-29 15:50:52 :: idb :: Launching SSH proxy on port 54390
bind(): Address already in use
Error creating socket: Address already in use
[ERROR] 2015-12-29 15:50:52 :: idb :: Unsupported iOS Version.

解决方法:
通过手机中的 Cydia 安装相关插件,电脑与手机开启ssh链接
waiting for connection
[INFO] 2015-12-30 15:23:01 :: idb :: Checking if aptget is installed…
[INFO] 2015-12-30 15:23:01 :: idb :: aptget found at /usr/bin/apt-get.
[INFO] 2015-12-30 15:23:01 :: idb :: Checking if open is installed…
[INFO] 2015-12-30 15:23:01 :: idb :: open found at /usr/bin/open.
[INFO] 2015-12-30 15:23:01 :: idb :: Checking if openurl is installed…
[INFO] 2015-12-30 15:23:01 :: idb :: openurl found at /usr/bin/uiopen.
[INFO] 2015-12-30 15:23:01 :: idb :: Checking if dumpdecrypted_armv6 is installed…
[INFO] 2015-12-30 15:23:01 :: idb :: dumpdecrypted_armv6 found at /var/root/dumpdecrypted_armv6.dylib.
[INFO] 2015-12-30 15:23:01 :: idb :: Checking if dumpdecrypted_armv7 is installed…
[INFO] 2015-12-30 15:23:01 :: idb :: dumpdecrypted_armv7 found at /var/root/dumpdecrypted_armv7.dylib.
[INFO] 2015-12-30 15:23:01 :: idb :: Checking if pbwatcher is installed…
[INFO] 2015-12-30 15:23:01 :: idb :: pbwatcher found at /var/root/pbwatcher.
[INFO] 2015-12-30 15:23:01 :: idb :: Checking if pcviewer is installed…
[INFO] 2015-12-30 15:23:01 :: idb :: pcviewer found at /var/root/protectionclassviewer.
[INFO] 2015-12-30 15:23:01 :: idb :: Checking if keychaineditor is installed…
[INFO] 2015-12-30 15:23:01 :: idb :: keychaineditor found at /var/root/keychaineditor.
[INFO] 2015-12-30 15:23:01 :: idb :: Checking if rsync is installed…
[INFO] 2015-12-30 15:23:01 :: idb :: rsync found at /usr/bin/rsync.
[INFO] 2015-12-30 15:23:01 :: idb :: Checking if cycript is installed…
[INFO] 2015-12-30 15:23:01 :: idb :: cycript found at /usr/bin/cycript.
/Users/iosTest/Desktop/idb/idb.gemspec:16: warning: Insecure world writable dir /Users/iosTest/apache-maven-3.1.1/bin in PATH, mode 040777
[INFO] 2015-12-30 15:23:11 :: port_forward :: Loading configuration from /Users/iosTest/.idb/settings.yml
[DEBUG] 2015-12-30 15:23:11 :: port_forward :: Connecting via USB
[DEBUG] 2015-12-30 15:23:11 :: port_forward :: Using port 58385 for SSH forwarding
[INFO] 2015-12-30 15:23:11 :: port_forward :: Launching SSH proxy on port 58385
waiting for connection
[INFO] 2015-12-30 15:23:11 :: port_forward :: Establishing SSH port forwarding…
accepted connection, fd = 4
waiting for connection
Number of available devices == 1
Requesting connecion to device handle == 21 (serial: 4f1df4a22008f0516a70ed2467312473e641ac91), port 22
run_ctos_loop: fd = 4
run_stoc_loop: fd = 4
[INFO] 2015-12-30 15:23:11 :: port_forward :: Setting up port forwarding…
[INFO] 2015-12-30 15:23:11 :: port_forward :: - Forwarding remote:4711 -> localhost:4711
[*] Retrieving list of applications…
[INFO] 2015-12-30 15:23:50 :: idb :: Info.plist found at /private/var/mobile/Applications/089873A8-7AA7-4501-809F-93F4E7E42CB3/CarsmartiOSCarShop.app/Info.plist
[INFO] 2015-12-30 15:23:50 :: idb :: Parsing plist file..
[INFO] 2015-12-30 15:23:53 :: idb :: Info.plist found at /private/var/mobile/Applications/D4BAFFDF-D459-455E-9375-CDB5D05C00C1/QQ.app/Info.plist

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

csdn_金手指

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值