如何在Xcode里面隐藏CGPostError之类的错误信息?

tinyfool 发布于 2017年02月27日
无人欣赏。

我在项目里面使用了pod "Charts (3.0.1)",它总是产生一堆错误信息,在我的调试窗口,如下:

Feb  2 20:03:01  KeepHealth[1641] <Error>: If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.  
2017-02-02 20:03:01.470339 KeepHealth[1641:449073] CGContextAddLineToPoint: no current point.  
Feb  2 20:03:01  KeepHealth[1641] <Error>: CGContextAddLineToPoint: no current point.  
2017-02-02 20:03:01.470362 KeepHealth[1641:449073] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.  
Feb  2 20:03:01  KeepHealth[1641] <Error>: Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.  
2017-02-02 20:03:01.470377 KeepHealth[1641:449073] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.  

Feb  2 20:03:01  KeepHealth[1641] <Error>: If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.  
2017-02-02 20:03:01.470393 KeepHealth[1641:449073] CGContextAddLineToPoint: no current point.  
Feb  2 20:03:01  KeepHealth[1641] <Error>: CGContextAddLineToPoint: no current point.  
2017-02-02 20:03:01.470532 KeepHealth[1641:449073] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.  
Feb  2 20:03:01  KeepHealth[1641] <Error>: Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.  
2017-02-02 20:03:01.470547 KeepHealth[1641:449073] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.  

因为这些信息随时随地产生,数量巨大,所以,我想找到我自己输出的NSLog都变得很困难了。但是实际上这个pod工作并没有任何问题,我只是想把它全部的调试信息隐藏起来,我该怎么做?

这个问题我在SO也问了,并无得到有效的答案:http://stackoverflow.com/questions/42002483/how-to-hide-some-debug-information-like-cgposterror-from-xcode

共3条回复
tinyfool 回复于 2017年02月27日

感谢微博一个哥们 DamonDev 的提示,这是Chart 3.0的一个bug http://t.cn/RiGxvDH

但是还是不知道怎么绕过去

pinxue 回复于 2017年02月28日

费点劲给它把这个bug修了不就行了。

tinyfool 回复于 2017年02月28日

2楼 @pinxue 懒,不过你说的有道理

登录 或者 注册