Command CompileSwift failed with a nonzero exit code

翻译过来是

命令CompileSwift失败,退出码为非零

截图如下:


截屏2022-01-11 下午3.45.01.png

尝试以下任意一种方法:

1.pod cache clean 重新执行pod install命令
2.xcode 清除编译缓存 product -> Clean Builder Folder或者快捷键 shift + command + K
3.在项目中搜索关键词CommonCrypto,如果有Pod依赖这个头文件,在podfile中移除掉这个Pod库,重新执行pod install.

经上述一番操作后还报:


截屏2022-01-11 下午3.55.14.png

是因为我使用录屏扩展bulid setting -> Enable Bitcode开着,某些库不支持bitcode导致的,因此改为No即可

你可能感兴趣的:(Command CompileSwift failed with a nonzero exit code)