Post

Replies

Boosts

Views

Activity

Reply to SwiftUI previews not working inside workspace
I'm not sure what version of Xcode you're running, but is it possible that you're running into this known issue from the beta? Known Issues Previewing view code in a SwiftData app results in a linker failure for the canvas despite that code compiling successfully for device and simulator. (111657477) Workaround: Run your app in the simulator to test your UI instead of using Previews. Source: Xcode beta release notes
Aug ’23
Reply to XCode 16 beta2 (beta1 also) hangs when trying to open complex Localizable.xcstrings
Hi there, I have the same issue on Xcode Beta 1 and 2 where a file with about 400 structs will crash Xcode when building locally for a preview, or on device. When viewing the running processes in Activity Monitor swift-frontend has about 10 or so processes each consuming 9GB+ of memory, which eventually causes a complete crash of the system. Commenting out most of the structs (to leave about 100 or so) resolves this issue. Happy to provide whatever I can to help resolve this.
Jun ’24