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?

logancautrell
  • 8,762
  • 3
  • 39
  • 50
filou
  • 1,609
  • 5
  • 26
  • 53
  • 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. – jrturton Oct 31 '11 at 12:32

2 Answers2

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.

logancautrell
  • 8,762
  • 3
  • 39
  • 50
5

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

curtisdf
  • 4,130
  • 4
  • 33
  • 42