Use Reachability.m in Xcode 4.2
Asked Answered
U

2

6

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?

Urus answered 24/10, 2011 at 15:16 Comment(1)
There is no need to edit your question title to put SOLVED on there, we can see there is an accepted answer in the list of questions.Wallache
D
11

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.

Downgrade answered 24/10, 2011 at 15:18 Comment(0)
M
5

Here's a modified Reachability that's meant to be ARC-compliant.

Milburr answered 11/4, 2012 at 16:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.