belkevich / reachability-ios

Flexible network reachability with blocks for iOS and OS X.
MIT License
68 stars 15 forks source link

Not working with Release Configuration #2

Closed klandor closed 11 years ago

klandor commented 11 years ago

It seems fine when developing with SCNetworkReachability. But when switching to Release Configuration, SCNetworkReachability.status is always zero(SCNetworkStatusNotReachable).

Apparently, [SCNetworkReachabilityFlagsParser checkReachabilityRefFlags:reachabilityRef] always return NO if DEBUG is not defined.

belkevich commented 11 years ago

Fixed, please check it.

P.S. Thank you for finding this bug!

klandor commented 11 years ago

Would you put it on CocoaPod? Thank you!

belkevich commented 11 years ago

Yes, of course. I've already done it and waiting for response for cocoa pods maintainers. I think new version will be available in cocoa pods this evening

belkevich commented 11 years ago

Fixed version is available on cocoapods, check for 1.0.1 version. If you like SCNetworkReachability, please star it! =)