質問編集履歴
2
title
CHANGED
File without changes
|
body
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
```### firebaseのdelegateエラーについて
|
25
25
|
|
26
26
|
###
|
27
|
-
現在、SwiftにFire baseを入れようと試みています。
|
27
|
+
現在、SwiftにFire baseを入れようと試みています。しかしdelegateにて以下のコードを記入後にエラーが発生し、先に進めなくなりました。
|
28
28
|
FirebaseApp.configure()
|
29
29
|
|
30
30
|
### 発生している問題・エラーメッセージ
|
@@ -37,4 +37,6 @@
|
|
37
37
|
Expected 'func' keyword in instance method decreation
|
38
38
|
Consective declarations on a line must be separeted ';'
|
39
39
|
|
40
|
-
```
|
40
|
+
```
|
41
|
+
取り組みとしては()の位置の見直しを行いました。
|
42
|
+
大変初歩的ですが、何卒よろしくお願いします。
|
1
詳細に
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,27 +1,40 @@
|
|
1
1
|
```swift
|
2
|
-
|
2
|
+
import UIKit
|
3
|
+
import Firebase
|
4
|
+
@main
|
5
|
+
class AppDelegate: UIResponder, UIApplicationDelegate {
|
6
|
+
var window: UIWindow?
|
7
|
+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
8
|
+
return true
|
9
|
+
}
|
10
|
+
// MARK: UISceneSession Lifecycle
|
11
|
+
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
|
12
|
+
// Called when a new scene session is being created.
|
13
|
+
// Use this method to select a configuration to create the new scene with.
|
14
|
+
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
|
15
|
+
}
|
16
|
+
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
|
17
|
+
// Called when the user discards a scene session.
|
18
|
+
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
|
19
|
+
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
|
20
|
+
}
|
21
|
+
FirebaseApp.configure()
|
22
|
+
return
|
23
|
+
}
|
3
24
|
```### firebaseのdelegateエラーについて
|
4
25
|
|
5
26
|
###
|
6
27
|
現在、SwiftにFire baseを入れようと試みています。
|
28
|
+
FirebaseApp.configure()
|
7
29
|
|
8
|
-
|
9
30
|
### 発生している問題・エラーメッセージ
|
10
|
-
|
31
|
+
FirebaseApp.configure()にエラーメッセージが表示されます
|
11
32
|
```
|
12
33
|
エラーメッセージ
|
13
|
-
|
34
|
+
expected decreation
|
35
|
+
Expected ( in argument list of function
|
36
|
+
Expected { in body of function decreation
|
37
|
+
Expected 'func' keyword in instance method decreation
|
38
|
+
Consective declarations on a line must be separeted ';'
|
14
39
|
|
15
|
-
### 該当のソースコード
|
16
|
-
|
17
|
-
```ここに言語名を入力
|
18
|
-
ソースコード
|
19
|
-
```
|
40
|
+
```
|
20
|
-
|
21
|
-
### 試したこと
|
22
|
-
|
23
|
-
ここに問題に対して試したことを記載してください。
|
24
|
-
|
25
|
-
### 補足情報(FW/ツールのバージョンなど)
|
26
|
-
|
27
|
-
ここにより詳細な情報を記載してください。
|