Need Reachability version for ARC in iOS5

前端 未结 8 1583
萌比男神i
萌比男神i 2021-02-01 15:29

Using Apple\'s Reachability code in iOS5 I get a bunch of compilation errors as shown below. Any ideas on what is happening here? I\'m using ARC so I have edited the standard co

相关标签:
8条回答
  • 2021-02-01 15:46

    You need to add the systemConfiguration.framework to make Reachability work.

    0 讨论(0)
  • 2021-02-01 15:50

    I know this thread is old, but in case anyone is interested you can solve this by disabling ARC for Reachability.m. Look at this post.

    0 讨论(0)
  • 2021-02-01 15:55

    You don't really need an ARC version of Reachability, just simply disable ARC for reachability file(s)

    Disable ARC on MULTIPLE files:

    • Select desired files at Target/Build Phases/Compile Sources in Xcode
    • PRESS ENTER
    • Type -fno-objc-arc
    • Press Enter or Done

    You also have a missing framework. Add SystemConfiguration framework.

    0 讨论(0)
  • 2021-02-01 15:55

    I rearranged them for IOS 5 and arc they are working tested

    Please DON'T FORGET TO ADD SystemConfiguration.framework on your project

    0 讨论(0)
  • 2021-02-01 15:56

    I wrote a clean 'drop in' version of reachability for ARC and iOS5 - you can get it here: https://github.com/tonymillion/Reachability

    0 讨论(0)
  • 2021-02-01 15:57

    I just found this that might help. Thank the author for this (this is not mine)!

    https://gist.github.com/1182373

    0 讨论(0)
提交回复
热议问题