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

Configure custom debug device #8

Open
jamesgasek opened this issue Nov 6, 2024 · 3 comments
Open

Configure custom debug device #8

jamesgasek opened this issue Nov 6, 2024 · 3 comments

Comments

@jamesgasek
Copy link

image

It seems as if it should be possible so simply specify the target device as { platform:iOS, arch:arm64, id:00008101-001600400181001E, name:James’s iPhone } and allow xcodebuild to handle the rest?

Not sure why a nonexistent device is being used?

@jamesgasek
Copy link
Author

Looks like this depends on pymobiledevice3 per other issue
#5
Any updates here? Would love to contribute

@fireplusteam
Copy link
Owner

Hi,
currently extension just filter out all real devices as it doesn't support running or debugging on device.
it filters out in fetchDevices method of ProjectSettingsProvider class.
Integration is not straightforward as we need to bring logs to debug console, attach the process and run/debug on device tests which is a bit tricky as we need to break runs into separated targets and attach process separately for each target.

Also starting iOS 17, there's additional security checks and we need to integrate pymobiledevice3 which requires sudo password each time when you start new session. So we need to store a password somewhere securely.
I have only device with iOS 15.x so it's not possible for me to well test pymobiledevice3 integration :).

it's super great if you can contribute but it's not an easy task as we need to combine custom lldb script attach_lldp.py, tests running by xcodebuild

@fireplusteam
Copy link
Owner

According to logs, you set wrong id to your device, id is 00008101-... for you device, but seems you set id=dvtdevice.
But either way only build operation would be working, you can not run and debug as it's a bit different integration of devicectl, pymobiledevice3 and attach_lldb.py and vs code editor

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

2 participants