【发布时间】:2019-02-22 06:13:30
【问题描述】:
我收到了最近讨论的“Xcode 10 错误:多个命令产生...”错误,但对于我的项目的结果 app 和 appex 文件。有谁知道这意味着什么。我的项目有一个应用程序和两个扩展程序(只有一个是错误的一部分)。
Showing Recent Messages
Prepare build
note: Using new build systemnote: Planning buildnote: Constructing build description
Build system information
error: Multiple commands produce '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-enqofdpadskdcgemmhrzsxahnjet/Build/Products/Debug-iphoneos/MyApp Dev.app':
1) Target 'MyApp Dev' has create directory command with output '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-enqofdpadskdcgemmhrzsxahnjet/Build/Products/Debug-iphoneos/MyApp Dev.app'
2) That command depends on command in Target 'MyApp Dev': script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-enqofdpadskdcgemmhrzsxahnjet/Build/Products/Debug-iphoneos/MyApp Dev Share Extension.appex':
1) Target 'MyApp Dev Share Extension' has create directory command with output '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-enqofdpadskdcgemmhrzsxahnjet/Build/Products/Debug-iphoneos/MyApp Dev Share Extension.appex'
2) That command depends on command in Target 'MyApp Dev Share Extension': script phase “[CP] Copy Pods Resources”
Build system information
warning: ignoring duplicated output file: '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-enqofdpadskdcgemmhrzsxahnjet/Build/Products/Debug-iphoneos/MyApp Dev.app' (in target 'MyApp Dev')
Build system information
warning: ignoring duplicated output file: '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-enqofdpadskdcgemmhrzsxahnjet/Build/Products/Debug-iphoneos/MyApp Dev Share Extension.appex' (in target 'MyApp Dev Share Extension')
Build failed 18.09.18, 10:28 4.5 seconds
我知道我可以回到旧的构建系统,但我更喜欢使用新的更快的构建系统。感谢您的帮助。
【问题讨论】:
-
请检查这个...check
-
谢谢,但这没有帮助,我已经安装了 Cocoapods。
-
签入
Project -> Build Phases -> Copy Bundle Resources有同名文件。只需删除重复文件即可。 -
我找到了解决方案:我错过了将 Cocoapods 从 1.4.0 更新到 1.5.3 - 更新 Cocoapods 后问题消失了。再次感谢,您给了我正确方向的提示。
-
对于那些不使用 CocoaPods 的人有什么解决方案吗?