hjerpbakk / xnapshot Goto Github PK
View Code? Open in Web Editor NEWAutomated, localized screenshots of your iOS app on every device using C#.
Home Page: https://hjerpbakk.com/blog/2019/07/10/xnapshot
License: MIT License
Automated, localized screenshots of your iOS app on every device using C#.
Home Page: https://hjerpbakk.com/blog/2019/07/10/xnapshot
License: MIT License
Here's part of the output I get:
Running command. { Path: "sh", Arguments: "-c "otool -o '.../zxing.portable.dll' | grep CalabashServer"", CurrentDirectory: "/Users/trevorcox/Documents/src/ftx3.lane2/FunTimes3" }
Finished with exit code 1 in 39 ms.
llvm-objdump: '.../zxing.portable.dll': Object is not a Mach-O file type.
Starting app bundle. { AppBundle: "....iOS.app" }
Finished with exit code 0 in 1726 ms.
Known Devices:
Apple TV (12.2) [...] (Simulator)
Running command. { Path: "ps", Arguments: "-xww -o pid,user,args", CurrentDirectory: "..." }
Finished with exit code 0 in 44 ms.
(process list dump due to crash)
Uncaught exception handling
Does this work from windows (with remote simulator), too?
To work with fastlane deliver, for automated uploads of screenshots to App Store Connect, the screenshot of a 12.9-inch iPad Pro (3rd generation) must contain either the string "iPad Pro (12.9-inch) (3rd generation)" or "ipadPro129". Xnapshot creates: "1 iPad-Pro--12-9-inch---3rd-generation-".
It would be nice to be able to override TakeScreenshot (or a new name method) to change the filename format.
Setting Simulator Locale -> https://notificare.com/blog/2020/05/22/Using-iOS-Simulator-with-the-Command-Line/
Sometimes I am able to get all 4 screenshots that I've configured. Other times, just 0, 1 or 2, then Xnapshot.Screenshots.TakeScreenshots () throws:
Exception: Xamarin.UITest.XDB.Exceptions.DeviceAgentException
Unable to contact DeviceAgent
Maybe a timeout that can be extended?
Feels like it's a bit more reliable if I close the simulator before starting. I'm running from Studio on macOS with Debug configuration (less luck so far with Release or the command line).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.