//安裝
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)"
//報錯
/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec not found
//查找路徑
cd /Applications/Xcode.app/Contents
find . -name Embedded-Device.xcspec
//查到的路徑
./SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin/Contents/Resources/Embedded-Device.xcspec
//創(chuàng)建目錄 如果沒權限 在設置--隱私安全性--App 管理增加終端.app 或者打開終端的允許開關
sudo mkdir -p /Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/
//拷貝
sudo cp /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin/Contents/Resources/Embedded-Device.xcspec /Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources
//報錯
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Package Types.xcspec not found
//查找路徑
cd /Applications/Xcode.app/Contents
find . -name MacOSX\ Package\ Types.xcspec
//查到的路徑
./SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin/Contents/Resources/MacOSX Package Types.xcspec
//創(chuàng)建目錄
sudo mkdir -p /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/
//拷貝
sudo cp /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin/Contents/Resources/MacOSX\ Package\ Types.xcspec /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/
//報錯
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Product Types.xcspec not found
//查找路徑
cd /Applications/Xcode.app/Contents
find . -name MacOSX\ Product\ Types.xcspec
//查到的路徑
./SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin/Contents/Resources/MacOSX Product Types.xcspec
//拷貝
sudo cp /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin/Contents/Resources/MacOSX\ Product\ Types.xcspec /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/
-
Failed to locate Logos Processor. Is Theos installed
按照如下路徑進行解決:
git clone --recursive https://github.com/theos/theos.git 然后拖到/opt 目錄下
- input files cannot be found: '/usr/lib/libstdc++.dylib', '/usr/lib/libc++.dylib'.--替換fishhook 修改other link
按照如下路徑進行解決:
* 項目地址:[https://github.com/facebook/fishhook](https://github.com/facebook/fishhook)
* 下載項目文件,復制 fishhook.h 、fishhook.c 文件到如下路徑,覆蓋替換歷史的 fishhook 文件
* /opt/MonkeyDev/templates/MonkeyAppMac.xctemplate/fishhook/
* /opt/MonkeyDev/templates/MonkeyAppLibrary.xctemplate/fishhook/

image.png
set ENABLE_USER_SCRIPT_SANDBOXING to NO 只用蓋著一個Target就行,還是不行就要Xcode Clean一下再運行

image.png
或者 在 Taget-Build Settings 中設置 Generate Info.plst File 為 NO,Info.plist File 設置為 項目文件夾名/Info.plist

image.png
有臺手機 iOS17 有問題 換個系統(tǒng)版本的手機
/opt/MonkeyDev/Tools/mpack.sh
的下面部分
#exename
TARGET_APP_PATH=$(find "$SRCROOT/$TARGET_NAME/TargetApp" -type d | grep ".app$" | head -n 1)
修改
find "/Users/mac/Desktop/chuanqibox/chuanqibox/TargetApp" -type d | grep ".app$" | head -n 1
/opt/MonkeyDev/Tools/mpack.sh: line 57: 27954 Killed: 9 "$APP_BINARY_PATH"
/opt/MonkeyDev/Tools/mpack.sh: line 57: 27954 Killed: 9 "$APP_BINARY_PATH"
在Xcode 項目內: Targets ---> Build Phases ---> Run Script
勾選:Show environment variables in build log
勾選: For install builds only / Run script only when installing
找到**.xcodeproj 顯示包內容,打開project.pbxproj,搜索mainGroup,把后邊的值替換掉productRefGroup后邊的值