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!

相关推荐
2501_9159214313 小时前
iOS开发环境搭建详解 Xcode 配置与快蝎轻量级工具选择
ide·vscode·macos·ios·个人开发·xcode·敏捷流程
_瑞15 小时前
试图教会你用 Xcode Instruments
前端·ios·xcode
2501_9159090621 小时前
iOS应用性能监控 Instruments工具与崩溃日志分析完整指南
android·ios·小程序·https·uni-app·iphone·webview
iOS开发上架哦2 天前
Android代码混淆与iOS加固技术详解
后端·ios
2501_915918412 天前
详解iOS App上架至App Store的全流程步骤与注意事项
android·macos·ios·小程序·uni-app·cocoa·iphone
极客猴子2 天前
会议记录APP怎么选 2026年实测功能对比与使用指南
人工智能·xcode
库奇噜啦呼2 天前
【iOS】weak底层实现
macos·ios·cocoa
软泡芙2 天前
【IOS】 Swift Package Manager (SPM) 指南
网络·ios·swift
黑化旺仔2 天前
iOS - 计算器仿写
ios
zhaocarbon2 天前
WKWebView 拦截 POST/PUT方法 丢失body的问题解决
ios·xcode·webview