Skip to content

Commit

Permalink
[README] bansan setup and lazy var in deinit
Browse files Browse the repository at this point in the history
  • Loading branch information
banjun committed Apr 5, 2016
1 parent a3aa987 commit dbbfb92
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ bansan checks swift code structures instead of your eyes.
* `viewDidAppear(_:)`
* `viewWillDisappear(_:)`
* `viewDidDisappear(_:)`
* `lazy var` initialization caused in `deinit` whose initialization expression contains reference to `self`

## Usage

Expand All @@ -28,7 +29,19 @@ carthage bootstrap

### Xcode

Add `Run Script` Build Phase executed by `/bin/zsh`:
```
ln -s /path/to/bansan.swift /path/to/bin/bansan
```

Add build phase to xcodeproject in current working directory:

```
bansan setup
```

or

Manually add `Run Script` Build Phase executed by `/bin/zsh`:

```
if which bansan >/dev/null; then
Expand All @@ -38,4 +51,3 @@ echo "warning: bansan does not exist, download from https://github.com/banjun/ba
fi
```

with `ln -s /path/to/bansan.swift /path/to/bin/bansan`.

0 comments on commit dbbfb92

Please sign in to comment.