Flutter-升级Xcode后构建iOS报错

代码什么都没改动,貌似只是升级了下Xcode,构建iOS就一直报错,错误有时候还不一样。

复制代码
Swift Compiler Error (Xcode): Unable to rename temporary '/Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2ZBFEEPIDQ0EY/CoreImage-2ADU88VB0BY2P-27cd3ef4.pcm.tmp' 
to output file '/Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2ZBFEEPIDQ0EY/CoreImage-2ADU88VB0BY2P.pcm': 
'No such file or directory'  Swift Compiler Error (Xcode): Could not build module 'CoreImage' 

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator18.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:12:8

stat cache file '/Users/admin/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/
iphoneos18.2-22C146-d5b9239ec3bf5b3adbecdf21472871e3.sdkstatcache' not found

AI&Google各种问,都说是DerivedData缓存的问题,让删缓存。

折腾了一上午都搞不定。

最后看到了这个,成功解决。

https://stackoverflow.com/questions/79118572/xcode-16-and-ios-18-project-not-compiling

相关推荐
humiaor15 小时前
Flutter之riverpod状态管理详解
flutter·provider·riverpod
Digitally19 小时前
如何轻松地将联系人从 Mac 同步到 iPhone
macos·ios·iphone
2501_9159090621 小时前
uni-app iOS 上架常见问题与解决方案,实战经验全解析
android·ios·小程序·https·uni-app·iphone·webview
浮生若茶808821 小时前
创建Flutter项目的两种方式
flutter
RaidenLiu1 天前
Riverpod 3:组合与参数化的进阶实践
前端·flutter
他们都不看好你,偏偏你最不争气1 天前
【iOS】对象复制与属性关键字
macos·ios·objective-c·cocoa·面向对象
ideal树叶1 天前
Provider中的watch、read、Consumer、ChangeNotifierProvider、ValueNotifierProvider
flutter
勤劳打代码1 天前
独辟蹊径 —— NSIS 自定义 EXE 应用名称
windows·flutter
在下历飞雨1 天前
AI+Kuikly自研DSL初体验:让UI开发更简洁优雅
ios·vibecoding
zzywxc7871 天前
深入探讨AI三大领域的核心技术、实践方法以及未来发展趋势,结合具体代码示例、流程图和Prompt工程实践,全面展示AI编程的强大能力。
人工智能·spring·机器学习·ios·prompt·流程图·ai编程