Xcode 11 beta 4错误:命令CompileSwiftSources失败,退出代码为非零 [英] Xcode 11 beta 4 error: Command CompileSwiftSources failed with a nonzero exit code
问题描述
我已经下载了最新的Xcode beta4。在构建时,我的3个吊舱也遇到了相同的错误:
I've downloaded the latest Xcode beta 4. When I build I'm getting the same error with 3 of my pods:
Command CompileSwiftSources failed with a nonzero exit code
<unknown>:0: error: unknown argument: '-w'
<unknown>:0: error: unknown argument: '-Xanalyzer'
<unknown>:0: error: unknown argument: '-analyzer-disable-all-checks'
这是MarqueeLabel的pod日志:
This is the MarqueeLabel pod logs:
我已经尝试过:
- 清洁和深度清洁( shift + alt + cmd + k )
- 删除派生数据文件夹
- 重新启动Xcode
- Cleaning and deep cleaning (shift + alt + cmd + k)
- Deleting the Derived Data folder
- Restarting Xcode
我看不到发行说明中列出的错误。
https://developer.apple.com/documentation/xcode_release_notes/xcode_11_beta_4_release_notes
I can't see the error listed in the release notes. https://developer.apple.com/documentation/xcode_release_notes/xcode_11_beta_4_release_notes
有人知道问题所在或解决方法吗?
Does anyone know what the problem is or a workaround?
推荐答案
Cocoapods和Xcode 11 Beta 4存在一个已知问题,其中 inhibit_all_warnings!
导致为Swift设置参数而不会编译。删除此禁止即可解决此问题,可以通过对目标使用 SWIFT_SUPPRESS_WARNINGS = YES
禁止Swift警告。
There is a known issue with Cocoapods and Xcode 11 Beta 4 where inhibit_all_warnings!
causes arguments to be set for Swift which do not compile. Removing this inhibit resolves the issue, and Swift warnings can be inhibited with SWIFT_SUPPRESS_WARNINGS = YES
on targets instead.
这篇关于Xcode 11 beta 4错误:命令CompileSwiftSources失败,退出代码为非零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!