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

Support for Real Devices? #123

Open
winstondu opened this issue Mar 20, 2020 · 4 comments
Open

Support for Real Devices? #123

winstondu opened this issue Mar 20, 2020 · 4 comments

Comments

@winstondu
Copy link

I was playing around with this library, and I noticed that this library's functionality does not seem to work on real devices, but works perfectly fine on simulator.

Is there a method to allow my tests to support real devices?

In theory, it should be more than possible to snapshot a real device. Reveal, for example, is a mac program that can interface with an iOS device and get its complete view hierarchy (as such, generating a screenshot is completely possible).

@BackdoorBANDIT
Copy link

I'm curious as well. Works well on simulator, but fails on physical device (Error: ...SnapshotError error 0).

@alanzeino
Copy link
Collaborator

I don't think we ever tried this because running on device is more friction than running on Simulator. If you have some potential fixes, feel free to PR them.

@winstondu
Copy link
Author

@alanzeino , that's true. However, there are reasons where things don't show up in simulator (e.g. hvec videos)

@alanzeino
Copy link
Collaborator

I don't think any video content should be inside a snapshot, considering video compression — I can only imagine it causing you issues down the line

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

3 participants