func application(_ application: UIApplication, didFinishLaunchingWithOptions
launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
struct Platform {
static let isSimulator: Bool = {
#if arch(i386) || arch(x86_64)
return true
#endif
return false
}()
}
// window = UIWindow(frame: UIScreen.main.bounds)
// window?.rootViewController = ViewController()
// window?.makeKeyAndVisible()
print("hello in application isSimulator=\(Platform.isSimulator)")
// Override point for customization after application launch.
if !Platform.isSimulator {
print("running standalone")
} else {
print("running in simulator")
}
return true
}
Xcode IDE tells me that the code after return will never be executed.
Is it founded and if not, how can I get rid of that warning?