I am trying to use the Reachability function in my application. Now I get several errors in the Reachability.m file. I think it's due to the new Xcode version (does not allow [release]).
Does anyone have experience in this case?
I am trying to use the Reachability function in my application. Now I get several errors in the Reachability.m file. I think it's due to the new Xcode version (does not allow [release]).
Does anyone have experience in this case?
Reachability is not ARC compliant. You can disable ARC on a per file basis.
Select your project -> target -> Build Phases -> Compile Sources -> Double click the Reachability.m -> add -fno-objc-arc.
Problem solved.
Here's a modified Reachability that's meant to be ARC-compliant.
© 2022 - 2024 — McMap. All rights reserved.