agens-no / EllipticCurveKeyPair

Sign, verify, encrypt and decrypt using the Secure Enclave
Other
709 stars 115 forks source link

Wrong Simulator Detection #51

Open SEK-IOS opened 4 years ago

SEK-IOS commented 4 years ago

https://github.com/agens-no/EllipticCurveKeyPair/blob/944ae5c89ca045e9f1a113b736706c73fc51d1c2/Sources/EllipticCurveKeyPair.swift#L830

Please use something like this:

#if targetEnvironment(simulator)
// for sim only
#else
// for device
#endif