본문 바로가기

IOS

[ IOS ] Error -/Users/ /Libraries/Plugins/iOS/GoogleSignIn/GoogleSignIn.h:18:17 No type or protocol named 'GIDSignInDelegate'

[ Error  ]

[ 문제 - No type or protocol named 'GIDSignInDelegate' ]

Google Sign In을 구현한 유니티 프로젝트를 빌드한 Xcode의 빌드 과정에서 다음과 같은 오류가 발생하였다 .

/Users/yeodaehyeon/Build2/A/Libraries/Plugins/iOS/GoogleSignIn/GoogleSignIn.h:18:17 No type or protocol named 'GIDSignInDelegate'

[ 원인 ]

https://developers.google.com/identity/sign-in/ios/release?hl=ko 

 

Google 로그인 iOS 및 macOS SDK 출시 노트  |  Authentication  |  Google for Developers

이 페이지는 Cloud Translation API를 통해 번역되었습니다. Switch to English 의견 보내기 Google 로그인 iOS 및 macOS SDK 출시 노트 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분

developers.google.com

=>Google의 출시노트 문서를 확인해보자

=>5.0.0 버전에서 해당 메서드가 대체됨을 볼 수 있다 .아래문제도 5.0.0 버전부터 바뀐 것들로 인한 문제로 생긴 것들이다 .

 

[ 해결 ]

https://github.com/googlesamples/google-signin-unity/issues/102

 

cannot find protocol declaration for 'GIDSignInUIDelegate'; did you mean 'GIDSignInDelegate · Issue #102 · googlesamples/googl

▸ ❌; /BUILD_PATH/gamewolfinc.testslots.release_ios/temp.XXXXXX20190816-5373-lqln/Libraries/Plugins/IOS/GoogleSignIn/GoogleSignIn.h:18:36: cannot find protocol declaration for 'GIDSignInUIDelegate';...

github.com

 

=>나의 Podfile을 살펴보자 . GoogleSignIn이 4.0.2 버전 이상으로 명시되어 있다 .

=>다음과 같이 5.0.0 이하로 변경해준다 . 이후 xcworkspace를 다시 생성해준다 .

 

혹은 GoogleSignInDependencies.xml 을 바꿔줄수도 있다 .

=>Assets - GoogleSignIn-Editor - GoogleSignInDependencies.xml 로 이동해준다.

=>원본

=>변경후 다시 빌드를 진행한다 .

 

 

 

 

출처

https://github.com/googlesamples/google-signin-unity/issues/102

 

cannot find protocol declaration for 'GIDSignInUIDelegate'; did you mean 'GIDSignInDelegate · Issue #102 · googlesamples/googl

▸ ❌; /BUILD_PATH/gamewolfinc.testslots.release_ios/temp.XXXXXX20190816-5373-lqln/Libraries/Plugins/IOS/GoogleSignIn/GoogleSignIn.h:18:36: cannot find protocol declaration for 'GIDSignInUIDelegate';...

github.com