[求助] IOS 升级 Xcode14 后,构建失败: Multiple commands produce?

2023-04-01 23:02:33 +08:00
 mmmmms

详细的错误内容如下,原本 podfile 中引入了一个本地库

pod 'LBFoundation', :path => './Specs/foundation'

然后会生成两个 target, LBFoundation.commonLBFoundation.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
933 次点击
所在节点    问与答
5 条回复
pipasese
2023-04-01 23:06:39 +08:00
clean 一下试试?
mmmmms
2023-04-01 23:11:21 +08:00
@pipasese clean 了还是不行诶老哥
mmmmms
2023-04-02 13:03:49 +08:00
upupup
mmmmms
2023-04-03 09:56:38 +08:00
1111
mmmmms
2023-04-03 19:55:52 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/929067

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX