详细的错误内容如下,原本podfile中引入了一个本地库 ``` pod 'LBFoundation', :path => './Specs/foundation' ``` 然后会生成两个target, LBFoundation.common和LBFoundation.common-Service(本人IOS小白,也不知道为什么会有两个target) ``` Showing All Messages Prepare build note: Building targets in dependency order error: Multiple commands produce '/Project/DerivedData/Product1/Build/Intermediates.noindex/ArchiveIntermediates/Product1/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/LBFoundation.framework' note: Target 'LBFoundation.common' (project 'Pods') has create directory command with output '/Project/DerivedData/Product1/Build/Intermediates.noindex/ArchiveIntermediates/Product1/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/LBFoundation.framework' note: Target 'LBFoundation.common-Service' (project 'Pods') has create directory command with output '/Project/DerivedData/Product1/Build/Intermediates.noindex/ArchiveIntermediates/Product1/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/LBFoundation.framework' Building targets in dependency order Multiple commands produce '/Project/DerivedData/Product1/Build/Intermediates.noindex/ArchiveIntermediates/Product1/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/LBFoundation.framework' Computing target dependency graph and provisioning inputs Create build description Build description signature: 88c15e2173a8937894d3334eb649cc15 Build description path: /Project/DerivedData/Product1/Build/Intermediates.noindex/ArchiveIntermediates/Product1/IntermediateBuildFilesPath/XCBuildData/88c15e2173a8937894d3334eb649cc15.xcbuilddata ``` 看网上的问题应该是原本该项目的编译系统用的是Legacy Build Sysytem,但是14后统一只能用New Build System。而新的编译方式会产生上述问题,不知道怎么解决。 哪位大佬能指点一下,感激不尽。 ``` Xcode版本: 14.3 CocoaPods版本: 1.12.0 ``` podfile内容就不贴出来了。直接回答区贴答案吧。