質問するログイン新規登録

質問編集履歴

8

本文修正

2017/12/16 06:17

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -83,4 +83,15 @@
83
83
 
84
84
  }
85
85
 
86
- ```
86
+ ```
87
+
88
+ 12/16 15:15追記しました。
89
+
90
+ 下図の画像の通り、
91
+ guard let authentication = user.authentication else { return } のみを
92
+ Auth.auth()?.signIn(with: credential) { (user, error) in の下に移したのですが、
93
+ ● Use of unresolved identifier 'authentication' ●エラーが出ました。
94
+
95
+ このエラーの原因が分からない為、
96
+ お分かりになる方、ご教授お願いします。
97
+ ![](0a7e806429c6059cef6ad0047c9abb4f.png)

7

本文修正

2017/12/16 06:17

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -12,6 +12,7 @@
12
12
  このLogInViewControllerで不備のある箇所を教えていただきたいです。
13
13
  お願いします。
14
14
 
15
+
15
16
  ・追記
16
17
  本文内のコード
17
18
  guard let authentication = User.authentication else { return }から

6

本文修正

2017/12/16 02:09

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -12,7 +12,6 @@
12
12
  このLogInViewControllerで不備のある箇所を教えていただきたいです。
13
13
  お願いします。
14
14
 
15
-
16
15
  ・追記
17
16
  本文内のコード
18
17
  guard let authentication = User.authentication else { return }から

5

本文修正

2017/12/15 14:24

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -12,6 +12,7 @@
12
12
  このLogInViewControllerで不備のある箇所を教えていただきたいです。
13
13
  お願いします。
14
14
 
15
+
15
16
  ・追記
16
17
  本文内のコード
17
18
  guard let authentication = User.authentication else { return }から

4

本文修正

2017/12/15 11:55

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -13,7 +13,9 @@
13
13
  お願いします。
14
14
 
15
15
  ・追記
16
- 本文内のコードを修正しました。
16
+ 本文内のコード
17
+ guard let authentication = User.authentication else { return }から
18
+ guard let authentication = user.authentication else { return }に修正しました。
17
19
  ```
18
20
  import UIKit
19
21
  import Firebase

3

本文修正

2017/12/15 04:17

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -12,7 +12,8 @@
12
12
  このLogInViewControllerで不備のある箇所を教えていただきたいです。
13
13
  お願いします。
14
14
 
15
-
15
+ ・追記
16
+ 本文内のコードを修正しました。
16
17
  ```
17
18
  import UIKit
18
19
  import Firebase

2

本文修正

2017/12/15 03:47

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -62,7 +62,7 @@
62
62
  }
63
63
  print("Signed into Google Successfully")
64
64
 
65
- guard let authentication = User.authentication else { return }
65
+ guard let authentication = user.authentication else { return }
66
66
  let credential = GoogleAuthProvider.credential(withIDToken: authentication.idToken, accessToken: authentication.accessToken)
67
67
 
68
68
  Auth.auth()?.signIn(with: credential) { (user, error) in

1

本文修正

2017/12/15 03:47

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Type 'User' has no member 'authentication'または
8
8
  Type 'User' has no member 'user'のエラーが出ます。
9
- ( 場所は●guard let authentication = User.authentication else { return }●の所です)
9
+ ( 場所は●guard let authentication = user.authentication else { return }●の所です)
10
10
 
11
11
  このエラーは'---'が存在しない為のエラーの様ですが、原因が分かりません。
12
12
  このLogInViewControllerで不備のある箇所を教えていただきたいです。