Need Reachability version for ARC in iOS5

前端 未结 8 1581
萌比男神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条回答
  •  闹比i
    闹比i (楼主)
    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.

提交回复
热议问题