Xcode没有选择通用应用程序的部署信息部分中的设备 [英] Xcode No Choice of Devices in Deployment Info Section of Universal App

查看:132
本文介绍了Xcode没有选择通用应用程序的部署信息部分中的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚完成将我的第一个仅限iPhone的应用转换为通用应用。开始工作将我在应用商店中存在的第二个仅限iPhone的应用程序转换为通用版。在我的目标的常规/部署信息部分下,将设备从iPhone更改为通用不会像我转换的第一个应用程序那样生成iPhone和iPad选择器。我已经为我的plist添加了第二个故事板和主故事板文件基本名称(iPad)= iPad属性。我需要使用两个故事板,并且需要iPhone / iPad选择器才能出现。我正在使用Xcode v7.0。抱歉,我无法发布截屏,因为我的代表不够高。

Just completed converting my first iPhone-only app to a universal app. Began work converting my second iPhone-only app that's been in the app store for some time to universal. Changing Devices from iPhone to Universal under General/Deployment Info section of my target doesn't produce the iPhone and iPad selectors as it did in the first app I converted. I've added a second storyboard and the Main storyboard file base name (iPad) = iPad property to my plist. I need to use two storyboards, and need the iPhone/iPad selectors to appear. I'm using Xcode v7.0. Sorry I can't post a screen shot, as my rep isn't high enough.

推荐答案

在项目的PBXProject部分.pbxproj文件,有如下行:

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

        TargetAttributes = {
            XXXXXXXXXXXXXXXXXXXXXXXXX = {
                CreatedOnToolsVersion = 7.1;
            };
        };

如果项目中存在此属性,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.

Xcode 6.1不同的部署信息重复目标的部分

这篇关于Xcode没有选择通用应用程序的部署信息部分中的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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