Purpletoucan
Purpletoucan

Reputation: 6592

How to locate warnings in Xcode storyboard?

Is there a quick way to map from compiler warnings to the offending components in a storyboard?

I have, for example, a warning stating Highlight tint color unsupported by this button type... but I don't know how to map back to identify the relevant button in the storyboard? The fix is simple once identified - is there a quick way to locate the button starting from the warning rather than having to inspect each custom button in my (quite extensive) storyboard?

Upvotes: 6

Views: 2465

Answers (2)

PanxShaz
PanxShaz

Reputation: 760

If someone is facing similar problems (plus added problems like Automatic Preferred Max Layout Width etc) checkout this link.

http://www.somegeekintn.com/blog/2014/10/tracking-down-storyboard-warnings/

Upvotes: 4

Rob
Rob

Reputation: 437947

Generally if you have an Interface Builder related warning, by clicking on that warning Issue Navigator, Xcode should take you to Interface Builder and select that element in question for you. If that's not happening (and frankly, whenever Xcode stops behaving as it should), try quitting and restarting Xcode and, if that doesn't do it, rebooting your computer.

Upvotes: 7

Related Questions