Skip to content

Commit 0c57ee0

Browse files
committed
Adding info about ARC support in non-ARC projects
1 parent 3b1870e commit 0c57ee0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ WebViewJavascriptBridge supports [WKWebView](http://nshipster.com/wkwebkit/) for
130130
WKWebViewJavascriptBridge* bridge = [WKWebViewJavascriptBridge bridgeForWebView:webView];
131131
```
132132
133+
Automatic reference counting (ARC)
134+
----------------------------------
135+
This library relies on ARC, so if you use ARC in you project, all works fine.
136+
But if your project have no ARC support, be sure to do next steps:
137+
1) In your Xcode project open project settings -> 'Build Phases'
138+
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
139+
3) For each file add '-fobjc-arc' flag
140+
Now all WVJB files will be compiled with ARC support.
141+
133142
Contributors & Forks
134143
--------------------
135144
Contributors: https://github.com/marcuswestin/WebViewJavascriptBridge/graphs/contributors

0 commit comments

Comments
 (0)