From ae0512729231cccc8a737d7c9db8ab80006ceac0 Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Thu, 18 Dec 2025 13:46:14 +0800 Subject: [PATCH] 1 --- .../CoreSimulator.com.apple.dt.xcodebuild.log | 17 ++++++++++ keyBoard/Class/Login/VC/KBEmailRegistVC.m | 32 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .home/Library/Logs/CoreSimulator/CoreSimulator.com.apple.dt.xcodebuild.log diff --git a/.home/Library/Logs/CoreSimulator/CoreSimulator.com.apple.dt.xcodebuild.log b/.home/Library/Logs/CoreSimulator/CoreSimulator.com.apple.dt.xcodebuild.log new file mode 100644 index 0000000..61b2e6f --- /dev/null +++ b/.home/Library/Logs/CoreSimulator/CoreSimulator.com.apple.dt.xcodebuild.log @@ -0,0 +1,17 @@ +Dec 18 13:42:00 macbookpro com.apple.dt.xcodebuild[42901] : Unable to deliver request ({ + "developer_dir" = "/Applications/Xcode.app/Contents/Developer"; + request = "set_developer_dir"; + }) because we are not connected to CoreSimulatorService. +Dec 18 13:42:00 macbookpro com.apple.dt.xcodebuild[42901] : Unable to discover any Simulator runtimes. Developer Directory is /Applications/Xcode.app/Contents/Developer. +Dec 18 13:42:00 macbookpro com.apple.dt.xcodebuild[42901] : Could not kickstart simdiskimaged; SimDiskImageManager services will not be available: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply from CoreSimulatorService: Connection invalid} +Dec 18 13:42:00 macbookpro com.apple.dt.xcodebuild[42901] : simdiskimaged returned error (invalid), marking disconnected. +Dec 18 13:42:00 macbookpro com.apple.dt.xcodebuild[42901] : simdiskimaged returned error (invalid), marking disconnected. +Dec 18 13:42:00 macbookpro com.apple.dt.xcodebuild[42901] : Could not get list of trusted mount directories: Error Domain=com.apple.CoreSimulator.SimError Code=410 "The service used to manage runtime disk images (simdiskimaged) crashed or is not responding" UserInfo={NSLocalizedDescription=The service used to manage runtime disk images (simdiskimaged) crashed or is not responding} +Dec 18 13:42:00 macbookpro com.apple.dt.xcodebuild[42901] : Unable to deliver request ({ + request = "notification_subscription"; + "set_path" = "/Users/mac/Library/Developer/CoreSimulator/Devices"; + }) because we are not connected to CoreSimulatorService. +Dec 18 13:42:00 macbookpro com.apple.dt.xcodebuild[42901] : Unable to deliver request ({ + request = "notification_subscription"; + "set_path" = "/Users/mac/Library/Developer/CoreSimulator/Devices"; + }) because we are not connected to CoreSimulatorService. diff --git a/keyBoard/Class/Login/VC/KBEmailRegistVC.m b/keyBoard/Class/Login/VC/KBEmailRegistVC.m index f64ed0c..b121ad4 100644 --- a/keyBoard/Class/Login/VC/KBEmailRegistVC.m +++ b/keyBoard/Class/Login/VC/KBEmailRegistVC.m @@ -530,6 +530,22 @@ _passwordTextField = [[UITextField alloc] init]; _passwordTextField.delegate = self; _passwordTextField.secureTextEntry = YES; + _passwordTextField.keyboardType = UIKeyboardTypeASCIICapable; + _passwordTextField.autocapitalizationType = UITextAutocapitalizationTypeNone; + _passwordTextField.autocorrectionType = UITextAutocorrectionTypeNo; + _passwordTextField.spellCheckingType = UITextSpellCheckingTypeNo; + if (@available(iOS 11.0, *)) { + _passwordTextField.smartQuotesType = UITextSmartQuotesTypeNo; + _passwordTextField.smartDashesType = UITextSmartDashesTypeNo; + _passwordTextField.smartInsertDeleteType = UITextSmartInsertDeleteTypeNo; + } + // 禁用 iOS 的密码自动填充/强密码建议(否则系统可能会自动填充并用黄色高亮显示) + if (@available(iOS 12.0, *)) { + _passwordTextField.textContentType = UITextContentTypeOneTimeCode; + _passwordTextField.passwordRules = nil; + } else { + _passwordTextField.textContentType = nil; + } _passwordTextField.textColor = [UIColor colorWithHex:KBBlackValue]; _passwordTextField.font = [KBFont regular:14]; _passwordTextField.returnKeyType = UIReturnKeyDone; @@ -573,6 +589,22 @@ _repeatPasswordTextField = [[UITextField alloc] init]; _repeatPasswordTextField.delegate = self; _repeatPasswordTextField.secureTextEntry = YES; + _repeatPasswordTextField.keyboardType = UIKeyboardTypeASCIICapable; + _repeatPasswordTextField.autocapitalizationType = UITextAutocapitalizationTypeNone; + _repeatPasswordTextField.autocorrectionType = UITextAutocorrectionTypeNo; + _repeatPasswordTextField.spellCheckingType = UITextSpellCheckingTypeNo; + if (@available(iOS 11.0, *)) { + _repeatPasswordTextField.smartQuotesType = UITextSmartQuotesTypeNo; + _repeatPasswordTextField.smartDashesType = UITextSmartDashesTypeNo; + _repeatPasswordTextField.smartInsertDeleteType = UITextSmartInsertDeleteTypeNo; + } + // 禁用 iOS 的密码自动填充/强密码建议(否则系统可能会自动填充并用黄色高亮显示) + if (@available(iOS 12.0, *)) { + _repeatPasswordTextField.textContentType = UITextContentTypeOneTimeCode; + _repeatPasswordTextField.passwordRules = nil; + } else { + _repeatPasswordTextField.textContentType = nil; + } _repeatPasswordTextField.textColor = [UIColor colorWithHex:KBBlackValue]; _repeatPasswordTextField.font = [KBFont regular:14]; _repeatPasswordTextField.returnKeyType = UIReturnKeyDone;