iOSシミュレーターでアプリを動かしている最中に,
Xcodeのデバッグエリアに下記のようなメッセージが表示されます.
[Graphics] UIColor created with component values far outside the expected range. Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
どこをどのようにデバッグすべきかヒントをいただけないでしょうか.
追記
fuzzball様
ご対応ありがとうございます.
btを打ち込んで出力されたのは下記のようなものでした.
よろしくお願いいたします.
- thread #1: tid = 0x3eadf, 0x00000001080030ec UIKit`UIColorBreakForOutOfRangeColorComponents, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
- frame #0: 0x00000001080030ec UIKit
UIColorBreakForOutOfRangeColorComponents frame #1: 0x0000000108003ea6 UIKit
-[UIDeviceWhiteColor initWithWhite:alpha:] + 421
frame #2: 0x00000001061d0590 FolioReaderKit@nonobjc UIColor.init(white : CGFloat, alpha : CGFloat) -> UIColor + 16 at FolioReaderChapterList.swift:0 frame #3: 0x00000001061cf5e8 FolioReaderKit
UIColor.__allocating_init(white : CGFloat, alpha : CGFloat) -> UIColor + 88 at FolioReaderChapterList.swift:0
frame #4: 0x0000000106219d50 FolioReaderKitFolioReaderPageIndicator.reloadColors(self=0x00007f8b0150e510) -> () + 2992 at FolioReaderPageIndicator.swift:80 frame #5: 0x0000000106219133 FolioReaderKit
FolioReaderPageIndicator.reloadView(updateShadow=true, self=0x00007f8b0150e510) -> () + 3027 at FolioReaderPageIndicator.swift:59
frame #6: 0x00000001061a71b8 FolioReaderKitFolioReaderCenter.viewWillAppear(animated=true, self=0x00007f8b02015000) -> () + 296 at FolioReaderCenter.swift:166 frame #7: 0x00000001061a7211 FolioReaderKit
@objc FolioReaderCenter.viewWillAppear(Bool) -> () + 49 at FolioReaderCenter.swift:0
frame #8: 0x0000000107e93de3 UIKit-[UIViewController _setViewAppearState:isAnimating:] + 692 frame #9: 0x0000000107e944f3 UIKit
-[UIViewController __viewWillAppear:] + 147
frame #10: 0x0000000107ecf178 UIKit-[UINavigationController _startTransition:fromViewController:toViewController:] + 847 frame #11: 0x0000000107ed00b9 UIKit
-[UINavigationController _startDeferredTransitionIfNeeded:] + 874
frame #12: 0x0000000107ed119b UIKit-[UINavigationController __viewWillLayoutSubviews] + 58 frame #13: 0x00000001080c81b7 UIKit
-[UILayoutContainerView layoutSubviews] + 223
frame #14: 0x0000000107db1344 UIKit-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237 frame #15: 0x000000010f5bbcdc QuartzCore
-[CALayer layoutSublayers] + 146
frame #16: 0x000000010f5af7a0 QuartzCoreCA::Layer::layout_if_needed(CA::Transaction*) + 366 frame #17: 0x000000010f5af61e QuartzCore
CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 24
frame #18: 0x000000010f53d62c QuartzCoreCA::Context::commit_transaction(CA::Transaction*) + 280 frame #19: 0x000000010f56a713 QuartzCore
CA::Transaction::commit() + 475
frame #20: 0x0000000107d17878 UIKit_afterCACommitHandler + 346 frame #21: 0x000000010786de17 CoreFoundation
CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23
frame #22: 0x000000010786dd87 CoreFoundation__CFRunLoopDoObservers + 391 frame #23: 0x0000000107852b9e CoreFoundation
__CFRunLoopRun + 1198
frame #24: 0x0000000107852494 CoreFoundationCFRunLoopRunSpecific + 420 frame #25: 0x000000010f49ea6f GraphicsServices
GSEventRunModal + 161
frame #26: 0x0000000107cecf34 UIKitUIApplicationMain + 159 frame #27: 0x00000001060b5bbf PintReader
main + 111 at AppDelegate.swift:13
frame #28: 0x000000010aef368d libdyld.dylibstart + 1 frame #29: 0x000000010aef368d libdyld.dylib
start + 1
- frame #0: 0x00000001080030ec UIKit
fromageblancさんの回答にあるブレークポイントで止まった後、Step outするとどこに戻るでしょうか?(そこでエラーが発生していると思われます) よく分からなければ、ブレークポイントで止まった後、Consoleに bt [Enter] と打ち込んで出力されるログを教えて下さい。

回答3件
あなたの回答
tips
プレビュー