Collapse all

I use

  • Xcode 6.1
  • iOS 8.1
  • cordova 4.0.0 (iOS 3.6.3)
  • org.apache.cordova.network-information 0.2.13

First, when I add a plugin, it never adds SystemConfiguration.framework. I need to add it manually to the Buiild phase.

Once this is done, the application can build, but it will fail in any offline event.

"updateReachability" is executed, and a call is made [self sendPluginResult] and an exception EXC_BAD_ACCESS in the variable _callbackId.

I have found a lot of posts since cordova 3.1.0. Does this just not work or did someone find a fix for this problem?

Thanks for any tips.

+1
source share
1 answer

Looks like I found a problem. After disabling ARC (automatic link counting) in your Xcode project (Project-> Build Settings), the Network Information Plugin seems to crash. So I fixed it by setting the parameter back to YES (both in Target and in Project).

But in my case, I had some classes that cause the assembly to fail using ARC YES. So I added the -fno-objc-arc flag for each of these classes in Project-> Build Phases-> Compile Sources.

+1
source

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


All Articles