Use Reachability.m in Xcode 4.2

I am trying to use the Reachability function in my application. Now I get a few errors in the Reachability.m file. I think this is due to the new version of Xcode (does not allow [release]).

Does anyone have experience in this case?

+6
source share
2 answers

Reachability does not meet ARC requirements. You can disable ARC for each file.

Choose your project → goal → Phase assembly → Compile sources → Double-click Reachability.m → add -fno-objc-arc.

The problem is resolved.

+11
source

Here's a modified Reach that should be compatible with ARC.

+5
source

Source: https://habr.com/ru/post/899971/


All Articles