Command CompileSwift failed with a nonzero exit code in Xcode 10

10,125 阅读1分钟

cocoapods 中 framework 报错

Command CompileSwift failed with a nonzero exit code in Xcode 10

解决方案

1.在项目中搜索关键词CommonCrypto

2.如果有Pod依赖这个头文件,在podfile中移除掉这个Pod库,重新执行pod install.

3.clean and build项目。

4.重新添加刚才移除掉的Pod库到podfile文件。然后pod install项目。

5.clean and build项目,就好了。

来源