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

相关推荐
Digitally4 小时前
如何将数据从 iPhone 传输到笔记本电脑
ios·电脑·iphone
白玉cfc5 小时前
【iOS】cell的复用以及自定义cell
ios·cocoa·xcode
AD钙奶-lalala6 小时前
在 macOS 上搭建 Flutter 开发环境
flutter·macos
星释7 小时前
使用Appium在iOS上实现自动化
ios·appium·自动化
Digitally9 小时前
如何安全地准备 iPhone 以旧换新(分步说明)
安全·ios·iphone
二流小码农9 小时前
鸿蒙开发:一文了解桌面卡片
android·ios·harmonyos
zjam93339 小时前
iOS 26 Tabbar 真好玩,后续兼容要当心了
ios
恋猫de小郭9 小时前
iOS 26 beta1 重新禁止 JIT 执行,Flutter 下的 iOS 真机 hot load 暂时无法使用
android·前端·flutter
vvilkim10 小时前
Flutter开发入门:Dart语言基础全面解析
android·前端·flutter
hepherd10 小时前
Flutter - 原生交互 - 相机Camera - 02
flutter