Kon*_*ght 5 xcode ios ios-simulator swift
以下是摘要:
libMobileGestalt MobileGestalt.c:890:此平台不支持MGIsDeviceOneOfType
。
我已经将应用程序从Swift 2更新到4.2。大多数错误修复只是在更新语法。
任何有助于解决此问题的见解将不胜感激!
private func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: Any]?) -> Bool {
setConstants()
window = UIWindow(frame: UIScreen.main.bounds)
window!.rootViewController = RootViewController.sharedInstance
window!.makeKeyAndVisible()
preloadKeyboard()
return true
}
Run Code Online (Sandbox Code Playgroud)
RootViewController的共享实例:
static let sharedInstance = RootViewController(nibName: "RootViewController", bundle: nil)
Run Code Online (Sandbox Code Playgroud)
为什么这不是重复的问题:
| 归档时间: |
|
| 查看次数: |
950 次 |
| 最近记录: |