且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS8 phonegap cordova 网络信息应用程序崩溃

更新时间:2021-11-05 22:45:18

我好像发现了问题.一旦您在 XCode 项目(项目-> 构建设置)中禁用了 ARC(自动引用计数),网络信息插件似乎会导致崩溃.所以我通过将选项设置回 YES 来修复它(在 Target 和 Project 中).

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).

但就我而言,我有一些类会导致构建失败并显示 ARC YES.因此,我为 Project->Build Phases->Compile Sources 中的每个类添加了一个标志 -fno-objc-arc.

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.