Ios 如何从Xcode隐藏一些调试信息,如CGPostError

Ios 如何从Xcode隐藏一些调试信息,如CGPostError,ios,xcode,cocoapods,Ios,Xcode,Cocoapods,我在我的项目中使用了一个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:44907

我在我的项目中使用了一个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.  
Feb 2 20:03:01 KeepHealth[1641]:如果要查看回溯,请设置CG\u NUMERICS\u SHOW\u backtrace环境变量。
2017-02-02 20:03:01.470339 KeepHealth[1641:449073]CGContextAddLineToPoint:无当前点。
2月2日20:03:01基弗阿尔特[1641]:CGContextAddLineToPoint:无当前点。
2017-02-02 20:03:01.470362 KeepHealth[1641:449073]错误:此应用程序或其使用的库向CoreGraphics API传递了一个无效的数值(NaN或非数字),该值将被忽略。请解决这个问题。
Feb 2 20:03:01 KeepHealth[1641]:错误:此应用程序或其使用的库向CoreGraphics API传递了一个无效的数值(NaN或not-a-number),该值将被忽略。请解决这个问题。
2017-02-02 20:03:01.470377 KeepHealth[1641:449073]如果要查看回溯,请设置CG\U NUMERICS\U SHOW\U backtrace环境变量。
Feb 2 20:03:01 KeepHealth[1641]:如果您想查看回溯,请设置CG\U NUMERICS\U SHOW\U backtrace环境变量。
2017-02-02 20:03:01.470393 KeepHealth[1641:449073]CGContextAddLineToPoint:无当前点。
2月2日20:03:01基弗阿尔特[1641]:CGContextAddLineToPoint:无当前点。
2017-02-02 20:03:01.470532 KeepHealth[1641:449073]错误:此应用程序或其使用的库向CoreGraphics API传递了无效的数值(NaN或not-a-number),该值将被忽略。请解决这个问题。
Feb 2 20:03:01 KeepHealth[1641]:错误:此应用程序或其使用的库向CoreGraphics API传递了一个无效的数值(NaN或not-a-number),该值将被忽略。请解决这个问题。
2017-02-02 20:03:01.470547 KeepHealth[1641:449073]如果要查看回溯,请设置CG\U NUMERICS\U SHOW\U backtrace环境变量。

这里面有很多,每一次,每一个地方,所以我几乎找不到自己制作的NSLog。但事实上,这个pod功能非常好,所以我只想隐藏由它引起的此类调试信息,我可以这样做吗?

这可能会起到作用:


将其添加到您的
pod文件中
并执行
pod安装

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

要获得进一步的许可,请检查。

不,它不起作用。不,这只是忽略警告,但不能隐藏调试信息。我错给了你150英镑,但你可以留着。我希望,你能有机会把这笔赏金捐出去。你可以随心所欲地处理。