Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8953

Cordova iOS prepare is removing UISupportedInterfaceOrientations from the plist file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.0.0
    • None
    • cordova-cli
    • None
    • iOS

    Description

      I just installed the CLI 5.0.0 and when I try to run,
      'cordova prepare ios', it is modifying the app plist file.

      That is, the prepare is removing the UISupportedInterfaceOrientations key and the array list from the plist.

      Before Prepare:

      <key>UISupportedInterfaceOrientations</key>
      	<array>
      		<string>UIInterfaceOrientationPortrait</string>
      		<string>UIInterfaceOrientationPortraitUpsideDown</string>
      	</array>
      	<key>UISupportedInterfaceOrientations~ipad</key>
      	<array>
      		<string>UIInterfaceOrientationPortrait</string>
      		<string>UIInterfaceOrientationLandscapeLeft</string>
      		<string>UIInterfaceOrientationPortraitUpsideDown</string>
      		<string>UIInterfaceOrientationLandscapeRight</string>
      	</array>
      

      After Prepare:

       <key>UISupportedInterfaceOrientations~ipad</key>
          <array>
            <string>UIInterfaceOrientationPortrait</string>
            <string>UIInterfaceOrientationLandscapeLeft</string>
            <string>UIInterfaceOrientationPortraitUpsideDown</string>
            <string>UIInterfaceOrientationLandscapeRight</string>
          </array>
      

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              vinbtechdf Vinoth Kumar
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: