Search Unity

Accommodating iPhone X display

Discussion in 'iOS and tvOS' started by MajidKhosravi, Nov 23, 2017.

  1. MajidKhosravi

    MajidKhosravi

    Joined:
    Jun 21, 2013
    Posts:
    39
    Is there a way to crop the game inside a safe area in iPhone X?

    I am using Unity 2017.2 and XCode 9.1 and its too much trouble to realign all the buttons in the game around the notch on top of the iPhone X.

    I believe there should be a simple approach to fit the game inside safe zone and put a black bar on top/bottom of the screen when using iPhone X.

    Let me know if you know how to fix this, thanks.
     
  2. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    You could use Xcode 8.3 to submit the app and it will have standard letterboxing on iPhone X.
     
  3. MajidKhosravi

    MajidKhosravi

    Joined:
    Jun 21, 2013
    Posts:
    39
    I tried it but the following framework is missing in XCode 8.3.3

    ld: framework not found FileProvider for architecture arm64

    Any suggestions?
     
  4. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    I don't think it's Unity's dependency. Maybe some 3rd party plugin relies on it?
     
  5. MajidKhosravi

    MajidKhosravi

    Joined:
    Jun 21, 2013
    Posts:
    39
    Thanks for the quick reply, well I have copied those frameworks ( There was another one too ) into XCode 8.3 libraries and built with that, there was a bitcode error too so I had to disable bitcode encryption as well and that worked.

    Ill update this if I get any errors.
     
  6. Nikesh78

    Nikesh78

    Joined:
    Mar 9, 2017
    Posts:
    2
    Hi,

    I playing my game in iphoneX and by default it is accommodating safe area. I want to play my game in the full screen mode can you suggest me to solve this