Xcode16 Archive Error - Command SwiftCompile failed with a nonzero exit code

1.打包错误信息

Command SwiftCompile failed with a nonzero exit code

2.找到原因

It's because in Xcode 16, UITextField, they add a new function with the same name onReturn. It's ok when you compile and run, but will return error DeadArgSignatureOpt when archive.

The workaround is to change it to a different name (ex: onReturns)

(UITextField 新增了一个函数方法:onReturn;与三方库里面的onReturn函数方法冲突了,改下三方库里的名字即可,例如:onReturns)

3.解决

修改完打包,pass!

相关推荐
90后的晨仔2 小时前
《SwiftUI 高级特性第1章:自定义视图》
ios
空中海3 小时前
第二章:SwiftUI 视图基础
ios·swiftui·swift
大嘴皮猴儿4 小时前
从零开始学商品图翻译:小白也能快速掌握的多语言文字处理与上架技巧
大数据·ide·人工智能·macos·新媒体运营·xcode·自动翻译
空中海6 小时前
第七章:iOS网络与数据持久化
网络·ios
空中海6 小时前
第六章:iOS导航与路由系统
macos·ios·cocoa
空中海6 小时前
第九章:iOS系统框架与能力
macos·ios·cocoa
择势7 小时前
MVVM 本质解构 + RxSwift 与 Combine 深度对决与选型指南
swiftui·swift·rxswift
空中海8 小时前
第三章:布局与组件系统
ios
空中海8 小时前
第八章:iOS并发编程
macos·ios·cocoa
空中海10 小时前
第五章:i OS状态与数据流管理
ios