Finding cause of "Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0"
Here is one way to find the specific label that is causing this warning:
- Right click on the warning and choose "Reveal in Log"
- The warning in the log will be highlighted. Copy the interface builder object ID for this label (it looks like xxx-xx-xxx).
- Paste this in the Find Navigator. When you click on this result it will open the interface builder with the offending label selected.
Running XCODE 6.1, I found the easiest way to do find the error was through the Report Navigator.
View
->Navigators
->Show Report Navigator
or simply press⌘-8
- Click on the build in the left pane.
- Click the details icon next to the warning.
- Find the object id in the warning description.
- Go to the file and search
⌘-f
for the object id.
- Fix the issue. Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
As said in that post, you can also use this regex <label(?!.*preferredMaxLayoutWidth) in storyboard source to find all labels that do not have a preferredMaxLayoutWidth setted. Then correct it.