iOS8 phonegap cordova network-information app crashes

前端 未结 1 828
时光说笑
时光说笑 2020-12-12 04:56

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 t

相关标签:
1条回答
  • 2020-12-12 04:58

    It looks like I found the problem. Once you have ARC (Automatic Reference Counting) disabled in your XCode Project (Project->Build Settings) the Network-Information Plugin seems to cause a crash. So I fixed it by setting the option back to YES (in both Target & Project).

    But in my case I had some classes which causes the build to fail with ARC YES. Therefore I added a flag -fno-objc-arc for each those classes in Project->Build Phases->Compile Sources.

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