2017-02-02 44 views
0

隱藏像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功能還算不錯,所以我只想隱藏它引起的這種調試信息,我可以這樣做嗎?

回答

0

添加到您的podfile和執行pod install

platform :ios 

# ignore all warnings from all pods 
inhibit_all_warnings! 

# ignore warnings from a specific pod 
pod 'Charts (3.0.1)', :inhibit_warnings => true 

如需進一步清除請this

+0

不,這只是忽略警告,但不能隱藏調試信息。我錯誤地給你150,但你可以保留它。 – Tinyfool

+0

我希望能有機會捐贈這筆賞金。 –

+0

:)你可以按照你的意願處理它。 – Tinyfool