Xcode 7 警告!是为更新的 iOS 版本 (5.1.1) 而构建的,而不是链接 (5.1) [英] Xcode 7 Warning! was built for newer iOS version (5.1.1) than being linked (5.1)

查看:36
本文介绍了Xcode 7 警告!是为更新的 iOS 版本 (5.1.1) 而构建的,而不是链接 (5.1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 Xcode 6 项目升级到 Xcode 7 并开始看到警告是为更新的 iOS 版本 (5.1.1) 而不是链接 (5.1).

I upgraded Xcode 6 project to Xcode 7 and started seeing the warning was built for newer iOS version (5.1.1) than being linked (5.1).

如何解决此警告?

推荐答案

就我而言,产生此警告是因为我的一个 XCode 子项目的 iOS-Deployment-Target (7.1) 高于我的基础项目 (7.0).如果您使用 cococapods,当您在 Podfile 中指定错误的 iOS 平台版本时,可能会发生这种错误配置.在我的示例中,我在 Podfile 中指定了

In my case, this warning was produced because the iOS-Deployment-Target of one of my XCode subprojects was higher (7.1) than in my baseproject (7.0). If you use cococapods, this misconfiguration can happen when you specify a wrong iOS platform version in your Podfile. In my example, I specified in my Podfile

platform :ios, '7.1' 

而我将 XCode-Project 中的 Deployment-Target 设置为 iOS 7.0.将子项目的 DeploymentTarget 设置为与 BaseProject 相同的 iOS 版本可修复此警告.

whereas I set the Deployment-Target in my XCode-Project to iOS 7.0. Setting the DeploymentTarget of the Subproject to the same iOS Version as the BaseProject fixes this warning.

这篇关于Xcode 7 警告!是为更新的 iOS 版本 (5.1.1) 而构建的,而不是链接 (5.1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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