首页 > 解决方案 > iOS BUILD FAILED - Google Maps 和 Google Places pod 冲突

问题描述

“flutter run”在 iOS 上失败并显示以下消息,但在 Android 上它可以正常工作。

✗ 扑跑          
在调试模式下在 iPhone SE(第 2 代)上启动 lib/main.dart...
运行 Xcode 构建...                                                  
                                                   
Xcode 构建完成。14.4s
无法构建 iOS 应用
Xcode 构建的错误输出:
↳
    2020-09-26 20:42:41.830 xcodebuild[62503:856039] 警告:“GoogleMaps.debug.xcconfig”的文件引用是多个组的成员(“支持文件”
    和“支持文件”);这表明项目格式不正确。仅保留其中一个组中的成员身份(但目标中的成员身份将被保留)
    不受影响)。如果您想在多个组中引用同一文件,请添加对同一路径的另一个引用。
    2020-09-26 20:42:41.830 xcodebuild[62503:856039] 警告:“GoogleMaps.release.xcconfig”的文件引用是多个组的成员(“支持
    文件”和“支持文件”);这表示项目格式错误。仅保留其中一个组中的成员身份(但目标中的成员身份将
    不受影响)。如果您想在多个组中引用同一文件,请添加对同一路径的另一个引用。
    ** 构建失败 **


Xcode 的输出:
↳
    在构建从导入的模块“GoogleMaps”时
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:2:
    在从 :1 包含的文件中:
    在 /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:56 包含的文件中:
    在 /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacePicker.h:11 包含的文件中:
    在 /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacePickerConfig.h:12 包含的文件中:
    在 /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacesClient.h:15 包含的文件中:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacesErrors.h:28:14:警告:预期的引用字符串
    等号后[-Wdocumentation]
       * 社区和支持页面。
                ~^
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacesErrors.h:28:19:警告:HTML 开始标签
    过早结束,预期的属性名称或“>”[-Wdocumentation]
       * 社区和支持页面。
                      ^
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacesErrors.h:35:14:警告:预期的引用字符串
    等号后[-Wdocumentation]
       * 社区和支持页面。
                ~^
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacesErrors.h:35:19:警告:HTML 开始标签
    过早结束,预期的属性名称或“>”[-Wdocumentation]
       * 社区和支持页面。
                      ^
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacesErrors.h:64:4:警告:HTML 开始标签
    过早结束,预期的属性名称或“>”[-Wdocumentation]
       * href="https://developers.google.com/places/ios-api/usage">使用限制指南了解更多
       ^
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacesErrors.h:63:63:注意:HTML 标记从这里开始
       * 远远超出正常请求级别的 API。请参阅 ' [-Wdocumentation]
       * href="https://developers.google.com/places/ios-api/usage">使用限制指南了解更多
       ^
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacesErrors.h:72:63:注意:HTML 标记从这里开始
       * 远远超出正常请求级别的 API。见*类型;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~^~~~~
    在从导入的模块“GoogleMaps”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSAddressComponent.h:28:48:注意:但在“GoogleMaps”中
    找到属性名称“名称”
    @property(nonatomic, readonly, copy) NSString *name;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
    在从导入的模块“GooglePlaces”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.h:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceLikelihoodList.h:38:10:错误:
    'GMSPlaceLikelihoodList'在不同的模块中有不同的定义;第一个区别是模块“GooglePlaces.GMSPlaceLikelihoodList”中的定义
    默认的“可空性”属性
    @property(nonatomic, copy, readonly, nullable) NSAttributedString *attributions;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GoogleMaps”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlaceLikelihoodList.h:38:10:注意:但在
    “GoogleMaps”没有找到属性的书面或默认属性
    @property(nonatomic, copy, readonly) NSAttributedString *GMS_NULLABLE_PTR 属性;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GooglePlaces”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.h:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompletePrediction.h:79:10:错误:
    'GMSAutocompletePrediction' 在不同的模块中有不同的定义;第一个区别是模块“GooglePlaces.GMSAutocompletePrediction”中的定义
    找到默认的“可空性”属性
    @property(nonatomic, copy, readonly, nullable) NSAttributedString *attributedSecondaryText;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GoogleMaps”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSAutocompletePrediction.h:68:10:注意:但在
    “GoogleMaps”没有找到属性的书面或默认属性
    @property(nonatomic, copy, readonly) NSAttributedString *GMS_NULLABLE_PTR attributesSecondaryText;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GooglePlaces”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.h:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteFilter.h:83:10:错误:
    'GMSAutocompleteFilter' 在不同的模块中有不同的定义;第一个区别是模块“GooglePlaces.GMSAutocompleteFilter”中的定义
    默认的“可空性”属性
    @property(nonatomic, copy, nullable) NSString *country;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
    在从导入的模块“GoogleMaps”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSAutocompleteFilter.h:70:10:注意:但在“GoogleMaps”中
    找不到属性的书面或默认属性
    @property(nonatomic, copy) NSString *GMS_NULLABLE_PTR 国家;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
    在从导入的模块“GooglePlaces”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.h:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacePhotoMetadata.h:29:10:错误:
    'GMSPlacePhotoMetadata' 在不同的模块中有不同的定义;第一个区别是模块“GooglePlaces.GMSPlacePhotoMetadata”中的定义
    默认的“可空性”属性
    @property(nonatomic, readonly, copy, nullable) NSAttributedString *attributions;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GoogleMaps”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacePhotoMetadata.h:31:10:注意:但在“GoogleMaps”中
    找不到属性的书面或默认属性
    @property(nonatomic, readonly, copy) NSAttributedString* GMS_NULLABLE_PTR 属性;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GooglePlaces”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.h:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlace.h:113:58:错误:'GMSPlace'有不同
    不同模块中的定义;第一个区别是模块“GooglePlaces.GMSPlace”中的定义找到了类型为“NSString * _Nullable”的属性“名称”
    @property(nonatomic, copy, readonly, nullable) NSString *name;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GoogleMaps”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlace.h:49:48:注意:但在“GoogleMaps”中找到
    类型为“NSString * _Nonnull”的属性“名称”
    @property(nonatomic, copy, readonly) NSString *name;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
    在从导入的模块“GooglePlaces”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.h:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceLikelihood.h:37:1:错误:
    'GMSPlaceLikelihood' 在不同的模块中有不同的定义;第一个区别是模块“GooglePlaces.GMSPlaceLikelihood”中的定义找到的方法
    带指定初始化器
    - (instancetype)initWithPlace:(GMSPlace *)place
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GoogleMaps”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlaceLikelihood.h:37:1:注意:但在“GoogleMaps”中
    找到没有指定初始化器的方法
    - (instancetype)initWithPlace:(GMSPlace *)place可能性:(double)likelihood;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GooglePlaces”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.h:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacesClient.h:121:1:错误:'GMSPlacesClient'
    在不同的模块中有不同的定义;第一个区别是模块“GooglePlaces.GMSPlacesClient”中的定义发现返回类型为“BOOL”(又名
    '_布尔')
    + (BOOL)提供APIKey:(NSString *)key;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GoogleMaps”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSPlacesClient.h:102:1:注意:但在“GoogleMaps”中找到
    不同的返回类型'void'
    - (void)reportDeviceAtPlaceWithID:(NSString *)placeID;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
    在从导入的模块“GooglePlaces”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.h:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteViewController.h:118:10:错误:
    'GMSAutocompleteViewController' 在不同的模块中有不同的定义;第一个区别是模块中的定义
    'GooglePlaces.GMSAutocompleteViewController' 找到默认的 'nullability' 属性
    @property(nonatomic, weak, nullable) IBOutlet id 委托;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    在从导入的模块“GoogleMaps”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GMSAutocompleteViewController.h:103:10:注意:但在
    “GoogleMaps”没有找到属性的书面或默认属性
    @property(非原子,弱)
    ~~~~~~~~~^~~~~~~~~~~~~~~~~
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.m:82:36:警告:
    'autocompleteBoundsMode' 已弃用:autocompleteBoundsMode 属性已弃用,而支持 autocompleteFilter.locationBias 或
    autocompleteFilter.locationRestriction [-Wdeprecated-declarations]
                autocompleteController.autocompleteBoundsMode = kGMSAutocompleteBoundsModeRestrict;
                                       ^
    在从导入的模块“GooglePlaces”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.h:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteViewController.h:134:54:注意:
    'autocompleteBoundsMode' 已在此处明确标记为已弃用
        GMSAutocompleteBoundsMode autocompleteBoundsMode __GMS_PLACES_AVAILABLE_BUT_DEPRECATED_MSG(
                                                         ^
    在从导入的模块“GooglePlaces”中
    /Users/dominikspringer/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+2/ios/Classes/GooglePlacesPickerPlugin.h:2:
    /Users/dominikspringer/Code/git/meisight/ios/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacesDeprecationUtils.h:19:56:注意:展开
    来自宏“__GMS_PLACES_AVAILABLE_BUT_DEPRECATED_MSG”
    #define __GMS_PLACES_AVAILABLE_BUT_DEPRECATED_MSG(msg) __deprecated_msg(msg)
                                                           ^
    在从 /Users/dominikspringer/Code/git/meisight/ios/Pods/Target Support 导入的模块“UIKit”中
    文件/google_places_picker/google_places_picker-prefix.pch:2:
    在从导入的模块“Foundation”中
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/UIKit.framewor
    k/标头/UIKit.h:8:
    在从导入的模块“CoreFoundation”中
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/Foundation.fra
    mework/Headers/Foundation.h:6:
    在从导入的模块“达尔文”中
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreFoundation
    .framework/Headers/CoreFoundation.h:16:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/sys/cdefs.h:200:48:注意:
    从宏“__deprecated_msg”扩展而来
            #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                          ^
    生成 7 个警告和 9 个错误。
    注意:使用新的构建系统
    注意:并行构建目标
    注:规划建设
    注意:构建构建描述

无法为模拟器构建应用程序。
在 iPhone SE(第 2 代)上启动应用程序时出错。

颤振医生-v

[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.6 19G2021, locale en-DE)
    • Flutter 版本 1.20.4,位于 /Users/dominikspringer/Code/DevTools/flutter/flutter
    • 框架修订fba99f6cf9(12天前),2020-09-14 15:32:52 -0700
    • 引擎版本 d1bc06f032
    • Dart 版本 2.9.2

 
[✓] Android 工具链 - 为 Android 设备开发(Android SDK 版本 29.0.2)
    • Android SDK 位于 /Users/dominikspringer/Library/Android/sdk
    • 平台 android-29,构建工具 29.0.2
    • Java 二进制文件位于:/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java 版 OpenJDK 运行时环境(内部版本 1.8.0_242-release-1644-b3-6222593)
    • 接受所有Android 许可证。

[✓] Xcode - 为 iOS 和 macOS 开发 (Xcode 12.0)
    • Xcode 位于 /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0,内部版本 12A7209
    • CocoaPods 版本 1.9.3

[✓] Android Studio(4.0版)
    • Android Studio 位于 /Applications/Android Studio.app/Contents
    • Flutter 插件版本 49.0.2
    • Dart 插件版本 193.7547
    • Java 版 OpenJDK 运行时环境(内部版本 1.8.0_242-release-1644-b3-6222593)

[✓] VS 代码(版本 1.49.1)
    • /Applications/Visual Studio Code.app/Contents 中的 VS 代码
    • Flutter 扩展版本 3.14.1

[✓] 连接设备(1 个可用)
    • iPhone SE(第 2 代)(移动) • 399DDF14-7DE4-4B13-9909-1943FAFCE08A • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-0(模拟器)

标签: iosgoogle-mapsfluttercocoapods

解决方案


我之前有同样的错误。这是我所做的:

  • 使用 Xcode 从 Podfile 中注释掉或删除以下行。

pod 'GoogleMaps'
pod 'GooglePlaces'

通常我们不需要在 Podfile 中手动描述“pod ...”,因为 pod 会自动安装在 pubspec.yaml 之后。


推荐阅读