質問編集履歴

6

変更しました。

2018/12/06 06:30

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -41,3 +41,337 @@
41
41
  セットアップを進める前に、firebaseにプロジェクトを追加しています。
42
42
 
43
43
  ですが、(iosアプリにfirebaseを追加) の最後のステップ⑤『アプリを実行してインストールを確認』 がずっとグルグルと確認中のままです。
44
+
45
+
46
+
47
+
48
+
49
+ ????(追記です)
50
+
51
+
52
+
53
+ ターミナルの表示です
54
+
55
+
56
+
57
+ ```ここに言語を入力
58
+
59
+ Last login: Thu Dec 6 13:08:45 on ttys000
60
+
61
+ -bash: eval: line 21: syntax error: unexpected end of file
62
+
63
+ hogeMacBook-Pro:~ hoge$ cd firecast/
64
+
65
+ hogeMacBook-Pro:firecast hoge$ firebase login
66
+
67
+ ? Allow Firebase to collect anonymous CLI usage and error reporting information?
68
+
69
+ Yes
70
+
71
+
72
+
73
+ Visit this URL on any device to log in:
74
+
75
+ ここにURLがありました
76
+
77
+ Waiting for authentication...
78
+
79
+
80
+
81
+ ✔ Success! Logged in as メールアドレス
82
+
83
+ hogeMacBook-Pro:firecast hoge$ firebase init
84
+
85
+
86
+
87
+ ######## #### ######## ######## ######## ### ###### ########
88
+
89
+ ## ## ## ## ## ## ## ## ## ## ##
90
+
91
+ ###### ## ######## ###### ######## ######### ###### ######
92
+
93
+ ## ## ## ## ## ## ## ## ## ## ##
94
+
95
+ ## #### ## ## ######## ######## ## ## ###### ########
96
+
97
+
98
+
99
+ You're about to initialize a Firebase project in this directory:
100
+
101
+
102
+
103
+ /Users/hoge/firecast
104
+
105
+
106
+
107
+ ? Which Firebase CLI features do you want to setup for this folder? Press Space
108
+
109
+ to select features, then Enter to confirm your choices. Functions: Configure and
110
+
111
+ deploy Cloud Functions
112
+
113
+
114
+
115
+ === Project Setup
116
+
117
+
118
+
119
+ First, let's associate this project directory with a Firebase project.
120
+
121
+ You can create multiple project aliases by running firebase use --add,
122
+
123
+ but for now we'll just set up a default project.
124
+
125
+
126
+
127
+ ? Select a default Firebase project for this directory: プロジェクト名 (プロジェクト名)
128
+
129
+ i Using project プロジェクト名 (プロジェクト名)
130
+
131
+
132
+
133
+ === Functions Setup
134
+
135
+
136
+
137
+ A functions directory will be created in your project with a Node.js
138
+
139
+ package pre-configured. Functions can be deployed with firebase deploy.
140
+
141
+
142
+
143
+ ? What language would you like to use to write Cloud Functions? TypeScript
144
+
145
+ ? Do you want to use TSLint to catch probable bugs and enforce style? Yes
146
+
147
+ ✔ Wrote functions/package.json
148
+
149
+ ✔ Wrote functions/tslint.json
150
+
151
+ ✔ Wrote functions/tsconfig.json
152
+
153
+ ✔ Wrote functions/src/index.ts
154
+
155
+ ✔ Wrote functions/.gitignore
156
+
157
+ ? Do you want to install dependencies with npm now? Yes
158
+
159
+
160
+
161
+ > grpc@1.16.1 install /Users/hoge/firecast/functions/node_modules/grpc
162
+
163
+ > node-pre-gyp install --fallback-to-build --library=static_library
164
+
165
+
166
+
167
+ node-pre-gyp WARN Using request for node-pre-gyp https download
168
+
169
+ [grpc] Success: "/Users/hoge/firecast/functions/node_modules/grpc/src/node/extension_binary/node-v59-darwin-x64-unknown/grpc_node.node" is installed via remote
170
+
171
+
172
+
173
+ > protobufjs@6.8.8 postinstall /Users/hoge/firecast/functions/node_modules/protobufjs
174
+
175
+ > node scripts/postinstall
176
+
177
+
178
+
179
+
180
+
181
+ > firebase-functions@2.1.0 postinstall /Users/hoge/firecast/functions/node_modules/firebase-functions
182
+
183
+ > node ./upgrade-warning
184
+
185
+
186
+
187
+
188
+
189
+ ======== WARNING! ========
190
+
191
+
192
+
193
+ This upgrade of firebase-functions contains breaking changes if you are upgrading from a version below v1.0.0.
194
+
195
+
196
+
197
+ To see a complete list of these breaking changes, please go to:
198
+
199
+
200
+
201
+ https://firebase.google.com/docs/functions/beta-v1-diff
202
+
203
+
204
+
205
+ npm notice created a lockfile as package-lock.json. You should commit this file.
206
+
207
+ added 514 packages in 19.997s
208
+
209
+
210
+
211
+
212
+
213
+ ╭─────────────────────────────────────╮
214
+
215
+ │ │
216
+
217
+ │ Update available 5.5.1 → 6.4.1 │
218
+
219
+ │ Run npm i -g npm to update │
220
+
221
+ │ │
222
+
223
+ ╰─────────────────────────────────────╯
224
+
225
+
226
+
227
+
228
+
229
+ i Writing configuration info to firebase.json...
230
+
231
+ i Writing project information to .firebaserc...
232
+
233
+ i Writing gitignore file to .gitignore...
234
+
235
+
236
+
237
+ ✔ Firebase initialization complete!
238
+
239
+ hogeMacBook-Pro:firecast hoge$ code .
240
+
241
+ -bash: code: command not found
242
+
243
+ hogeMacBook-Pro:firecast hoge$ code .
244
+
245
+ hogeMacBook-Pro:firecast hoge$ ls
246
+
247
+ firebase.json functions
248
+
249
+ hogeMacBook-Pro:firecast hoge$ cd functions
250
+
251
+ hogeMacBook-Pro:functions hoge$ npm install firebase-admin@latest firebase-functions@latest
252
+
253
+
254
+
255
+ > firebase-functions@2.1.0 postinstall /Users/hoge/firecast/functions/node_modules/firebase-functions
256
+
257
+ > node ./upgrade-warning
258
+
259
+
260
+
261
+
262
+
263
+ ======== WARNING! ========
264
+
265
+
266
+
267
+ This upgrade of firebase-functions contains breaking changes if you are upgrading from a version below v1.0.0.
268
+
269
+
270
+
271
+ To see a complete list of these breaking changes, please go to:
272
+
273
+
274
+
275
+ https://firebase.google.com/docs/functions/beta-v1-diff
276
+
277
+
278
+
279
+ npm WARN firebase-functions@2.1.0 requires a peer of firebase-admin@~6.0.0 but none is installed. You must install peer dependencies yourself.
280
+
281
+
282
+
283
+ + firebase-functions@2.1.0
284
+
285
+ + firebase-admin@6.3.0
286
+
287
+ added 28 packages, removed 153 packages, updated 11 packages and moved 2 packages in 8.38s
288
+
289
+ hogeMacBook-Pro:functions hoge$ firebase deploy
290
+
291
+
292
+
293
+ === Deploying to ‘プロジェクト名’…
294
+
295
+
296
+
297
+ i deploying functions
298
+
299
+ Running command: npm --prefix "$RESOURCE_DIR" run lint
300
+
301
+
302
+
303
+ > functions@ lint /Users/hoge/firecast/functions
304
+
305
+ > tslint --project tsconfig.json
306
+
307
+
308
+
309
+
310
+
311
+ WARNING: /Users/hoge/firecast/functions/src/index.ts[1, 1]: 'functions' is declared but its value is never read.
312
+
313
+
314
+
315
+ Running command: npm --prefix "$RESOURCE_DIR" run build
316
+
317
+
318
+
319
+ > functions@ build /Users/hoge/firecast/functions
320
+
321
+ > tsc
322
+
323
+
324
+
325
+ ✔ functions: Finished running predeploy script.
326
+
327
+ i functions: ensuring necessary APIs are enabled...
328
+
329
+ ✔ functions: all necessary APIs are enabled
330
+
331
+ i functions: preparing functions directory for uploading...
332
+
333
+
334
+
335
+ ✔ Deploy complete!
336
+
337
+
338
+
339
+ Project Console: https://console.firebase.google.com/project/プロジェクト名/overview
340
+
341
+ hogeMacBook-Pro:functions hoge$
342
+
343
+
344
+
345
+ ```
346
+
347
+
348
+
349
+
350
+
351
+ デプロイしたいソースコードです
352
+
353
+ ```ここに言語を入力
354
+
355
+ //index.ts
356
+
357
+
358
+
359
+ import * as functions from 'firebase-functions';
360
+
361
+
362
+
363
+ // Start writing Firebase Functions
364
+
365
+ // https://firebase.google.com/docs/functions/typescript
366
+
367
+
368
+
369
+ export const helloWorld = functions.https.onRequest((request, response) => {
370
+
371
+ response.send("Hello from Firebase!");
372
+
373
+ });
374
+
375
+
376
+
377
+ ```

5

変更しました。

2018/12/06 06:30

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
 
34
34
 
35
- 上記の画像は、[リンクの動画](https://www.youtube.com/watch?v=DYfP-UIKxH0&t=491s&index=5&list=LLbbLOH_iQ5xt9ejuW-CjcxQ)のスクショで、動画の最終的なターミナル処理の様子です。
35
+ 上記の画像は、[の動画](https://www.youtube.com/watch?v=DYfP-UIKxH0&t=491s&index=5&list=LLbbLOH_iQ5xt9ejuW-CjcxQ)のスクショで、動画の最終的なターミナル処理の様子です。
36
36
 
37
37
 
38
38
 

4

変更しました。

2018/12/06 04:54

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -32,13 +32,11 @@
32
32
 
33
33
 
34
34
 
35
- 上記の画像は、下記リンクの動画のスクショで、最終的なターミナルの処理の様子です。
36
-
37
- [リンク内容](https://www.youtube.com/watch?v=DYfP-UIKxH0&t=491s&index=5&list=LLbbLOH_iQ5xt9ejuW-CjcxQ
35
+ 上記の画像は、[リンクの動画](https://www.youtube.com/watch?v=DYfP-UIKxH0&t=491s&index=5&list=LLbbLOH_iQ5xt9ejuW-CjcxQ)のスクショで、動画の最終的なターミナル処理の様子です。
38
36
 
39
37
 
40
38
 
41
- この動画の手順通りセットアップを進めています。
39
+ この動画の手順通りセットアップを最終的なところまで進めています。
42
40
 
43
41
  セットアップを進める前に、firebaseにプロジェクトを追加しています。
44
42
 

3

変更しました。

2018/12/06 04:53

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -25,3 +25,21 @@
25
25
 
26
26
 
27
27
  セットアップのどの場面が抜けているのかわかりません。教えていただきたいです。
28
+
29
+
30
+
31
+ (追記です)
32
+
33
+
34
+
35
+ 上記の画像は、下記リンクの動画のスクショで、最終的なターミナルの処理の様子です。
36
+
37
+ [リンク内容](https://www.youtube.com/watch?v=DYfP-UIKxH0&t=491s&index=5&list=LLbbLOH_iQ5xt9ejuW-CjcxQ
38
+
39
+
40
+
41
+ この動画の手順通りセットアップを進めています。
42
+
43
+ セットアップを進める前に、firebaseにプロジェクトを追加しています。
44
+
45
+ ですが、(iosアプリにfirebaseを追加) の最後のステップ⑤『アプリを実行してインストールを確認』 がずっとグルグルと確認中のままです。

2

変更

2018/12/06 04:51

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes

1

変更

2018/12/05 16:20

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  ![](d345272a4cb3192763dd4ca6c5f028be.png)
2
2
 
3
- firebase cloud functionsのセットアップをデプロイまで一通り終えたので、最後にデプロイしたいのですができません。
3
+ firebase cloud functionsのセットアップをデプロイまで一通り終えたので、最後にデプロイしたいのですができません。
4
4
 
5
5
 
6
6