我在项目中使用ABGaugeViewKit Pod来查看一些仪表。但是,一旦我在viewcontroller上放了1个标尺并运行了项目,则在加载该屏幕时就会出错。
一切仍然正常,仪表正常工作,但我在控制台中得到以下输出:
2018-11-14 12:20:37.592577 + 0100 Firecoach_2.0 [1971:1494283] [未知 进程名称] CGContextSetStrokeColorWithColor:无效的上下文0x0。 回溯:
<+248> <+688> <+1064> <+312> <+648> <+688> <+1064> <+312> <+648><<redacted>+84> <<redacted>+688> <<redacted>+1064> <<redacted>+312> <<redacted>+648> <<redacted>+688> <<redacted>+312> <<redacted>+188> <<redacted>+688> <<redacted>+1064> <<redacted>+312> <<redacted>+1164> <<redacted>+372> <<redacted>+176> <<redacted>+172> <<redacted>+28> <<redacted>+88> <<redacted>+136> <<redacted>+2656> <<redacted>+104> <<redacted>+512> <<redacted>+180> <<redacted>+160> <<redacted>+272> <<redacted>+148> <<redacted>+292> <<redacted>+92> <<redacted>+160> <<redacted>+1260> <<redacted>+268> <<redacted>+296> <<redacted>+384> <<redacted>+132> <<redacted>+32> <<redacted>+412> <<redacted>+1436> <CFRunLoopRunSpecific+552> <GSEventRunModal+100> <UIApplicationMain+236> <main+88> <<redacted>+4> 2018-11-14 12:20:37.606855+0100
Firecoach_2.0 [1971:1494283] [未知进程名称] CGContextSaveGState:无效的上下文0x0。回溯:<+ 28> <+248> <+688> <+1064> <+312> <+648> <+688> <+1064> <+312> <+648> <+84> <+688> <+1064> <+312> <+648> <+688> <+312> <+188> <+688> <+1064> <+312> <+1164> <+372> <+176> <+172> <+28> <+88> <+136> <+2656> <+104> <+512> <+180> <+160> <+272> <+148> <+292> <+92> <+160> <+1260> <+268> <+296> <+384> <+132> <+32> <+412> <+1436> <+4> 2018-11-14 12:20:37.624181 + 0100 Firecoach_2.0 [1971:1494283] [未知进程名称] CGContextSetLineWidth:无效的上下文0x0。回溯:
<+48>
<+248> <+688> <+1064> <+312> <+648> <+688> <+1064> <+312> <+648> <+84> <+688> <+1064> <+312> <+648> <+688> <+312> <+188> <+688> <+1064> <+312> <+1164> <+372> <+176> <+172> <+28> <+88> <+136> <+2656> <+104> <+512> <+180> <+160> <+272> <+148> <+292> <+92> <+160> <+1260> <+268> <+296> <+384> <+132> <+32> <+412> <+1436> <+4> 2018-11-14 12:20:37.636058 + 0100 Firecoach_2.0 [1971:1494283] [未知进程名称] CGContextSetLineJoin:无效的上下文0x0。回溯:
<+68>
因此,它继续进行,由于时间太长,我无法将整个日志放入此处。 Pod出问题了还是我做错了?以及如何解决?