Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Commit

Permalink
Add instructions for running tests from Xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed May 4, 2021
1 parent 175923d commit 72f1496
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,21 @@ let package = Package(

Then run the `swift build` command to build your project.

## Known Issues

- Xcode cannot run unit tests (<kbd>⌘</kbd><kbd>U</kbd>)
when opening the SwiftSyntaxHighlighter package directly,
as opposed first to generating an Xcode project file with
`swift package generate-xcodeproj`.
(The reported error is:
`Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib`).
As a workaround,
you can [install the latest toolchain](https://swift.org/download/)
and enable it in "Xcode > Preferences > Components > Toolchains".
Alternatively,
you can run unit tests from the command line
with `swift test`.

## License

MIT
Expand Down

0 comments on commit 72f1496

Please sign in to comment.