Xcode No Choice of Devices in Deployment Info Section of Universal App

有些话、适合烂在心里 提交于 2019-12-21 05:47:08

问题


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.


回答1:


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

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

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 different "deployment info" section for duplicated target



来源:https://stackoverflow.com/questions/32898564/xcode-no-choice-of-devices-in-deployment-info-section-of-universal-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!