【发布时间】:2021-03-07 01:57:01
【问题描述】:
我在我的 Flutter 应用中实现了产品风格,并且添加了三个不同的 google-services.plist 文件。现在,当我尝试运行我的 ios 应用程序时,它会引发此错误。 我关注了这个中型帖子link
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'
【问题讨论】:
-
你的Runner目标的Bundle Resources是否包含
GoogleService-Info.plist?