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!

相关推荐
HarderCoder5 小时前
Swift 静态分派与动态分派:方法到底是如何被调用的
swift
_瑞15 小时前
AI Coding 那么快,为什么还需要 SDD?
人工智能·ios·ai编程
轩辕十四leo15 小时前
Astrolabe(星盘):让 AI 看见自己写出的 UI
ios·ai编程
白玉cfc17 小时前
熟悉Objective-C
开发语言·ios·objective-c
星辰即远方1 天前
字符串合法性检验
macos·ios·cocoa
末代iOS程序员华仔1 天前
KMP全栈开发:从Android到AI Agent的技术演进与实践
flutter·ios·figma
2501_916008891 天前
苹果上架工具怎么选 不用 Mac 上架 App Store 的几种方案
android·macos·ios·小程序·uni-app·iphone·webview
鹤卿1231 天前
谓词与正则表达式(OC)
ios·正则表达式·objective-c·xcode
wujf902 天前
Go 内存泄漏排查完整教程 (pprof)
开发语言·golang·xcode