命令CompileSwift失败,在Xcode 10中退出代码为非零 [英] Command CompileSwift failed with a nonzero exit code in Xcode 10

查看:119
本文介绍了命令CompileSwift失败,在Xcode 10中退出代码为非零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午好,

目前(版本10.0)更新到最新版本的Xcode后,该项目无法构建,因为它发现了一些有关"Command CompileSwift失败,退出代码非零"失败的错误.

After updating to the latest version of Xcode at the moment (version 10.0) the project is unable to build because it found some errors regarding some "Command CompileSwift failed with a nonzero exit code" error.

如何解决此错误? 它们出现在我在项目中使用的大多数Pod中(我使用CocoaPods).

How do I solve this errors? They appear in most of the Pods (I use CocoaPods) I use inside my project.

我尝试将广告连播版本和广告连播更新为可用的最新版本,但是问题仍然存在.

I have tried updating the pod version and the pods to the latest version available, but the problem is still there.

我在网络上进行了很多搜索,关于此问题的信息很少.

I have searched a lot through the web and there is very little information regarding this issue.

致谢.

推荐答案

当前,我的构建正在运行. 在这里,您可以尝试完成以下步骤:

Currently my build is working. Here you are the steps I tried until it finally worked:

  1. 在整个项目中搜索CommonCrypto一词.
  2. 如果您的Pod包含该标头导入,请从Podfile中删除此Pod并执行Pod安装.
  3. 清理并构建项目.
  4. 再次将Pod添加到Podfile并执行Pod安装.
  5. 如果可能,请使用真实设备清洁并再次构建项目.

如果您没有该Pod,也许您可​​以尝试对项目中可能遇到的一些旧Pod进行相同的操作.

And If you don't have that Pod, maybe you can try by making the same steps with some old Pod that you may encounter in your project.

添加的信息:同样,如果Pod内有一些代码错误,则首先需要解决该代码问题,然后尝试再次编译项目.

Added information: also If you have some code error inside a Pod, first you need to solve that code problem and then try to compile again the project.

我要复制在project.pbxproj中所做的更改.我知道这不是很有帮助,但这是唯一的git差异提交更改的东西:

I'm going to copy the changes made in my project.pbxproj. I know it's not very helpful but it's the only thing that have changed in the git difference commit:

Removed: BDC9821B1E9BD1B600ADE0EF /* (null) in Sources */ = {isa = PBXBuildFile; };
Added:   BDC9821B1E9BD1B600ADE0EF /* BuildFile in Sources */ = {isa = PBXBuildFile; };

我希望这会有所帮助,

致谢.

这篇关于命令CompileSwift失败,在Xcode 10中退出代码为非零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆