質問編集履歴

12

本文修正

2017/12/18 03:49

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -170,236 +170,132 @@
170
170
 
171
171
 
172
172
 
173
- ```SignUpViewContoroller(サインアップ画面)
174
-
175
- (SignUpViewContoroller(サインアップ画面)
176
-
177
-
178
-
179
- import UIKit
180
-
181
- import Firebase
173
+ ・12/18追記しました
182
-
174
+
183
- import FirebaseAuth
175
+ コンソールに現れる[MC]から始まるエラーは、
184
-
185
- import GoogleSignIn
176
+
186
-
187
-
188
-
189
- class SignUpViewController: UIViewController {
190
-
191
-
192
-
193
- @IBOutlet weak var emailText: UITextField!
194
-
195
- @IBOutlet weak var passwordText: UITextField!
196
-
197
-
198
-
199
- override func viewDidLoad() {
200
-
201
- super.viewDidLoad()
202
-
203
- }
204
-
205
-
206
-
207
- func signup(){
208
-
209
- Auth.auth().createUser(withEmail: emailText.text!,
210
-
211
- password: passwordText.text!,completion: { (user, error) in
177
+ [xcode9.0へアップデートしたらアプリを実行できない(skyway)](https://teratail.com/questions/93533)というtetatailの過去の質問と同じでした。
212
-
178
+
179
+
180
+
213
- if error != nil{
181
+ (コンソールのエラー画面です↓)
214
-
215
- print("アカウント作成失敗したよ!")
216
-
217
- return
218
-
219
- }
220
-
221
-
222
-
223
- if user != nil{
224
-
225
- print("アカウント作成できたよ!")
226
-
227
- }
228
-
229
- else{
230
-
231
- let homePVC = RootPageViewController()
232
-
233
- self.present(homePVC, animated: true,
234
-
235
- completion: nil)
236
-
237
- }
238
-
239
- })
240
-
241
- }
242
-
243
- func createProfile( user: User){
244
-
245
- }
246
-
247
- @IBAction func signUpButtonAction(_ sender: Any) {signup()
248
-
249
- }
250
-
251
- @IBAction func toLoginVCButtonAction(_ sender: Any) {
252
-
253
- }
254
-
255
- }
256
-
257
-
258
-
259
-
260
182
 
261
183
  ```
262
184
 
263
-
264
-
265
- ```LogInViewController(ログイン画面)
266
-
267
- (LogInViewController(ログイン画面)
268
-
269
- import UIKit
270
-
271
- import Firebase
272
-
273
- import FirebaseAuth
274
-
275
- import GoogleSignIn
276
-
277
-
278
-
279
- class LogInViewController: UITableViewController, GIDSignInUIDelegate {
280
-
281
-
282
-
283
- @IBOutlet weak var emailText: UITextField!
284
-
285
- @IBOutlet weak var passwordText: UITextField!
286
-
287
- @IBOutlet weak var googleSignInButton: GIDSignInButton!
288
-
289
-
290
-
291
- override func viewDidLoad() {
292
-
293
- super.viewDidLoad()
294
-
295
-
296
-
297
- GIDSignIn.sharedInstance().uiDelegate = self
298
-
299
- GIDSignIn.sharedInstance().signIn()
300
-
301
- }
302
-
303
- override func viewDidAppear(_ animated: Bool) {
304
-
305
-
306
-
307
- if Auth.auth().currentUser?.uid != nil{goToHome()
308
-
309
- }}
310
-
311
- func login(){
312
-
313
- Auth.auth().signIn(withEmail: emailText.text!, password:passwordText.text!,completion: { (user,error) in
314
-
315
- if error != nil{
316
-
317
- print("ログインしたよ")
318
-
319
- return
320
-
321
- }
322
-
323
- self.goToHome()
324
-
325
- })}
326
-
327
- func goToHome(){
328
-
329
-
330
-
331
- let homePVC = RootPageViewController()
332
-
333
- self.present(homePVC, animated: true, completion: nil)
334
-
335
- }
336
-
337
- func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!,withError error: Error?)
338
-
339
-
340
-
341
- {
342
-
343
- if error != nil{
344
-
345
- print("Signed into Google Successfully!Googleに正常に署名しました")
346
-
347
- return
348
-
349
- }
350
-
351
- guard let authentication = user.authentication else { return }
352
-
353
-
354
-
355
- let credential =
356
-
357
- GoogleAuthProvider.credential(withIDToken: authentication.idToken, accessToken: authentication.accessToken)
358
-
359
-
360
-
361
- Auth.auth().signIn(with: credential) { (user, error) in
362
-
363
-
364
-
365
- if let error = error {
366
-
367
- print(error.localizedDescription)
368
-
369
- return
370
-
371
- }
372
-
373
- print("Signed into Firebase successfully!Firebaseに正常に署名しました")
374
-
375
- }}
376
-
377
- @IBAction func backToTop(segue: UIStoryboardSegue) {}
378
-
379
- //Unwind Segueかっこの中に、戻ったら何をするかを書く
380
-
381
-
382
-
383
-
384
-
385
- @IBAction func loginButtonAction(_ sender: Any) { login()
386
-
387
- }}
185
+ アプリ起動時の処理だよ
186
+
187
+ 2017-12-18 12:08:02.195612+0900 SNS01[9091:773382] [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40005000 started
188
+
189
+ 2017-12-18 12:08:02.195927+0900 SNS01[9091:773382] [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
190
+
191
+ アプリを開いたよ
192
+
193
+ 2017-12-18 12:08:03.463733+0900 SNS01[9091:773424] TIC Read Status [2:0x0]: 1:57
194
+
195
+ 2017-12-18 12:08:03.463893+0900 SNS01[9091:773424] TIC Read Status [2:0x0]: 1:57
196
+
197
+ 2017-12-18 12:08:03.471455+0900 SNS01[9091:773425] TIC Read Status [1:0x0]: 1:57
198
+
199
+ 2017-12-18 12:08:03.471586+0900 SNS01[9091:773425] TIC Read Status [1:0x0]: 1:57
200
+
201
+ 2017-12-18 12:08:03.472300+0900 SNS01[9091:773425] TIC Read Status [3:0x0]: 1:57
202
+
203
+ 2017-12-18 12:08:03.472414+0900 SNS01[9091:773425] TIC Read Status [3:0x0]: 1:57
204
+
205
+ 2017-12-18 12:08:04.016747+0900 SNS01[9091:773382] TIC Read Status [4:0x0]: 1:57
206
+
207
+ 2017-12-18 12:08:04.017050+0900 SNS01[9091:773382] TIC Read Status [4:0x0]: 1:57
208
+
209
+ 2017-12-18 12:08:12.416132+0900 SNS01[9091:773069] [MC] Lazy loading NSBundle MobileCoreServices.framework
210
+
211
+ 2017-12-18 12:08:12.417354+0900 SNS01[9091:773069] [MC] Loaded MobileCoreServices.framework
212
+
213
+ 2017-12-18 12:08:12.420550+0900 SNS01[9091:773069] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/-----------------------ここは消しています---------------------------------/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
214
+
215
+ 2017-12-18 12:08:16.969304+0900 SNS01[9091:773069] Could not load the "google.png" image referenced from a nib in the bundle with identifier "com.xcode22363846Win.SNS01"
216
+
217
+ 2017-12-18 12:08:17.024726+0900 SNS01[9091:773069] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] instantiated view controller with identifier "LogInViewController" from storyboard "Main", but didn't get a UITableView.'
218
+
219
+ *** First throw call stack:
220
+
221
+ (
222
+
223
+ 0 CoreFoundation 0x000000010ac871ab __exceptionPreprocess + 171
224
+
225
+ 1 libobjc.A.dylib 0x000000010a31cf41 objc_exception_throw + 48
226
+
227
+ 2 CoreFoundation 0x000000010acfbcb5 +[NSException raise:format:] + 197
228
+
229
+ 3 UIKit 0x000000010bcb91cc -[UITableViewController loadView] + 629
230
+
231
+ 4 UIKit 0x000000010b9b8495 -[UIViewController loadViewIfRequired] + 195
232
+
233
+ 5 UIKit 0x000000010b9b8cf2 -[UIViewController view] + 27
234
+
235
+ 6 UIKit 0x000000010c4483a9 -[_UIFullscreenPresentationController _setPresentedViewController:] + 89
236
+
237
+ 7 UIKit 0x000000010b986ba7 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 133
238
+
239
+ 8 UIKit 0x000000010b9cbf6a -[UIViewController _presentViewController:withAnimationController:completion:] + 3808
240
+
241
+ 9 UIKit 0x000000010b9cedad __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 99
242
+
243
+ 10 UIKit 0x000000010b9cf47d -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 532
244
+
245
+ 11 UIKit 0x000000010b9ced0c -[UIViewController _presentViewController:animated:completion:] + 181
246
+
247
+ 12 UIKit 0x000000010b9cf06b -[UIViewController presentViewController:animated:completion:] + 159
248
+
249
+ 13 UIKit 0x000000010b9d43ee -[UIViewController _showViewController:withAction:sender:] + 274
250
+
251
+ 14 UIKit 0x000000010bf7c643 __66-[UIStoryboardShowSegueTemplate newDefaultPerformHandlerForSegue:]_block_invoke + 134
252
+
253
+ 15 UIKit 0x000000010c13adcb -[UIStoryboardSegueTemplate _performWithDestinationViewController:sender:] + 279
254
+
255
+ 16 UIKit 0x000000010c13ac83 -[UIStoryboardSegueTemplate _perform:] + 82
256
+
257
+ 17 UIKit 0x000000010c13af4b -[UIStoryboardSegueTemplate perform:] + 157
258
+
259
+ 18 UIKit 0x000000010b815275 -[UIApplication sendAction:to:from:forEvent:] + 83
260
+
261
+ 19 UIKit 0x000000010b9924a2 -[UIControl sendAction:to:forEvent:] + 67
262
+
263
+ 20 UIKit 0x000000010b9927bf -[UIControl _sendActionsForEvents:withEvent:] + 450
264
+
265
+ 21 UIKit 0x000000010b9916ec -[UIControl touchesEnded:withEvent:] + 618
266
+
267
+ 22 UIKit 0x000000010b88abbb -[UIWindow _sendTouchesForEvent:] + 2807
268
+
269
+ 23 UIKit 0x000000010b88c2de -[UIWindow sendEvent:] + 4124
270
+
271
+ 24 UIKit 0x000000010b82fe36 -[UIApplication sendEvent:] + 352
272
+
273
+ 25 UIKit 0x000000010c172434 __dispatchPreprocessedEventFromEventQueue + 2809
274
+
275
+ 26 UIKit 0x000000010c175089 __handleEventQueueInternal + 5957
276
+
277
+ 27 CoreFoundation 0x000000010ac2a231 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
278
+
279
+ 28 CoreFoundation 0x000000010acc9e41 __CFRunLoopDoSource0 + 81
280
+
281
+ 29 CoreFoundation 0x000000010ac0eb49 __CFRunLoopDoSources0 + 185
282
+
283
+ 30 CoreFoundation 0x000000010ac0e12f __CFRunLoopRun + 1279
284
+
285
+ 31 CoreFoundation 0x000000010ac0d9b9 CFRunLoopRunSpecific + 409
286
+
287
+ 32 GraphicsServices 0x000000010f9d99c6 GSEventRunModal + 62
288
+
289
+ 33 UIKit 0x000000010b8135e8 UIApplicationMain + 159
290
+
291
+ 34 SNS01 0x0000000108206127 main + 55
292
+
293
+ 35 libdyld.dylib 0x000000010e6dbd81 start + 1
294
+
295
+ )
296
+
297
+ libc++abi.dylib: terminating with uncaught exception of type NSException
388
298
 
389
299
 
390
300
 
391
301
  ```
392
-
393
-
394
-
395
- ・12/18追記
396
-
397
- コンソールに現れる[MC]から始まるエラーは、
398
-
399
- [xcode9.0へアップデートしたらアプリを実行できない(skyway)](https://teratail.com/questions/93533)というtetatailの過去の質問と同じでした。
400
-
401
-
402
-
403
- (私のコンソールのエラー画面です)
404
-
405
- ![イメージ説明](9bef0b3573ccf362d96edf007ad20cf4.png)

11

本文修正

2017/12/18 03:48

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -401,3 +401,5 @@
401
401
 
402
402
 
403
403
  (私のコンソールのエラー画面です)
404
+
405
+ ![イメージ説明](9bef0b3573ccf362d96edf007ad20cf4.png)

10

本文修正

2017/12/18 03:35

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -401,5 +401,3 @@
401
401
 
402
402
 
403
403
  (私のコンソールのエラー画面です)
404
-
405
- ![コンソールのエラー画面です](d266e73dd507f830f6b87f0f50c743e9.png)

9

本文修正

2017/12/18 03:33

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -392,8 +392,14 @@
392
392
 
393
393
 
394
394
 
395
- ・追記
395
+ 12/18追記
396
396
 
397
397
  コンソールに現れる[MC]から始まるエラーは、
398
398
 
399
399
  [xcode9.0へアップデートしたらアプリを実行できない(skyway)](https://teratail.com/questions/93533)というtetatailの過去の質問と同じでした。
400
+
401
+
402
+
403
+ (私のコンソールのエラー画面です)
404
+
405
+ ![コンソールのエラー画面です](d266e73dd507f830f6b87f0f50c743e9.png)

8

本文修正

2017/12/18 03:32

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -394,6 +394,6 @@
394
394
 
395
395
  ・追記
396
396
 
397
- [MC]から始まるエラーは、
397
+ コンソールに現れる[MC]から始まるエラーは、
398
398
 
399
399
  [xcode9.0へアップデートしたらアプリを実行できない(skyway)](https://teratail.com/questions/93533)というtetatailの過去の質問と同じでした。

7

本文修正

2017/12/18 03:18

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -394,4 +394,6 @@
394
394
 
395
395
  ・追記
396
396
 
397
+ [MC]から始まるエラーは、
398
+
397
- [MC]から始まるエラーは、[xcode9.0へアップデートしたらアプリを実行できない(skyway)](https://teratail.com/questions/93533)というtetatailの過去の質問と同じでした。
399
+ [xcode9.0へアップデートしたらアプリを実行できない(skyway)](https://teratail.com/questions/93533)というtetatailの過去の質問と同じでした。

6

本文修正

2017/12/18 03:17

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -389,3 +389,9 @@
389
389
 
390
390
 
391
391
  ```
392
+
393
+
394
+
395
+ ・追記
396
+
397
+ [MC]から始まるエラーは、[xcode9.0へアップデートしたらアプリを実行できない(skyway)](https://teratail.com/questions/93533)というtetatailの過去の質問と同じでした。

5

本文修正

2017/12/18 03:15

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -30,8 +30,6 @@
30
30
 
31
31
 
32
32
 
33
-
34
-
35
33
  ```App Delegate
36
34
 
37
35
  (App Delegate)

4

本文修正

2017/12/17 14:38

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -30,6 +30,8 @@
30
30
 
31
31
 
32
32
 
33
+
34
+
33
35
  ```App Delegate
34
36
 
35
37
  (App Delegate)

3

本文修正

2017/12/17 13:47

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -30,8 +30,6 @@
30
30
 
31
31
 
32
32
 
33
-
34
-
35
33
  ```App Delegate
36
34
 
37
35
  (App Delegate)

2

本文修正

2017/12/17 11:39

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -30,6 +30,8 @@
30
30
 
31
31
 
32
32
 
33
+
34
+
33
35
  ```App Delegate
34
36
 
35
37
  (App Delegate)

1

本文修正

2017/12/17 10:11

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -32,6 +32,10 @@
32
32
 
33
33
  ```App Delegate
34
34
 
35
+ (App Delegate)
36
+
37
+
38
+
35
39
  import UIKit
36
40
 
37
41
  import Firebase
@@ -168,6 +172,10 @@
168
172
 
169
173
  ```SignUpViewContoroller(サインアップ画面)
170
174
 
175
+ (SignUpViewContoroller(サインアップ画面)
176
+
177
+
178
+
171
179
  import UIKit
172
180
 
173
181
  import Firebase
@@ -256,6 +264,8 @@
256
264
 
257
265
  ```LogInViewController(ログイン画面)
258
266
 
267
+ (LogInViewController(ログイン画面)
268
+
259
269
  import UIKit
260
270
 
261
271
  import Firebase