質問編集履歴
2
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -42,7 +42,7 @@
|
|
42
42
|
semaphore.wait()
|
43
43
|
}//For文終わり
|
44
44
|
|
45
|
-
print(
|
45
|
+
print(testList) //DispatchSemaphoreを使わないと[:]に、使うとたどり着かない
|
46
46
|
```
|
47
47
|
|
48
48
|
### 試したこと
|
1
Firestoreの使い方が間違っていたので修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
for value in list {
|
19
19
|
//非同期処理スタート
|
20
20
|
db.collection("Test").document(value)
|
21
|
-
.
|
21
|
+
.getDocument { (document, error) in
|
22
22
|
|
23
23
|
if let error = error {
|
24
24
|
print("Error getting documents: (error)")
|