17
私はこのようなエラーがあります。「式は暗黙のうちに 'String?どれに」これが私のコードです:'String?'から暗黙的に強制的に表現されます。 to Any Any
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
FIRApp.configure()
FIRAuth.auth()?.signIn(withEmail: "[email protected]", password: "mypassword", completion: { (user, error) in
if (error != nil) {
print(user?.email)
}else {
print(error?.localizedDescription)
}
})
return true
}
この行でエラーが発生しました
print(user?.email)
そして
print(error?.localizedDescription)
くれ
ユーザーは何が起こるだろうではありnilをアンラップすることができますか? – probrandono
もちろん、アプリはクラッシュします。しかし、オプションについての私の説明の後、私はそれが暗黙的だと思う –