Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 9 Warnings in Xcode - This file is set to build for a version older than the project deployment. Functionality may be limited

Tags:

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

like image 920
spen123 Avatar asked Nov 06 '15 20:11

spen123


2 Answers

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

like image 131
vadian Avatar answered Oct 04 '22 06:10

vadian


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.

like image 44
David Avatar answered Oct 04 '22 05:10

David