I'm trying to preview a view from a swift package which is located in one of the target's directory subdirectories:
When I'm previewing a view from the MenuBar.swift file I'm getting following error:
Which is unexpected because the file should be a part of the SatelitUI target. The thing is it works just fine if I move it into the root target's directory (SatelitUI).
Code Block . ├── Package.swift ├── README.md └── Sources └── SatelitUI └── Views └── MenuBar.swift
When I'm previewing a view from the MenuBar.swift file I'm getting following error:
Code Block NoBuildableEntriesError: active scheme does not build this file Select a scheme that builds a target which contains the current file, or add this file to a target that is built by the current scheme.
Which is unexpected because the file should be a part of the SatelitUI target. The thing is it works just fine if I move it into the root target's directory (SatelitUI).