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!

相关推荐
帅次1 小时前
Flutter FloatingActionButton 从核心用法到高级定制
android·flutter·macos·ios·kotlin·android-studio
月未央5 小时前
HarmonyOS Next 状态管理:Computed 装饰器实践
ios·harmonyos
Nicolas89311 小时前
【大模型实战】利用ms-swift微调框架对QwQ-32B推理模型进行微调
大模型·swift·大模型微调·lora微调·微调框架·推理模型微调·msswift
iFlyCai19 小时前
Swift 中 associatedtype 的用法详解
swift·associatetype
二流小码农20 小时前
鸿蒙开发:权限管理之授权方式
android·ios·harmonyos
二流小码农20 小时前
鸿蒙开发:申请授权权限
android·ios·harmonyos
黄毛火烧雪下1 天前
ios打包需要的证书及步骤
macos·ios·cocoa
月未央1 天前
HarmonyOS Next 状态管理:Monitor 装饰器实践
ios·harmonyos
追寻向上1 天前
基于图像比对的跨平台UI一致性校验工具开发全流程指南——Android/iOS/Web三端自动化测试实战
android·ui·ios