我想按照以下步骤集成GTMAppAuth和GDrive:
$ pod安装
target 'GTMAppAuth Drive Example iOS' do
platform :ios, '8.0'
pod 'GTMAppAuth'
pod 'GoogleAPIClientForREST/Drive'
end
Run Code Online (Sandbox Code Playgroud)
$ open Example-iOS.xcworkspace
https://github.com/google/GTMAppAuth/tree/master/Example-iOS
从谷歌控制台将客户端ID复制到剪贴板.在GTMAppAuthExampleViewController.m中更新具有新客户端ID的kClientID.
最后,打开Info.plist并完全展开"URL类型"(又名"CFBundleURLTypes"),并将com.googleusercontent.apps.YOUR_CLIENT替换为客户端ID的反向DNS表示形式(不包括:/ oauthredirect路径组件).
但为什么在评论中出错?我的Xcode版本是8.3.1
AppAuth的github上有一个未解决的问题:https://github.com/google/GTMAppAuth/issues/21
现在的解决方法似乎是将此行添加到Podfile:
pod 'AppAuth', :inhibit_warnings => true
| 归档时间: |
|
| 查看次数: |
387 次 |
| 最近记录: |