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!

相关推荐
AGoodrMe2 小时前
swift基础之async/await
前端·ios
hhb_6183 小时前
Swift核心技术难点与实战案例解析
开发语言·ios·swift
bukeyiwanshui3 小时前
20260518 Swift实验
git·swift
人月神话-Lee4 小时前
【图像处理】饱和度——颜色的浓淡与灰度化
图像处理·人工智能·ios·ai编程·swift
潮起鲸落入海5 小时前
OpenStack块存储管理-cinder对象存储-swift
openstack·swift
人月神话-Lee7 小时前
【图像处理】卷积原理与卷积核——图像处理的核心引擎
图像处理·深度学习·ios·ai编程·swift
2501_915106328 小时前
深入解析无源码iOS加固原理与方案,保护应用安全
android·安全·ios·小程序·uni-app·cocoa·iphone
Daniel_Coder10 小时前
iOS Widget 开发-15:Widget 性能优化指南
ios·swift·widget·widgetcenter
sakiko_11 小时前
Swift学习笔记30-数据库SQlite语句
数据库·学习·swift
库奇噜啦呼12 小时前
【iOS】源码学习-dyld加载
学习·ios·cocoa