将应用升级到iOS 7 - 错误“iOS版本6.0之前的自动布局” (但希望iOS 7不老) [英] Upgraded app to iOS 7 - error "Auto Layout on iOS Versions prior to 6.0" (but want iOS 7 not older)

查看:47
本文介绍了将应用升级到iOS 7 - 错误“iOS版本6.0之前的自动布局” (但希望iOS 7不老)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个适用于iOS 6中所有设备的iOS应用。

I have an iOS app that worked well on all devices in iOS 6.

我最近将我的xcode升级到5.0版并试图为iOS构建相同的应用程序7在iPhone 5上。

I recently upgraded my xcode to version 5.0 and tried to build the same app for iOS 7 on an iPhone 5.

在构建应用程序时,xCode在代码设置中升级了一些内容,但无法构建错误。

On building the app, the xCode upgraded something in the code settings, but failed to build with errors.

在iPad XIB上,我收到一个错误:非法配置:iOS版本6.0之前的自动布局。

On the iPad XIB, I get an error : "Illegal Configuration : Auto Layout on iOS Versions prior to 6.0".

我尝试启用和禁用文件检查器中的使用Autolayout复选框,但它不起作用。

I tried enabling and disabling the "Use Autolayout" checkbox in the File Inspector, but it didn't work.

请帮我解决此问题。

推荐答案

您的问题是您的项目的部署目标是5.0并且您正在使用iOS 5不可用的功能。

Your problem is that the "Deployment Target" for your project is "5.0" and you are using a feature that isn't available for iOS 5.

检查构建目标的常规选项卡

Check the "General" tab for your build target

并将其更新至至少6.0使用自动布局

and update it to at least 6.0 to use Auto Layout

这篇关于将应用升级到iOS 7 - 错误“iOS版本6.0之前的自动布局” (但希望iOS 7不老)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆