Command SwiftCompile failed with a nonzero exit code Command SwiftGeneratePch em

Command SwiftCompile failed with a nonzero exit code Command SwiftGeneratePch emitted errors but did not return a nonzero exit code to indicate failure Command PrecompileSwiftBridgingHeader emitted errors but did not return a nonzero exit code to indicate failure

背景是xcode16.2 HandyJSON库不维护了 用了三步解决以上问题,

第一步 原文路径

升级Xcode15后 打包报错 xxx Command SwiftCompile failed with a nonzero exit code

解决办法: 选中pod 报错的库 Code Generation->Compilation Mode改成和debug一样的 Incremental。

第二步 原文路径

Xcode编译时报错"Command CompileSwiftSources failed with a nonzero exit code"。

应该是项目中的Socket.IO-Client-Swift这个pod导致的。

解决方案:

在Build Setting里添加一条user-defined

属性为SWIFT_ENABLE_BATCH_MODE,值为NO

Xcode编译时报错"Command CompileSwiftSources failed with a nonzero exit code"。

应该是项目中的Socket.IO-Client-Swift这个pod导致的。

解决方案:

在Build Setting里添加一条user-defined

属性为SWIFT_ENABLE_BATCH_MODE,值为NO

第三步

由于我自己维护HandyJSON库,见了一个abcHandyJSON.kit库,代码报错提示找不到 /Users/xx/Library/Developer/Xcode/DerivedData/项目名-bqphxvnehmbicihernwajnvfgqwr/Build/Products/Debug-iphoneos/HandyJSON/HandyJSON.modulemap

搜索other swift flag

中的HandyJSON替换成自己的abcHandyJSON名

相关推荐
hang_bro6 分钟前
使用js方法实现阻止按钮的默认点击事件&触发默认事件
前端·react.js·html
用户907387036486415 分钟前
pnpm是如何解决幻影依赖的?
前端
树上有只程序猿21 分钟前
Claude 4提升码农生产力的5种高级方式
前端
傻球22 分钟前
没想到干前端2年了还能用上高中物理运动学知识
前端·react.js·开源
咚咚咚ddd22 分钟前
前端组件:pc端通用新手引导组件最佳实践(React)
前端·react.js
Lazy_zheng23 分钟前
🚀 前端开发福音:用 json-server 快速搭建本地 Mock 数据服务
前端·javascript·vue.js
HJ_Coder23 分钟前
基于Proxyman的实时解密和预览方案
前端
Gixy24 分钟前
聊聊纯函数与不可变数据结构
前端·设计模式
ZzMemory24 分钟前
藏起来的JS(四) - GC(垃圾回收机制)
前端·javascript·面试
lsustc24 分钟前
让AI 帮我写一篇前端技术文章 一(Element Plus 主题编辑器)
前端