spen123
spen123

Reputation: 3524

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

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

Upvotes: 21

Views: 9331

Answers (2)

David
David

Reputation: 161

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.

Upvotes: 2

vadian
vadian

Reputation: 285180

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

Upvotes: 35

Related Questions