Xcode15.3 安裝AloneMonkey

\color{red} {安裝指令}

//安裝
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)"

\color{red} {安裝腳本報錯}

//報錯

/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/

\color{red} {運行報錯}

  • \color{red} {Theos 找不到} 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
  • \color{red} {Executable\ Path\ is\ a\ Directory}
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

\color{red} {Failed\ to\ install\ the\ app\ on\ the\ device.}


有臺手機 iOS17 有問題  換個系統(tǒng)版本的手機

\color{red} {報錯找不到target 確定target存在的話 只是臨時修改 因為硬編碼的path}

/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

\color{red} {報錯 mpack.sh} /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

\color{red} {工程沒有Product目錄}

找到**.xcodeproj 顯示包內容,打開project.pbxproj,搜索mainGroup,把后邊的值替換掉productRefGroup后邊的值
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

友情鏈接更多精彩內容