使用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.
1 个回复
简小叔
跟你一样的问题 ,解决了嘛