* 方案B. 直接clone下来,执行安装
~~~bash
git clone https://github.com/AloneMonkey/MonkeyDev.git
cd MonkeyDev/bin
sudo bash md-install
~~~
### 2 安装时报错
~~~cpp
Failed to download https://raw.githubusercontent.com/AloneMonkey/frida-ios-dump/3.x/dump.py to /opt/MonkeyDev/bin/dump.py
Failed to download https://raw.githubusercontent.com/AloneMonkey/frida-ios-dump/3.x/dump.js to /opt/MonkeyDev/bin/dump.js
~~~
这两个报错对应安装文件中的
~~~dart
#downloadFile "https://raw.githubusercontent.com/AloneMonkey/frida-ios-dump/3.x/dump.py" "$MonkeyDevPath/bin/dump.py"
#downloadFile "https://raw.githubusercontent.com/AloneMonkey/frida-ios-dump/3.x/dump.js" "$MonkeyDevPath/bin/dump.js"
~~~
直接把他们注释,然后主动去下载
新建一个`git`目录
~~~bash
git clone https://github.com/AloneMonkey/frida-ios-dump.git
cd frida-ios-dump
~~~
把里面的`dump.js`和`dump.py`拷贝到`/opt/MonkeyDev/bin`目录下
### 3安装时报错
~~~undefined
File /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Package Types.xcspec not found
~~~
这是新版的Xcode12上文件目录发生了改变,我们需要手动修改它
我们把如下三行代码注释
~~~objectivec
# macosxSDKSpecificationsPath=$macosSdkPlatformPath/Developer/Library/Xcode/Specifications
# packageTypesForMacOSXPath="$macosxSDKSpecificationsPath/MacOSX Package Types.xcspec"
# productTypesForMacOSXPath="$macosxSDKSpecificationsPath/MacOSX Product Types.xcspec"
~~~
修改如下
~~~bash
macosxSDKSpecificationsPath=$macosSdkPlatformPath/Developer/Library/Xcode/PrivatePlugIns
packageTypesForMacOSXPath="$macosxSDKSpecificationsPath/IDEOSXSupportCore.ideplugin/Contents/Resources/MacOSX Package Types.xcspec"
productTypesForMacOSXPath="$macosxSDKSpecificationsPath/IDEOSXSupportCore.ideplugin/Contents/Resources/MacOSX Product Types.xcspec"
~~~
重新执行安装指令
~~~css
Downloading MonkeyDev base from Github...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3452k 0 3452k 0 0 2619k 0 --:--:-- 0:00:01 --:--:-- 2619k
Downloading Xcode templates from Github...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 306k 100 306k 0 0 192k 0 0:00:01 0:00:01 --:--:-- 192k
Downloading frida-ios-dump from Github...
Creating symlink to Xcode templates...
Modifying Bash personal initialization file...
~~~
otool -l 值执行文件名 | grep crypt