CocoaPods:多命令产生

时间:2019-05-15 23:55:49

标签: xcode cocoapods

Showing Recent Messages
:-1: Multiple commands produce '/Users/coel/Library/Developer/Xcode/DerivedData/XXXXXX-ercdvkscrqvgfqhfocqthkuzinrp/Build/Intermediates.noindex/ArchiveIntermediates/XXXXXXXXXXX/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaLumberjack.framework':
1) Target 'CocoaLumberjack-Default-Swift' has create directory command with output '/Users/coel/Library/Developer/Xcode/DerivedData/XXXXXX-ercdvkscrqvgfqhfocqthkuzinrp/Build/Intermediates.noindex/ArchiveIntermediates/XXXXXXXX/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaLumberjack.framework'
2) Target 'CocoaLumberjack.default-Swift' has create directory command with output '/Users/coel/Library/Developer/Xcode/DerivedData/XXXXXXXX-ercdvkscrqvgfqhfocqthkuzinrp/Build/Intermediates.noindex/ArchiveIntermediates/XXXXXXXXX/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaLumberjack.framework'

enter image description here

如果我删除其中一个,则找不到头文件。我可以调试但不能存档。

2 个答案:

答案 0 :(得分:1)

记录评论中讨论的答案:

使用旧的Xcode构建系统是一种解决方法。详细信息here

答案 1 :(得分:1)

当我有多个目标时会遇到这个问题。

请确保您的目标在 General -> Deployment Info 下具有相同的 IOS 版本,然后再次运行 pod install。enter image description here