Objective-c错误 "-[CFString retain]: message sent to deallocated instance 0x4593540"

标签 objective-c cordova

我正在使用phonegap,目前我有一个带有php 和javascript/html 的Web 应用程序在iframe 内运行。它工作了一段时间,但现在当我加载页面时它崩溃并出现此错误

-[CFString retain]: message sent to deallocated instance 0x4593540

有什么想法吗?谢谢

最佳答案

您遇到保留计数问题。来自另一个 Stack Overflow 答案:

First, go back and reread the memory management rules just to make sure you are not missing anything obvious

Next, turn on NSZombieEnabled (in your executable settings, Arguments panel, add an environment variable NSZombieEnabled set to YES).

Double releasing when it shouldn't be happening

这是一个有用的 post about NSZombieEnabled

关于Objective-c错误 "-[CFString retain]: message sent to deallocated instance 0x4593540",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2588594/

相关文章:

cordova - Angular 2 + Phonegap : how can they works together? 如何设置基本模板和工作 apk?

search - 如何在 Xcode 中查找 Objective-C 函数的用法?

ios - iOS 7 中的屏幕截图

jquery - 如何重定向到 phonegap android 应用程序中的本地 html 页面?

android - ionic : No 'Access-Control-Allow-Origin' header is present on the requested resource

javascript - 如果我使用 jquery mobile 提交表单,页面会变形

jquery - 自动完成 View 损坏(滚动问题)

ios - use_frameworks 签名错误!和独特的配置文件

ios - 使用 ARC 进行内存分配 - 没有泄漏,但会慢慢堆积内存

objective-c - C 对比 vDSP 对比 NEON - NEON 怎么会和 C 一样慢?