Post

Replies

Boosts

Views

Activity

Reply to Could not build Objective-C module 'Cocoa'
I also have this issue. If I create a blank template for MacOS as suggested above and press play, it works. However, if I add an extra line, something along the lines of: var temp = greeting.trimmingCharacters(in: .whitespacesAndNewlines) I'll get the "Could not build Objective-C module 'Cocoa'. Now, the weirdest part is, sometimes that error prevents the playground from running (as it should), but other times it'll retain that error, but still allow the playground to run. I haven't been able to make it happen reliably either way, but there's something definitely messed up. This is under Xcode 15.0.1 and Ventura 13.6.1
Oct ’23