Ios GTMAppAuth&x27;演示视频控制器';在函数声明中找不到

Ios GTMAppAuth&x27;演示视频控制器';在函数声明中找不到,ios,google-oauth,Ios,Google Oauth,我想按照以下步骤集成GTMAppAuth和GDrive: $pod安装 target 'GTMAppAuth Drive Example iOS' do platform :ios, '8.0' pod 'GTMAppAuth' pod 'GoogleAPIClientForREST/Drive' end $open Example-iOS.xcworkspace 将客户端ID从google控制台复制到剪贴板。 在gtmappautheExampleViewController

我想按照以下步骤集成GTMAppAuth和GDrive:

$pod安装

target 'GTMAppAuth Drive Example iOS' do
  platform :ios, '8.0'

  pod 'GTMAppAuth'
  pod 'GoogleAPIClientForREST/Drive'
end
$open Example-iOS.xcworkspace

将客户端ID从google控制台复制到剪贴板。 在gtmappautheExampleViewController.m中,使用新的客户端id更新kClientID

最后,打开Info.plist并完全扩展“URL类型”(也称为“Cbundleurltypes”),并将com.googleusercontent.apps.YOUR_客户端替换为客户端id的反向DNS表示形式(不包括:/oauthredirect路径组件)

但是 为什么评论中有错误? 我的Xcode版本是8.3.1


AppAuth的github上有一个公开问题:

现在的解决办法似乎是将这一行添加到Podfile中:

pod'AppAuth',:在添加此行并重新编译后,禁止警告=>true

。Xcode show“library not found for-lAppAuth”我将“Build the active architecture only”设置为否。这个-lAppAuth问题是solved@Lveecode,我添加了AppAuth,但它给我一个错误“sharedApplication”在iOS的应用程序扩展或类别中不可用。请帮帮我。