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!

相关推荐
二流小码农10 小时前
2026年,在鸿蒙生态里,继续深耕自己
android·ios·harmonyos
2501_9151063210 小时前
iPhone 文件管理,如何进行应用沙盒文件查看
android·ios·小程序·https·uni-app·iphone·webview
符哥200816 小时前
iOS 开发中常用的第三方库 / 框架列表
ios
2501_9159214316 小时前
iOS 抓包怎么绕过 SSL Pinning 证书限制,抓取app上的包
android·网络协议·ios·小程序·uni-app·iphone·ssl
TheNextByte11 天前
如何在 iPad/iPhone 上删除语音邮件?
ios·iphone·ipad
TheNextByte11 天前
如何修复iPhone短信消失问题?
ios·cocoa·iphone
二流小码农1 天前
鸿蒙开发:独立开发者的烦恼之icon图标选择
android·ios·harmonyos
智先森zhi1 天前
实战:将 Android 多Module应用迁移到 kmp+cmp
android·ios·kotlin
TheNextByte12 天前
如何在没有iTunes的情况下重启/恢复出厂设置iPhone
ios·cocoa·iphone
芝加哥兔兔养殖场2 天前
前端/iOS开发者必备工具软件合集
前端·ios