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!

相关推荐
wumu_Love1 小时前
Xcode 15 file-write-create
ide·macos·xcode
异次元客2 小时前
选择设备对象进行图形渲染
ios·apple
iOS大前端海猫18 小时前
Swift 中的async和await
ios·编程语言
Superxpang20 小时前
JavaScript `new Date()` 方法移动端 `兼容 ios`,ios环境new Date()返回NaN
开发语言·前端·javascript·ios·typescript·安卓
hepherd20 小时前
学习笔记 - Swfit 6.1 - 语法概览
swift
iOS大前端海猫1 天前
Swift 中重要特性——逃逸闭包@escaping
前端·ios
亮亮哥1 天前
设计一种机制检测UIViewController的内存泄漏
ios
东坡肘子1 天前
微软收紧插件、谷歌发力云端,Xcode 何去何从? | 肘子的 Swift 周报 #079
人工智能·swiftui·swift
异次元客2 天前
使用渲染管线渲染图元
ios·apple
duly2 天前
CocoaPods 私有库Spec Repo搭建与使用指南
ios·cocoapods