Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this not work on iOS 18 or iPhone 16? What is the setup, not clear anywhere? #517

Open
PyroFilmsFX opened this issue Nov 18, 2024 · 2 comments

Comments

@PyroFilmsFX
Copy link

PyroFilmsFX commented Nov 18, 2024

ios pair just does:

panic: interface conversion: interface {} is nil, not []uint8

goroutine 1 [running]:
github.com/danielpaulus/go-ios/ios.Pair({0x2ab, {0x1400047c2d8, 0x8}, {0x0, {0x1400047c350, 0x7}, 0x2ab, 0x0, 0x0, {0x14000790c00, ...}}, ...})
	/Users/runner/work/go-ios/go-ios/ios/pair.go:176 +0x74c
main.pairDevice({0x2ab, {0x1400047c2d8, 0x8}, {0x0, {0x1400047c350, 0x7}, 0x2ab, 0x0, 0x0, {0x14000790c00, ...}}, ...}, ...)
	/Users/runner/work/go-ios/go-ios/main.go:2253 +0x54
main.Main()
	/Users/runner/work/go-ios/go-ios/main.go:750 +0x1f60
main.main()
	/Users/runner/work/go-ios/go-ios/main.go:60 +0x1c

ENABLE_GO_IOS_AGENT=yes sudo ios tunnel start --udid {my udid} shows:

{"level":"warning","msg":"go-ios agent is not running. You might need to start it with 'ios tunnel start' for ios17+. Use ENABLE_GO_IOS_AGENT=yes for experimental daemon mode.","time":"2024-11-18T14:30:01-06:00"}
{"level":"info","msg":"Tunnel server started","time":"2024-11-18T14:30:01-06:00"}
{"level":"info","msg":"start tunnel","time":"2024-11-18T14:30:02-06:00","udid":"{my udid}"}
{"level":"info","msg":"connect to lockdown tunnel endpoint on device","time":"2024-11-18T14:30:02-06:00"}

This is 100% the latest version:
{"version":"v1.0.158"}

ios screenshot
{"level":"info","msg":"no udid specified using first device in list","time":"2024-11-18T14:30:27-06:00","udid":"{my udid}"}
{"level":"info","msg":"no udid specified using first device in list","time":"2024-11-18T14:30:27-06:00","udid":"{my udid}"}
{"err":"ConnectToServiceTunnelIface: failed to connect to tunnel: ConnectToHttp2WithAddr: failed to dial: dial tcp [fd02:a126:{redacted}::1]:0: connect: can't assign requested address","level":"fatal","msg":"Starting screenshot service failed","time":"2024-11-18T14:30:27-06:00"}

The device correctly and fully works with my m1 Macbook with things like iPhone Mirroring.app

Where and how do I start the go-ios agent. That is explained no where. Providing the ENABLE_GO_IOS_AGENT directly for via env export does nothing.

Pair fails with an exception, yet tunnel states its connected and logs appear when attempting to screenshot.

Do I need WDA? Do I need a developer image? What does that even mean in this case?

Can you please provide me with some explanation on setup and use. The readme provides no useful information, neither does the output of the commands nor the manpage.

@PyroFilmsFX
Copy link
Author

Bumping please

@PyroFilmsFX
Copy link
Author

Hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant