前提・実現したいこと
AppDelegateでエラーが出てしまいます。
発生している問題・エラーメッセージ
Thread 1: signal SIGABRT
該当のソースコード
swift
1import UIKit 2import Firebase 3 4@UIApplicationMain 5class AppDelegate: UIResponder, UIApplicationDelegate { 6 7 var window: UIWindow? 8 9 10 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 11 // Override point for customization after application launch. 12 13 // Use Firebase library to configure APIs 14 FirebaseApp.configure() 15 return true 16 } 17 18 func applicationWillResignActive(_ application: UIApplication) { 19 // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 20 // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 21 } 22 23 func applicationDidEnterBackground(_ application: UIApplication) { 24 // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 25 // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 26 } 27 28 func applicationWillEnterForeground(_ application: UIApplication) { 29 // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 30 } 31 32 func applicationDidBecomeActive(_ application: UIApplication) { 33 // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 34 } 35 36 func applicationWillTerminate(_ application: UIApplication) { 37 // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 38 } 39 40 41} 42 43
試したこと
コードとUI部品は全部繋がっていました。
Thread 1: signal SIGABRTのエラーが吐き出された時には、デバッグエリアにその原因が出力されていると思うので、そちらも併せて記載していただけますでしょうか?
2019-11-25 15:36:36.034354+0900 tennis score[1300:18721] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.
2019-11-25 15:36:36.295799+0900 tennis score[1300:18721] [framework] CUIThemeStore: No theme registered with id=0
2019-11-25 15:36:36.374507+0900 tennis score[1300:19818] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/sakku727/Library/Developer/CoreSimulator/Devices/E1BDC5EC-D6D6-457D-A0CA-DC65600DC779/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-11-25 15:36:36.376390+0900 tennis score[1300:19818] [MC] Reading from private effective user settings.
2019-11-25 15:36:36.525734+0900 tennis score[1300:18721] *** Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers, follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'
*** First throw call stack:
(
0 CoreFoundation 0x000000010c3a81bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000010b946735 objc_exception_throw + 48
2 CoreFoundation 0x000000010c3a7d29 -[NSException raise] + 9
3 tennis score 0x000000010633e329 GADApplicationVerifyPublisherInitializedAnalyticsCorrectly + 263
4 tennis score 0x00000001062ece20 __copy_helper_block_e8_32b + 400
5 libdispatch.dylib 0x000000010d3e6595 _dispatch_call_block_and_release + 12
6 libdispatch.dylib 0x000000010d3e7602 _dispatch_client_callout + 8
7 libdispatch.dylib 0x000000010d3f499a _dispatch_main_queue_callback_4CF + 1541
8 CoreFoundation 0x000000010c30d3e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
9 CoreFoundation 0x000000010c307a76 __CFRunLoopRun + 2342
10 CoreFoundation 0x000000010c306e11 CFRunLoopRunSpecific + 625
11 GraphicsServices 0x000000010ef621dd GSEventRunModal + 62
12 UIKitCore 0x0000000114f8981d UIApplicationMain + 140
13 tennis score 0x00000001061bb5a4 main + 68
14 libdyld.dylib 0x000000010d45d575 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
すいません、お願いします。
回答2件
あなたの回答
tips
プレビュー