代码正在运行,但我如何沉默这种每次都出现的警告?
let parentView = self.parentViewController as! SBProfileViewController
parentView.savedDetailsModel = SBSavedUserModel(data:responseObject["data"].dictionaryObject! as! NSMutableDictionary)
Run Code Online (Sandbox Code Playgroud)
从'[String:AnyObject]'转换为不相关的类型'NSMutableDictionary'总是失败警告
SavedUserModel存储已保存的信息: -
class SBSavedUserModel : NSObject {
var userId : String!
var firstName : String!
var lastName : String!
var imageBase64 : String!
required init ( data : NSMutableDictionary) {
self.userId = data.objectForKey("userId") as! String
self.firstName = data.objectForKey("fName") as! String
self.lastName = data.objectForKey("lName") as! String
self.imageBase64 = data.objectForKey("image") as! String
}
Run Code Online (Sandbox Code Playgroud) *** 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“使用 VoIP 推送的 PushKit 应用程序必须链接 CallKit 或 IncomingCallNotifications 框架。”
此错误显示在使用 iOS 13 的 xcode 11 Beta 上。 xcode10 上没有问题。
使用 VoIP 推送的 PushKit 应用程序必须链接 CallKit 或 IncomingCallNotifications 框架。#voip