Xcode 15 Crashing when previewing a Swift ui View File(Error: 'ld: warning: ignoring duplicate libraries: '-lc++'')

I updated MacOs to Sonoma and Xcode to 15 but when I want to preview some SwiftUI view, my project crashes. Some views don't crash but the others do. It started when I updated Xcode and my Mac. I also receive an error message,

ld: warning: ignoring duplicate libraries: '-lc++'

Please help, very confused. Thanks

Same here, my previews and simulators crash instantly. From the CoreSimulator log I get the message that simulator doesn’t see the runtime even though it is iinstalled. I have tried different versions but no luck so far. Try to check ~/Library/Logs/CoreSimulator/CoreSimulator.log file and see what kind of messages you get when you run the simulator

+1

Xcode 15 Crashing when previewing a Swift ui View File(Error: 'ld: warning: ignoring duplicate libraries: '-lc++'')
 
 
Q