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!

相关推荐
鹏多多.19 小时前
Flutter使用screenshot进行截屏和截长图以及分享保存的全流程指南
android·前端·flutter·ios·前端框架
少云清19 小时前
【UI自动化测试】1_IOS自动化测试 _环境搭建
ui·ios
yijianxiangde1001 天前
iOS 无根越狱前期准备
ios
库奇噜啦呼1 天前
【iOS】Effective Objective-C第一章
开发语言·ios·objective-c
songgeb1 天前
UITableView 在 width=0 时 reloadData 被"空转消费"导致 Cell 显示错乱
swift·cursor
2501_916008891 天前
iPhone 上怎么抓 App 的网络请求,在 iOS 设备上捕获网络请求
android·网络·ios·小程序·uni-app·iphone·webview
他们都不看好你,偏偏你最不争气1 天前
【iOS】block
开发语言·ios·objective-c·block·闭包
符哥20081 天前
充电桩 iOS App 的 BLE蓝牙模块(Swift)
macos·ios·cocoa