-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I am now adding Knit as an SPM package dependency, and I removed the previous reference that pulled in all of Knit’s files into the project. Also added a readme and a bootstrap script that creates the CLI executable.
- Loading branch information
Showing
4 changed files
with
54 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Example Project | ||
|
||
An example Xcode project that uses Knit. | ||
|
||
## Setup | ||
|
||
1. Run `./bootstrap` from the Example folder | ||
1. Open the `KnitExample.xcodeproj` project | ||
|
||
### Bootstrap Script | ||
|
||
The bootstrap script compiles the Knit CLI tool from local source and moves the resulting executable to the Example directory. | ||
|
||
|
||
For normal apps, the project should use the pre-complied executable binaries that are | ||
included in the GitHub release zips (per release version). | ||
(You are also free to download any of the released binary executables and place it in the Example directory to use it.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
cd .. | ||
swift build --arch x86_64 --arch arm64 --product knit-cli | ||
mv .build/apple/Products/Debug/knit-cli Example/ |