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!

相关推荐
编程之路从0到11 小时前
ReactNative新架构之iOS端TurboModule源码剖析
react native·ios·源码阅读
SameX6 小时前
春节期间独立开发者从 0 到 1:呼吸训练 iOS App 的工程化落地
ios
东坡肘子15 小时前
春晚、机器人、AI 与 LLM -- 肘子的 Swift 周报 #124
人工智能·swiftui·swift
kevinli4 天前
available没你想象中的可靠
ios·编译原理
BatmanWayne4 天前
swift-微调补充
人工智能·swift
CodeJourney_J4 天前
如何通过SMB协议实现手机共享电脑文件
windows·ios·smb
ipad协议开发5 天前
企业微信iPad协议接口深度解析:技术原理、应用场景与开发实战
ios·企业微信·ipad
千里马-horse5 天前
Building a Simple Engine -- Mobile Development -- Platform considerations
android·ios·rendering·vulkan