BarredEwe / Prefire

🔥 A library based on SwiftUI Preview, for easy generation: Playbook view, Snapshot and Accessibility tests
Apache License 2.0
251 stars 16 forks source link

Xcode 15.3 support #43

Closed BarredEwe closed 3 months ago

BarredEwe commented 3 months ago

Short description 📝

Xcode 15.3 contains an error when launching the plugin: Plug-in ended with uncaught signal: 5) https://github.com/BarredEwe/Prefire/issues/41

Solution 📦

The error occurs when using API: String(contentsOf: file URL, encoding: .utf 8). Solved by replacing the API with: String(contentsOfFile: file URL.path).