Reach Apple Without ARC

I want to check the internet connection in my application. Therefore, I use the Apple Reachability example code.

But there are some bugs due to using ARC. I fix some of them, but other errors remain in my code.

enter image description here

How can I solve these problems? Any ideas?

Thnx.

+6
source share
2 answers

Try using this for your ARC version code - > Reachability (iOS) ARCified

+1
source

You can disable ARC for each file.

  • Select a project in the file list
  • Choose a target
  • Click the Build Phases tab
  • The compilation sources phase opens
  • Scroll down until you find your source file (or use the search box)
  • Double-click in the Compiler Flags column for this file.
  • Type -fno-objc-arc

Now ARC is disabled for this single file.

+22
source

Source: https://habr.com/ru/post/915958/


All Articles