21

I just updated my mac to the newest OS and Xcode to the newest version and now I have this warning and I have no idea who to get rid of it or what it really means?

Could someone explain it to me?

enter image description here

Thanks

Community
  • 1
  • 1
spen123
  • 3,464
  • 11
  • 39
  • 52

2 Answers2

35

Select Main.storyboard in the project navigator, press ⌘⌥1 to show the Identity Inspector and change Builds for for something suitable

enter image description here

coco
  • 4,912
  • 2
  • 25
  • 33
vadian
  • 274,689
  • 30
  • 353
  • 361
  • Note: if you have localized you storyboard for other languages - be sure to check all storyboard settings. – Andrei Konstantinov Jan 06 '17 at 17:03
  • 2
    It still does not work for me. My deployment target is 8.3 and even if I set the Builds For value to my deployment target or "even 9.0 and Later" I still get the exact same error warning. – Alyoshak Jun 06 '17 at 20:11
  • 1
    This worked, but I had to clean my build folder, quit Xcode, delete files in Derived Data, open Xcode and reclean as well. – avance Feb 20 '18 at 18:16
2

If changing the minimum build target version does not work for you, try inspecting the XIB source file. Right click on the file -> Open As -> Source Code.

Look for section near the top, which looks like this:

<dependencies>
    <deployment version="2304" identifier="iOS"/>
    <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
    <capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
    <capability name="Safe area layout guides" minToolsVersion="9.0"/>
    <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>

My target build was iOS 9, but my aspect ratio constraint has minToolsVersion 5.1. When I changed it to 9.0 the warning went away.

David
  • 161
  • 1
  • 3