Post

Replies

Boosts

Views

Activity

OSStatus noErr check inconsistent
Hi, I have code that has been in production for over a year with no issues, encrypting a string and checking the OSStatus as follows. let blockSize = SecKeyGetBlockSize(publickeysi!) var messageEncrypted = [UInt8](repeating: 0, count: blockSize) var messageEncryptedSize = blockSize let status: OSStatus = SecKeyEncrypt(publickeysi!, SecPadding.PKCS1, impressionString!, impressionString!.count, &messageEncrypted, &messageEncryptedSize) if status != noErr {     print("Encryption Error!")	// iPhone12 gets here } The issue is that the latest devices seem to be returning status = noErr, whilst all previous devices have been fine. An iPhone 12 and Pro reliably return error, whilst iPhone 8, 8 Plus, XR all succeed with no error. The output of method is still functional despite noErr, but it would be good to understand what may cause this inconsistent behaviour across devices. Thanks
1
0
1.3k
Dec ’20
UITextfield One Time Code persisting across all fields
Hi I am setting the textContentType of a single field in my UI. self.activationCodeField.textContentType = .oneTimeCode I now find that any textfield throughout the entire app that uses numberPad keyboard type is being suggested the code received via SMS, tested on iOS 14.5 devices. First of all I am not sure why any other field should be affected by the setting on this single textfield, bet even when I set the type on other fields to .none, the code is still suggested. anotherTextField.textContentType = .none Any ideas? Thanks
2
0
1.2k
May ’21