隱藏像CGPostError一些調試信息,我使用的是莢「圖表(3.0.1)」在我的項目,我發現它送花兒給人產生大量的調試窗口的錯誤,這樣的:如何在Xcode
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功能還算不錯,所以我只想隱藏它引起的這種調試信息,我可以這樣做嗎?
不,它不會起作用。 – Tinyfool