Xcode 6.1 different “deployment info” section for duplicated target

前端 未结 2 522
小鲜肉
小鲜肉 2021-02-04 03:25

So, I have an universal project \"enter

The \"deployment info\" section looks like this: <

相关标签:
2条回答
  • 2021-02-04 04:14

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

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

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

    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.

    This should be a bug of Xcode7.2

    0 讨论(0)
  • 2021-02-04 04:26

    I found this same problem today in my project. But I needed a solution because it was not respecting my orientation settings on the original target when using an iPad.

    I made a copy of the already duplicated target. This solution worked, but I abandoned it to limit my risk to our production build settings.

    I ended up just modifying the appropriate ProjectX-Info.plist file Locating the "Supported Interface orientations (iPad)" key and adding all 4 orientations. (Replacing "ProjectX" with your Target)

    I am using Xcode 7.0.1 (7A1001) and hope it is fixed in a future release

    0 讨论(0)
提交回复
热议问题