错误:多个命令产生... x86_64.swiftmodule

时间:2019-04-25 19:58:02

标签: swift xcode xcodebuild xcode10.1 xcode-extension

我正在将旧的应用程序从swift 3迁移到swift 4,并遇到了以下错误:

error: Multiple commands produce '/Users/.../Library/Developer/Xcode/DerivedData/ ... /Debug-iphonesimulator/CompassV3.swiftmodule/x86_64.swiftmodule':
1) Target 'CompassV3' (project 'Void Navigator'): Ditto /Users/.../Library/Developer/Xcode/DerivedData/.../Debug-iphonesimulator/CompassV3.swiftmodule/x86_64.swiftmodule /Users/.../Library/Developer/Xcode/DerivedData/Void_Navigator-bogrvoiumgmhfwcpvocwtssiwgpm/Build/Intermediates.noindex/Void Navigator.build/Debug-iphonesimulator/CompassV3.build/Objects-normal/x86_64/CompassV3.swiftmodule
2) Target 'Outdoor Navigator' (project 'Void Navigator'): Ditto /Users/.../Library/Developer/Xcode/DerivedData/.../Debug-iphonesimulator/CompassV3.swiftmodule/x86_64.swiftmodule /Users/.../Library/Developer/Xcode/DerivedData/Void_Navigator-bogrvoiumgmhfwcpvocwtssiwgpm/Build/Intermediates.noindex/Void Navigator.build/Debug-iphonesimulator/Outdoor Navigator.build/Objects-normal/x86_64/CompassV3.swiftmodule

CompassV3构建应用程序

Outdoor navigator是扩展名。

看起来像是冲突,但我不知道如何解决。

项目仍处于快速版本3。

1 个答案:

答案 0 :(得分:0)

您很可能有两个目标使用相同的产品名称。

您能否同时在项目中定位目标,请转到“构建设置”并在“包装”部分中检查“产品模块名称”的值?