Flutte iOS中的google_sign_in问题

时间:2019-12-29 10:43:13

标签: ios flutter dart

我刚刚创建了一个新项目,并在 pubspec.yaml 中添加了google_sign_in: ^4.1.1依赖项,并尝试运行该应用程序并遇到错误。

Xcode's output:
↳
    In file included from /Users/ipatel/Desktop/flutter_app_google/ios/Pods/AppAuth/Source/iOS/OIDAuthorizationService+IOS.m:20:
    /Users/ipatel/Desktop/flutter_app_google/ios/Pods/AppAuth/Source/iOS/OIDExternalUserAgentIOS.h:30:1: error: expected ','
    API_UNAVAILABLE(macCatalyst)
    ^
    In module 'Foundation' imported from /Users/ipatel/Desktop/flutter_app_google/ios/Pods/AppAuth/Source/OIDAuthorizationService.h:19:
    In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/os/availability.h:93:171: note: expanded from macro 'API_UNAVAILABLE'
        #define API_UNAVAILABLE(...) __API_UNAVAILABLE_GET_MACRO(__VA_ARGS__,__API_UNAVAILABLE6, __API_UNAVAILABLE5, __API_UNAVAILABLE4,__API_UNAVAILABLE3,__API_UNAVAILABLE2,__API_UNAVAILABLE1, 0)(__VA_ARGS__)
                                                                                                                                                                              ^
    In file included from /Users/ipatel/Desktop/flutter_app_google/ios/Pods/AppAuth/Source/iOS/OIDAuthorizationService+IOS.m:21:
    /Users/ipatel/Desktop/flutter_app_google/ios/Pods/AppAuth/Source/iOS/OIDExternalUserAgentCatalyst.h:28:26: error: expected ','
    API_AVAILABLE(macCatalyst(13)) API_UNAVAILABLE(ios)
                             ^
    2 errors generated.
    note: Using new build systemnote: Planning buildnote: Constructing build description

Flutter Doctor结果:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.12.13+hotfix.6, on Mac OS X 10.14.3 18D109, locale en-IN)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.41.1)
[✓] Connected device (4 available)

• No issues found!

如果您想要我的其他任何东西,请告诉我。

0 个答案:

没有答案