일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- consuming a restful web service
- spring guide
- view
- Identity
- 적절한 사용방법
- ios login
- SwfitUI
- ios
- WWDC21
- Structural Identity
- Lifetime of SwiftUI
- lazy 위험성
- Lazy
- git branch strategy
- 보라색오류
- swift
- schemes
- Explict Identity
- xml delegate
- Your app is missing support for the following URL schemes: your_ios_client_id
- mvc cocoa
- TabBarItems
- Spring
- bounds이해
- Demystify SwiftUI
- Xcode
- lazy 사용
- frame이해
- Quick Help
- native개발
- Today
- Total
Dev_Dylan
[iOS]Google Login 스키마 추가(with error) 본문
스키마 추가하는데 오류나서 쓰는 글
URL Schemes Info.plist에 추가하는 방법 (첫번째 방법)
Google Login
https://developers.google.com/identity/sign-in/ios/start-integrating?hl=ko
iOS 및 macOS용 Google 로그인 시작하기 | Authentication | Google for Developers
이 페이지는 Cloud Translation API를 통해 번역되었습니다. 의견 보내기 iOS 및 macOS용 Google 로그인 시작하기 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. iOS 또
developers.google.com
위 문서대로 Info.plist에
<key>GIDClientID</key>
<string>YOUR_IOS_CLIENT_ID</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>YOUR_DOT_REVERSED_IOS_CLIENT_ID</string>
</array>
</dict>
</array>
위와 같은 코드를 넣어주면 됨
발급 받는 키 (YOUR_IOS_CLIENT_ID)
1234567890-abcdefg.apps.googleusercontent.com
URL Schemes에 들어갈 키 (YOUR_DOT_REVERSED_IOS_CLIENT_ID)
com.googleusercontent.apps.1234567890-abcdefg
-> 점 기준으로 역방향임
간단하게
info plist에 들어가서
<plist version="1.0">
<dict>
<key>GIDClientID</key>
<string>1234567890-abcdefg.apps.googleusercontent.com</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.1234567890-abcdefg</string>
</array>
</dict>
</array>
상단 <dict> 밑에 바로 넣어주어도 된다.
Target에 들어가서 입력방법 (두번째 방법)
프로젝트 - Target - Info - URL Types
여기까지만 하면 아래 오류가 나옴
"Your app is missing support for the following URL schemes: your_ios_client_id"
스킴 덜 추가되어서 에러남.
Info 에 들어가서 GIDClientID 추가해준다.
key 값에 발급받은 키 <YOUR_IOS_CLIENT_ID> 입력
'iOS > Solve_ERROR' 카테고리의 다른 글
[iOS] HTTP 접근 허용. (ATS_App Transport Security) (0) | 2024.01.10 |
---|---|
[iOS] FatalError는 어떻게 써야할까? (with 에러처리) (1) | 2023.12.10 |
iOS_ViewController buttons를 array에 [Lazy] (0) | 2022.04.09 |
iOS_PickerView question mark (debug) (0) | 2022.04.09 |