Skip to content

Commit

Permalink
Merge pull request marcuswestin#195 from ddovod/master
Browse files Browse the repository at this point in the history
Adding info about ARC in non-ARC projects
  • Loading branch information
marcuswestin committed Mar 29, 2016
2 parents 3b1870e + 79f6f40 commit 1075d7e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,19 @@ WebViewJavascriptBridge supports [WKWebView](http://nshipster.com/wkwebkit/) for
WKWebViewJavascriptBridge* bridge = [WKWebViewJavascriptBridge bridgeForWebView:webView];
```
Automatic reference counting (ARC)
----------------------------------
This library relies on ARC, so if you use ARC in you project, all works fine.
But if your project have no ARC support, be sure to do next steps:
1) In your Xcode project open project settings -> 'Build Phases'
2) Expand 'Compile Sources' header and find all *.m files which are belongs to this library. Make attention on the 'Compiler Flags' in front of each source file in this list
3) For each file add '-fobjc-arc' flag
Now all WVJB files will be compiled with ARC support.
Contributors & Forks
--------------------
Contributors: https://github.com/marcuswestin/WebViewJavascriptBridge/graphs/contributors
Expand Down

0 comments on commit 1075d7e

Please sign in to comment.