Xcode 6.1不同的“部署信息”重复目标的部分 [英] Xcode 6.1 different "deployment info" section for duplicated target

查看:119
本文介绍了Xcode 6.1不同的“部署信息”重复目标的部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,
我有一个通用项目

So, I have an universal project

部署信息部分如下所示:

The "deployment info" section looks like this:

然后我复制目标

I then duplicate the target

我希望这两个目标是相同的,事实上它们在所有内容中看起来都是一样的,但有一个细节是不同的重复的一个:

I expect the two targets to be identical and in fact they seem the same in everything, but one detail is different in the duplicated one:

重复的目标有2个标签,可以为iPad和Iphone选择不同的选项;这真的很有意义,因为通用我可以选择检查不同的东西。
原始目标似乎只显示iPhone选项。我知道我可以在其他地方更改iPad的选项,但我无法理解为什么会有所不同

the duplicated target has 2 tabs to choose different options for iPad and Iphone; this makes really sense because with universal I can choose the check different stuff. The original target seems to show only the iPhone options though. I know I can change iPad's options elsewhere but I can't understand why this is different

现在问题是:我错过了什么吗?
目标真的相同还是我做错了什么?
这是一个Xcode错误吗?

Now the question is: am I missing something? Are the targets really identical or am I doing something wrong? Is it an Xcode bug?

一切都正常,目标是相同的,但我有点担心将来会出现一些问题。

Everything works properly as it should, the targets are identical, but I am a little afraid there could be some problems in future.

非常感谢!

推荐答案

我找到了属性这会影响Xcode部署信息的显示行为:

I found the attribute which affect the display behavior of Xcode deployment info:

在project.pbxproj文件的PBXProject部分中,有如下行:

In the PBXProject section of project.pbxproj file, there are lines looks like:

            TargetAttributes = {
                22CFA0081BE46E9A00A89E90 = {
                    CreatedOnToolsVersion = 7.2;
                };
            };

如果项目中存在此属性,Xcode将不会显示iPhone和iPad按钮。只需删除这些行,然后按钮就会显示。

If this attribute exists in the project, the Xcode will not display "iPhone" and "iPad" buttons . Just remove these lines, then the buttons will show.

这应该是Xcode7.2的错误

This should be a bug of Xcode7.2

这篇关于Xcode 6.1不同的“部署信息”重复目标的部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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