Skip to content

Commit

Permalink
Adding info about ARC support in non-ARC projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ddovod committed Mar 29, 2016
1 parent 3b1870e commit 0c57ee0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ 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 0c57ee0

Please sign in to comment.