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

相关推荐
00后程序员张3 小时前
iOS 开发环境搭建完整指南 Xcode 安装配置、iOS 开发工具选择、ipa 打包与 App Store 上架实战经验
android·macos·ios·小程序·uni-app·iphone·xcode
文阿花4 小时前
flutter 3.22+ Android集成高德Flutter地图自定义Marker显示
android·flutter
折七6 小时前
expo sdk53+ 集成极光推送消息推送 ios swift
前端·javascript·ios
猪哥帅过吴彦祖6 小时前
Flutter 系列教程:布局基础 (上) - `Container`, `Row`, `Column`, `Flex`
前端·flutter·ios
90后的晨仔7 小时前
xcode 16 删除 Provisioning Profiles 文件的有效路径
ios
星海浮沉7 小时前
flutter AudioPlayer的使用问题及处理
flutter
-晨-风-7 小时前
Flutter 运行IOS真机,提示无法打开“****”
flutter·ios
zhifanxu8 小时前
flutter mixin
flutter
00后程序员张8 小时前
App 上架全流程指南,iOS 应用发布步骤、ipa 文件上传工具、TestFlight 分发与 App Store 审核经验分享
android·ios·小程序·https·uni-app·iphone·webview
2501_916013748 小时前
iOS App 上架流程详解,苹果应用发布步骤、App Store 审核规则、ipa 文件上传与测试分发实战经验
android·ios·小程序·https·uni-app·iphone·webview