Flutter:'google_sign_in' pub Build 失败 #import <AppAuth/AppAuthCore.h>

时间:2020-12-19 06:17:22

标签: flutter

我在用我的项目构建 iOS 应用时遇到问题。所以,我一直在用不同的包进行测试。

显然,

google_sign_in 给我一个错误。

我只添加了

dependencies:
  flutter:
    sdk: flutter
  google_sign_in: ^4.5.6

如果我在 dev channel 上尝试此操作,那么我会收到

Xcode 构建的错误输出: ↳ ** 构建失败 **

Xcode 的输出: ↳

Desktop/hey/ios/Pods/GTMAppAuth/Source/GTMAppAuthFetcherAuthorizat
ion.m:26:9: fatal error: 'AppAuth/AppAuthCore.h' file not found
#import <AppAuth/AppAuthCore.h>
        ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

而且,在stable channel

Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/gi/Desktop/heey/ios/Pods/GTMAppAuth/Source/GTMAppAuthFetcherAuthoriza
    tion.m:26:9: fatal error: 'AppAuth/AppAuthCore.h' file not found
    #import <AppAuth/AppAuthCore.h>
            ^~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is
    set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.3.99. (in target 'google_sign_in' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is
    set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.3.99. (in target 'GTMAppAuth' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is
    set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.3.99. (in target 'GoogleSignIn' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is
    set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.3.99. (in target 'Flutter' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is
    set to 8.0, but the range of supported deployment target versions is 9.0 to
    14.3.99. (in target 'AppAuth' from project 'Pods')

我希望将目标提升到 9.0,并尝试了在这里或 Google 上找到的多种解决方案,但都没有奏效。

我不知道该怎么做才能解决这个问题。似乎没有任何效果。

----编辑

Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7891006299 (9 days ago) • 2020-12-10 11:54:40 -0800
Engine • revision ae90085a84
Tools • Dart 2.10.4

0 个答案:

没有答案