Flutter IOS 产品风格未运行

Has*_*eed 7 ios firebase flutter

我已经在我的 flutter 应用程序中实现了产品风格,并且添加了三个不同的 google-services.plist 文件。现在,当我尝试运行我的 ios 应用程序时,它会抛出此错误。我点击了这个中等帖子链接

Xcode 的输出:

error: Multiple commands produce
'/Users/abc/MarkiTech/pulscare_mobile/build/ios/Debug-development-iphonesimulator/Runner.app/GoogleService-Info.plist':
1) Target 'Runner' (project 'Runner') has copy command from '/Users/abc/Downloads/development/GoogleService-Info.plist' to
'/Users/abc/MarkiTech/pulscare_mobile/build/ios/Debug-development-iphonesimulator/Runner.app/GoogleService-Info.plist'
2) Target 'Runner' (project 'Runner') has copy command from '/Users/abc/Downloads/master/GoogleService-Info.plist' to
'/Users/abc/MarkiTech/pulscare_mobile/build/ios/Debug-development-iphonesimulator/Runner.app/GoogleService-Info.plist'
3) Target 'Runner' (project 'Runner') has copy command from '/Users/abc/Downloads/stage/GoogleService-Info.plist' to
'/Users/abc/MarkiTech/pulscare_mobile/build/ios/Debug-development-iphonesimulator/Runner.app/GoogleService-Info.plist'
Run Code Online (Sandbox Code Playgroud)

Mol*_*0ko 17

如果您的 Runner 目标包含GoogleService-Info.plist在 Bundle Resources 中,请尝试以下操作:

  1. 在 Xcode 中打开您的 iOS 工作区
  2. 在项目导航器中点击Runner项目(带有文件的左侧面板)
  3. 点击Runner目标列表
  4. 转到Build Phases选项卡
  5. 扩张Copy Bundle Resources
  6. GoogleService-Info.plist从捆绑资源中删除