kanecheshire / biometricautomationdemo Goto Github PK
View Code? Open in Web Editor NEWDependency free iOS biometric automation example.
Dependency free iOS biometric automation example.
In Xcode 10.1, XCUI can't find the cancel button when failing biometric authentication.
I've checked in Xcode 10.2 beta and it's working fine, plus there's a workaround where you can press the home button (even on an iPhone X simulator) to dismiss the prompt:
XCUIDevice.shared.press(.home)
Creating an issue for visibility incase anyone else has run into this issue.
i'm getting the error biometrics unavailable when i'm using the iphone 8 simulator.
The UI tests are crashing because the NSFaceIDUsageDescription
key hasn't been specified in the project's Info.plist
(also it needs to be handled in the UI tests i.e. accepting the authorisation dialog).
I only realised this when writing UI tests for TABTestKit - I thought it may have something to do with the bridging header, but upon digging deeper into the stack trace, I noticed the text __CRASHING_DUE_TO_PRIVACY_VIOLATION__
and then it hit me - I forgot to include the NSFaceIDUsageDescription
key! I checked this demo project and noticed it's missing it as well, so the UI tests will crash unless its fixed.
Surprisingly the tests pass in the end if you leave it for a minute: tearDown
takes about 60 seconds and then the tests pass ๐ค Seems like a bug in Xcode, this shouldn't be happening!
Any idea if this is possible for macOS?
Thanks
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.