前提・実現したいこと
https://developers.google.com/identity/sign-in/ios/start?ver=swift
を参考にGoogle Sign Inを勉強しようのですがビルドしてサインインボタンを押すと
以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
'NSInvalidArgumentException', reason: 'Your app is missing support for the following URL schemes: your_client_id' *** First throw call stack: ( 0 CoreFoundation 0x0000000102ec2d4b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x000000010292421e objc_exception_throw + 48 2 CoreFoundation 0x0000000102f2c2b5 +[NSException raise:format:] + 197 3 SignInExample 0x0000000101185e9a -[GIDSignIn signInWithOptions:] + 242 4 SignInExample 0x000000010118a597 -[GIDSignInButton pressed] + 240 5 UIKit 0x00000001032e88bc -[UIApplication sendAction:to:from:forEvent:] + 83 6 UIKit 0x000000010346ec38 -[UIControl sendAction:to:forEvent:] + 67 7 UIKit 0x000000010346ef51 -[UIControl _sendActionsForEvents:withEvent:] + 444 8 UIKit 0x000000010346de4d -[UIControl touchesEnded:withEvent:] + 668 9 UIKit 0x0000000103356545 -[UIWindow _sendTouchesForEvent:] + 2747 10 UIKit 0x0000000103357c33 -[UIWindow sendEvent:] + 4011 11 UIKit 0x00000001033049ab -[UIApplication sendEvent:] + 371 12 UIKit 0x0000000103af172d __dispatchPreprocessedEventFromEventQueue + 3248 13 UIKit 0x0000000103aea463 __handleEventQueue + 4879 14 CoreFoundation 0x0000000102e67761 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 15 CoreFoundation 0x0000000102e4c98c __CFRunLoopDoSources0 + 556 16 CoreFoundation 0x0000000102e4be76 __CFRunLoopRun + 918 17 CoreFoundation 0x0000000102e4b884 CFRunLoopRunSpecific + 420 18 GraphicsServices 0x00000001077fea6f GSEventRunModal + 161 19 UIKit 0x00000001032e6c68 UIApplicationMain + 159 20 SignInExample 0x000000010117be8f main + 111 21 libdyld.dylib 0x00000001057c468d start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException
該当のソースコード
swift
1#import <UIKit/UIKit.h> 2#import "AppDelegate.h" 3 4int main(int argc, char * argv[]) { 5 @autoreleasepool { 6 return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); <thread1: signal SIGABRT 7 } 8}
試したこと
your_client_idなどが間違っていないか確認
補足情報(FW/ツールのバージョンなど)
swift 3.0
xcode 8.2.1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。