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!

相关推荐
瓜子三百克13 小时前
值类型大小与内存分配
swift·内存分配
初级代码游戏14 小时前
Maui劝退:用windows直接真机调试iOS,无须和Mac配对
macos·ios·配置·maui·热重载
fundroid21 小时前
Swift 进军 Android,Kotlin 该如何应对?
android·ios
形影相吊1 天前
iOS防截屏实战
ios
吴Wu涛涛涛涛涛Tao1 天前
Flutter 弹窗解析:从系统 Dialog 到完全自定义
flutter·ios
kymjs张涛1 天前
零一开源|前沿技术周报 #7
android·前端·ios
思考着亮1 天前
15-错误处理
ios
思考着亮1 天前
9.方法
ios
思考着亮1 天前
6.结构体和类
ios
思考着亮1 天前
7.闭包
ios