Getting the same issue for both a Flutter project and a completely new project in Xcode.
Currently the only solution I found that is working is that to add the missing modules in the Frameworks without embedding. I also attached the build report of all the issues only due to limited size for upload.
I also attached the build report for a new project that sometimes builds .
New Project Build Report without only one SPM:
Build DTUPulse_2025-03-13T15-29-42.txt
Flutter Build Report:
Build Runner_2025-03-13T15-22-09.txt
Error (Xcode): unable to rename temporary
'/Users/arata/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2EWGOL
NE8KJJO/os_object-IUD105RKVWT-1ed7e21d.pcm.tmp' to output file
'/Users/arata/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2EWGOL
NE8KJJO/os_object-IUD105RKVWT.pcm': 'No such file or directory'
Parse Issue (Xcode): Could not build module 'os_object'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator18.2.sdk/usr/include/dispatch/dispatch.h:62:
9
Parse Issue (Xcode): Could not build module 'Dispatch'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator18.2.sdk/System/Library/Frameworks/CoreFound
ation.framework/Headers/CFStream.h:19:9
Parse Issue (Xcode): Could not build module 'CoreFoundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator18.2.sdk/System/Library/Frameworks/Foundatio
n.framework/Headers/Foundation.h:5:9
Parse Issue (Xcode): Could not build module 'CoreFoundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator18.2.sdk/System/Library/Frameworks/Security.
framework/Headers/SecBase.h:27:9
...
Parse Issue (Xcode): Could not build module 'Dispatch'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator18.2.sdk/usr/include/xpc/xpc.h:6:9
Parse Issue (Xcode): Could not build module 'Foundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator18.2.sdk/System/Library/Frameworks/UIKit.fra
mework/Headers/UIKit.h:7:8
Parse Issue (Xcode): Could not build module 'CoreFoundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator18.2.sdk/System/Library/Frameworks/CoreGraph
ics.framework/Headers/CGBase.h:11:9
Parse Issue (Xcode): Could not build module 'CoreGraphics'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator18.2.sdk/System/Library/Frameworks/CoreImage
.framework/Headers/CoreImageDefines.h:16:9
...
Parse Issue (Xcode): Could not build module 'Foundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platfor
m/Developer/SDKs/iPhoneSimulator18.2.sdk/System/Library/Frameworks/OpenGLES.
framework/Headers/EAGL.h:7:9
...
Parse Issue (Xcode): Could not build module 'UIKit'
/Users/arata/Developer/carp/flutter-plugins/packages/health/example/ios/Pods
/Target%20Support%20Files/permission_handler_apple/permission_handler_apple-
prefix.pch:1:8
Error (Xcode): no such file or directory:
'/Users/arata/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Sessio
n.modulevalidation'
Could not build the application for the simulator.
Error launching application on iPhone 16 Pro.
Topic:
Developer Tools & Services
SubTopic:
Xcode