iOS: 15.4.1,Xcode: 13.3.1 (13E500a),macOS: 12.3.1 (21E258)
嗨,我最初试图通过以下方式远程调试终端:
idevicedebugserverproxy -d 9999
然后在11 in会话中:
process connect connect://localhost:9999
但是lldb返回了:
error: failed to get reply to handshake packet
并返回idevice调试器代理:
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版本。
我错过了什么或者做错了什么?
发布于 2022-05-13 23:31:02
我通过从brew卸载libplist、usbmuxd、libimobiledevice、ideviceinstaller和从GitHub手动构建最新版本来解决这个问题。
done.
Mounting...
Done.
Status: Complete
https://stackoverflow.com/questions/72207533
复制相似问题