You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter插件flutter_nearby_messages_api iOS构建失败求助

iOS构建Flutter应用报错:Multiple commands produce '/build/ios/Debug-iphonesimulator/Runner.app/Assets.car'

安装flutter_nearby_messages_api插件后,构建iOS应用时出现以下错误:

Failed to build iOS app
[        ] Error (Xcode): Multiple commands produce '/build/ios/Debug-iphonesimulator/Runner.app/Assets.car'
           
[   +1 ms] Could not build the application for the simulator.
[        ] Error launching application on iPhone 14 Pro Max.

我尝试自行重新构建该Flutter插件,在<plugin>.podspec文件中添加s.dependency 'NearbyMessages'后仍出现相同错误。我不是iOS开发者,但推测该问题和CocoaPods有关。

以下是插件的Podfile.lock内容:

PODS:
  - Flutter (1.0.0)
  - flutter_nearby_messages_api (0.0.5):
    - Flutter
    - NearbyMessages
  - GoogleInterchangeUtilities (1.2.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleNetworkingUtilities (1.2.2):
    - GoogleSymbolUtilities (~> 1.1)
  - GoogleSymbolUtilities (1.1.2)
  - GoogleUtilitiesLegacy (1.3.2):
    - GoogleSymbolUtilities (~> 1.1)
  - NearbyMessages (1.1.1):
    - GoogleInterchangeUtilities (~> 1.2)
    - GoogleNetworkingUtilities (~> 1.2)
    - GoogleSymbolUtilities (~> 1.1)
    - GoogleUtilitiesLegacy (~> 1.3)

由于该Flutter插件不在公共仓库,我无法提交issue,希望有人能帮忙解决这个问题。

内容的提问来源于stack exchange,提问作者Betty St

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.26 12:52:46