如何修复Xcode10中的“多个命令产生”错误?

时间:2019-04-18 10:34:27

标签: objective-c xcode frameworks cocoapods

我曾经习惯使用pod spec lint .,但没有成功。

error: Multiple commands produce '/Users/liangjunmei/Library/Developer/Xcode/DerivedData/App-ctaemkwjxnmelrdjcqoagdredbyq/Build/Products/Release-iphonesimulator/OLOADSDK/OLOADSDK.framework/Headers/OLOLogger.h':
    1) Target 'OLOADSDK' (project 'Pods') has copy command from '/var/folders/d8/g4lpjdfx7l19r8x_hf6qm3hr0000gn/T/CocoaPods-Lint-20190418-3716-dtrtj0-OLOADSDK/Pods/OLOADSDK/OLOADSDK/OLOADSDK/Classes/Util/OLOLogger.h' to '/Users/liangjunmei/Library/Developer/Xcode/DerivedData/App-ctaemkwjxnmelrdjcqoagdredbyq/Build/Products/Release-iphonesimulator/OLOADSDK/OLOADSDK.framework/Headers/OLOLogger.h'
    2) Target 'OLOADSDK' (project 'Pods') has copy command from '/var/folders/d8/g4lpjdfx7l19r8x_hf6qm3hr0000gn/T/CocoaPods-Lint-20190418-3716-dtrtj0-OLOADSDK/Pods/OLOADSDK/OLOADSDK/OLOADSDK/Classes/Util/Vendors/OLOLogger.h' to '/Users/liangjunmei/Library/Developer/Xcode/DerivedData/App-ctaemkwjxnmelrdjcqoagdredbyq/Build/Products/Release-iphonesimulator/OLOADSDK/OLOADSDK.framework/Headers/OLOLogger.h'

1 个答案:

答案 0 :(得分:0)

尝试从那里进入Target -> Build Phases -> Copy Bundle Resources -> Remove info.plist

如果这不起作用,则可以更改构建系统: 转到File->Project/Workspace settings

将构建系统更改为旧版构建系统。