简体   繁体   English

xcodebuild 构建命令在 Xcode 11.5 中失败

[英]xcodebuild build command fails in Xcode 11.5

when build the app in xcode 11.5 generate this issue.在 xcode 11.5 中构建应用程序时会产生此问题。 LOG: I hope can help me!! LOG:希望能帮到我!! Regards!!问候!!

warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'B7_MOCHA' from project 'B7_MOCHA')警告:无法读取序列化诊断文件:无法加载文件:无法打开诊断文件(在项目“B7_MOCHA”的目标“B7_MOCHA”中)

warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'B7_MOCHA' from project 'B7_MOCHA')警告:无法读取序列化诊断文件:无法加载文件:无法打开诊断文件(在项目“B7_MOCHA”的目标“B7_MOCHA”中)

warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target 'B7_MOCHA' from project 'B7_MOCHA')警告:无法读取序列化诊断文件:无法加载文件:无法打开诊断文件(在项目“B7_MOCHA”的目标“B7_MOCHA”中)

:0: error: unable to execute command: Killed: 9:0: error: compile command failed due to signal 9 (use -v to see invocation) Command CompileSwiftSources failed with a nonzero exit code :0:错误:无法执行命令:已终止:9:0:错误:由于信号 9 导致编译命令失败(使用 -v 查看调用)命令 CompileSwiftSources 失败,退出代码为非零

this a picture from console log:这是来自控制台日志的图片:

io

the other console show this issue另一个控制台显示此问题

/Users/dverdugo/Library/Developer/Xcode/DerivedData/B7_MOCHA-asiprqvqhlstshfnhycalolsjhxs/Build/Intermediates.noindex/B7_MOCHA.build/Debug-iphoneos/B7_MOCHA.build/Objects-normal-asan/arm64/TAG_CHAT.dia:1:1: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file /Users/dverdugo/Library/Developer/Xcode/DerivedData/B7_MOCHA-asiprqvqhlstshfnhycalolsjhxs/Build/Intermediates.noindex/B7_MOCHA.build/Debug-iphoneos/B7_MOCHA.build/Objects-normal-asan/arm64/TAG_CHAT.dia:1:1 :无法读取序列化诊断文件:无法加载文件:无法打开诊断文件

在此处输入图像描述

I hope can help me!!希望能帮到我!! Regards!!问候!!

Sometimes the best thing you need to do is -Close xcode.有时您需要做的最好的事情是关闭 xcode。 -Restar the Mac -check if the pods you are using installed well. -重新启动 Mac -检查您使用的 pod 是否安装良好。

and for the second error, maybe you deleted some file in the folder of your project so xcode is looking for it and can't find it.对于第二个错误,也许您删除了项目文件夹中的一些文件,因此 xcode 正在寻找它但找不到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM