BarredEwe / Prefire

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

Xcode 15 supporting #25

Closed BarredEwe closed 1 year ago

BarredEwe commented 1 year ago

Added support for working with Xcode 15.

Xcode 15 does not give plugins permission to write to the project directory 🥲

As a quick solution, I can recommend writing in DerivedData. To do this, remove the test_file_path parameter from the .prefier.yml file.

Now I'm trying to find another solution, but so far there are difficulties with this. To be honest, I'm not sure that it can be possible now: https://github.com/apple/swift-package-manager/issues/6814

markst commented 9 months ago

@BarredEwe what about supporting DERIVED_SOURCES_DIR like swift gen

output_dir: ${DERIVED_SOURCES_DIR}

https://github.com/SwiftGen/SwiftGenPlugin?tab=readme-ov-file#add-a-swiftgen-config