iOS:15.4.1,Xcode:13.3.1(13E500a),macOS:12.3.1(21E258)
嗨,我最初試圖通過以下方式在終端中進行遠程除錯:
idevicedebugserverproxy -d 9999
然后在 lldb 會話中:
process connect connect://localhost:9999
但 lldb 回傳:
error: failed to get reply to handshake packet
并且 idevicedebugserverproxy 回傳:
main: Waiting for connection on local port 9999
main: Handling new client connection...
main: Waiting for connection on local port 9999
connection_handler: client_fd = 4
Could not start debugserver on device!
Please make sure to mount a developer disk image first.
我做了一些研究,說用 Xcode 構建一個應用程式會自動為我們掛載磁盤映像,所以我只是構建并運行了默認的“hello world!”。手機上的應用程式,但仍然收到上述錯誤。我也多次重啟手機,但沒有成功。
所以我決定用最新的開發者磁盤鏡像 15.4 手動掛載它:
ideviceimagemounter /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.4/DeveloperDiskImage.dmg /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.4/DeveloperDiskImage.dmg.signature
但一直收到此錯誤:
done.
Mounting...
Error: ImageMountFailed
我假設開發者磁盤映像必須與手機的版本匹配,但我找不到 15.4.1 版本。
我錯過了什么或做錯了什么?
uj5u.com熱心網友回復:
我設法通過從 brew 卸載 libplist、usbmuxd、libimobiledevice、ideviceinstaller 并從 GitHub 手動構建最新版本來解決這個問題。
done.
Mounting...
Done.
Status: Complete
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/473519.html
上一篇:如何獲取特定NFCTAG的AID
