1.真机调试报错
问题:
Details
Could not launch “XXX”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: “LYJ”的 iPhone has denied the launch request.
Internal launch error: process launch failed: failed to get the task for process 9043
process launch failed: failed to get the task for process 9043
Domain: IDEDebugSessionErrorDomain
Code: 3
解决:Edit Scheme -> Run -> Debug excitable去掉
2.更新XCode后跑程序崩了
问题:
Terminating app due to uncaught exception ‘NSGenericException’, reason: ‘Access to UITextField’s _placeholderLabel ivar is prohibited. This is an application bug’
原因:iOS13适配问题,UITextField 的私有属性 _placeholderLabel 被禁止访问了
解决:
登录界面的 设置placeholder属性的setValueforKeyPath全改成AttributedString设置
[self.userField setValue:Color(173, 173, 173) forKeyPat