0

I need to use User-defined settings to set the supported interface orientations for iPhone, depending on my build configuration.

In User-defined settings I have:

user-defined

In my info.plist I set:

enter image description here

But it doesn't work. The iPhone is launched in Portrait mode... To be sure it comes from my custom settings, I run without User-defined variable in the .plist, and it works fine:

enter image description here

What is wrong?

cmii
  • 3,556
  • 8
  • 38
  • 69

1 Answers1

0

I found a workaround, I created 2 info.plist one for each build configurations instead, with the supported interface orientations associated:

  • info-conf1.plist
  • info-conf2.plist

Then in Build Settings > Packaging, set the correct plist.

cmii
  • 3,556
  • 8
  • 38
  • 69