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!

相关推荐
CocoaKier14 小时前
苹果谷歌纷纷调低官方抽成,苹果谷歌全球抽成比例汇总
ios·google·apple
前端Hardy15 小时前
用 uni-app x 重构我们的 App:一套代码跑通 iOS、Android、鸿蒙!人力成本直降 60%
前端·ios·uni-app
ITKEY_16 小时前
flutter 在iPad mini7上真机运行实战(踩坑)
flutter·ios·ipad
泉木20 小时前
Swift 从入门到精通-第三篇
swift
毛骗导演1 天前
万字解析 OpenClaw 源码架构-跨平台应用之 iOS 应用
前端·ios·架构
songgeb1 天前
Buildable Folder & Group & Folder Reference in Xcode
xcode·swift
鹏多多.1 天前
Flutter使用screenshot进行截屏和截长图以及分享保存的全流程指南
android·前端·flutter·ios·前端框架
少云清1 天前
【UI自动化测试】1_IOS自动化测试 _环境搭建
ui·ios
yijianxiangde1002 天前
iOS 无根越狱前期准备
ios