ios - iOS 中的 Flutte google_sign_in 问题
问题描述
我刚刚创建了新项目并在pubspec.yamlgoogle_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
颤振医生结果:
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!
如果你想要我的其他任何东西,请告诉我。
解决方案
推荐阅读
- widget - 使用输入小部件进行计算,Bonitasoft
- flask - AttributeError:“NoneType”对象没有 Flask 上传的“文件名”属性
- python - 如何修复:“re.error:在 23457 位置没有重复内容”?
- python-3.x - 计算给定神经网络的失败次数?
- c# - 我们可以有一个包含默认值 + 绑定数据的内容吗?
- c# - 动态向表中添加行的错误
- python - 如何处理大型网页抓取项目中的多线程?
- asp.net-core - Razor 视图中的三元字符串比较不起作用
- php - Docker 无法连接到特定端口上的主机
- flutter - 如何在颤动中将滚动视图放在堆栈小部件中