柒月不在
柒月不在
  • 发布:2016-01-29 15:05
  • 更新:2017-12-08 11:06
  • 阅读:2255

【报Bug】iOS-PGPlugin自定义控件PDRPluginResult报错

分类:5+ SDK

使用Xcode7进行Swift语言进行PGPlugin插件开发
使用 var result:PDRPluginResult = PDRPluginResult(status: PDRCommandStatusOK, messageAsString: "")
回调结果时, message字段无法写入字符串, 数组, 字典, 导致toJSONString()导致程序崩溃

po result.toJSONString()

error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=EXC_I386_GPFLT).
The process has been returned to the state before expression evaluation.
error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=EXC_I386_GPFLT).
The process has been returned to the state before expression evaluation.

po result.message[0]
error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=EXC_I386_GPFLT).
The process has been returned to the state before expression evaluation.

2016-01-29 15:05 负责人:无 分享
已邀请:
简小叔

简小叔

跟你一样的问题 ,解决了嘛

该问题目前已经被锁定, 无法添加新回复