Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsupported Configuration: This file is set to build for a version older than the deployment target. Functionality may be limited

Can anyone explain this warning?

Unsupported Configuration: This file is set to build for a version older than the deployment target. Functionality may be limited.

When my app was initially written a storyboard I tried was not supported. This made it necessary to manage multiple views entirely from code i.e. without using XIB files. So my app basically uses a MultiviewAppDelegate to switch between multiple views using a MultiviewViewController.

It was written initially under iOS 5 and now runs on the Simulator (9.2) using an iPhone 6 Plus running iOS 9.

OrdoDei helped me address a similar problem related to unused XIB files. My particular issue could be addressed if my app used storyboards. Most other problems with this particular warning seem to be related to networking which my app doesn't use.

Has anyone else had to deal with a similar issue?

like image 510
Greg Avatar asked Mar 02 '16 01:03

Greg


3 Answers

Open the affected XIB files and ensure that the "Builds for" setting is set to your minimum deployment target and/or above.

enter image description here

like image 141
Shripada Avatar answered Nov 09 '22 19:11

Shripada


Shripada's answer is correct. However, if it's still not working as Alyoshak reported, then as per this thread and my experience, you need to restart Xcode.

This was experienced with the most current version of Xcode at the time (8.3.3)

like image 44
nspire Avatar answered Nov 09 '22 20:11

nspire


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

Look for the <dependencies> element 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 the aspect ratio constraint had minToolsVersion at 5.1. When I changed it to 9.0 the warning went away.

like image 6
David Avatar answered Nov 09 '22 19:11

David