Search Unity

iTunes Connect upload error with Xcode7.0

Discussion in 'iOS and tvOS' started by escic, Sep 24, 2015.

  1. escic

    escic

    Joined:
    Aug 6, 2013
    Posts:
    42
    hi, I want to know how to fixes it?

    ERROR ITMS-90474: "Invalid bundle. iPad Multitasking support requires these orientations:
    'UIInterfaceOrientationPortrait, UIInterfaceOrientationPortraitUpsideDown, UIInterfaceOrientationLandscapeLeft, UIInterfaceOrientationLandScapeRight'. Found
    'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown' in Bundle

    I got this error when i upload file to iTunes Connect.
    (unity5.2 and Xcode7.0)
     
  2. escic

    escic

    Joined:
    Aug 6, 2013
    Posts:
    42
    Problem solved.
    In Xcode General > Set "Requires full screen" to true.
     
    kreso, jamesjskier, Zenix and 6 others like this.
  3. heretique

    heretique

    Joined:
    Apr 3, 2013
    Posts:
    3
    But what about those of us who are using a CI system and require automatic builds. I use TeamCity and I don't want to go and manually check a flag in XCode. Is there a way to do this automatically in a build step?
    This should be fixed in Unity when doing the Xcode project generation and/or exposed as a flag in Player Preferences.
    Now even if the builds are successfully finishing I cannot upload to iTunes Connect. Way to go Apple...
     
  4. maspi

    maspi

    Joined:
    Feb 8, 2011
    Posts:
    18
  5. -chris

    -chris

    Joined:
    Mar 1, 2012
    Posts:
    99
    Thanks, this did the trick.
     
  6. Gustavo-Quiroz

    Gustavo-Quiroz

    Joined:
    Jul 26, 2013
    Posts:
    38
    I love you :,)
     
  7. TopGearFanboy

    TopGearFanboy

    Joined:
    May 10, 2014
    Posts:
    3
  8. cradiff

    cradiff

    Joined:
    Feb 7, 2015
    Posts:
    66
    You know, I love you so much :)
     
  9. Anh-Pham

    Anh-Pham

    Joined:
    Feb 7, 2012
    Posts:
    35
    You save my life !
     
  10. frozenpepper

    frozenpepper

    Joined:
    Sep 17, 2007
    Posts:
    222
    great thanks for fast and simple fix !
     
  11. Erikoinen

    Erikoinen

    Joined:
    Nov 10, 2014
    Posts:
    68
  12. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    476
    This is fine, but it seems incredible you can't set this INSIDE UNITY??
     
  13. artysta

    artysta

    Joined:
    Nov 15, 2009
    Posts:
    124
    You can with the latest couple patch updates, its in player prefs. I set it once and Ive not had to do anything since.
     
  14. WermHat

    WermHat

    Joined:
    Jul 13, 2012
    Posts:
    88
    According to the patch releases this was added in 5.2.2p1, but is still nonexistent in 4.x.
    • iOS: Added a PlayerSetting to add the iOS 9 UIRequiresFullScreen to the Xcode generated plist to enable/disable multitasking support.
     
  15. ickydime

    ickydime

    Joined:
    Nov 20, 2012
    Posts:
    110
    If you do not have 5.0 you can also add it in a PostBuild Script

    Something along these lines:

    Code (CSharp):
    1. private static void ProcessPostBuild (BuildTarget buildTarget, string path)
    2.     {
    3.         #if UNITY_IOS
    4.         if (buildTarget == BuildTarget.iPhone ) {
    5.  
    6.  
    7.             // Add url schema to plist file
    8.             string plistPath = path + "/Info.plist";
    9.             PlistDocument plist = new PlistDocument();
    10.             plist.ReadFromString(File.ReadAllText(plistPath));
    11.          
    12.             // Get root
    13.             PlistElementDict rootDict = plist.root;
    14.             rootDict.SetBoolean("UIRequiresFullScreen",true);
    15.             plist.WriteToFile(plistPath);
    16. }
    17. #endif
    18. }
     
    psykojello2 and WermHat like this.
  16. psykojello2

    psykojello2

    Joined:
    Jul 19, 2013
    Posts:
    37
    Thank you! This is what I was looking for :)

     
  17. jamesjskier

    jamesjskier

    Joined:
    May 5, 2015
    Posts:
    1
    This worked for me.