Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Nielieboy123 · Apr 19, 2020 at 10:36 PM · appstore

Unity 2019.2 to 2019.3 iOS App Upload error

Hey guys,

I updated my unity from 2019.2 tot 2019.3. However, now I want to update my app on the appstore, I get this error: ITMS-90109: This bundle is invalid - The key UIRequiredDeviceCapabilities in the Info.plist may not contain values that would prevent this application from running on devices that were supported by previous versions. Refer to QA1623 for additional information: https://developer.apple.com/library/ios/#qa/qa1623/_index.html

Does it have anything to do with the compatibility being changed to a minimum of iOS 10.0, while Unity 2019.2 supported earlier versions? When I try to switch back to the old Unity 2019.2 I get to many errors I know nothing about, so I can't test this out myself... how do I fix this, please help!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
5

Answer by _Adriaan · Apr 26, 2020 at 03:09 PM

If you compare the UIRequiredDeviceCapabilities array of keys in Info.plist of the older version of the app (you can dive into the XCode archive that you used to upload the app) with the version of the new app you built, you'll find that they are different... and that's not allowed on the App Store. (It's dumb. I agree.) It's probably because of the added requirement of "metal". It was for me, at least.

You can either manually remove the extra key from the Info.plist inside XCode, or you can write a post processing script that fixes it. Here's an example of how to do that:

 #if UNITY_IOS
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 using UnityEditor;
 using UnityEditor.Callbacks;
 using UnityEditor.iOS.Xcode;
 
 public class PostProcessiOSInfoPlist : MonoBehaviour 
 {
     
     [PostProcessBuildAttribute()]
     public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject) 
     {
         if(target != BuildTarget.iOS)
             return;
         
         string plistPath = pathToBuiltProject + "/Info.plist";
         
         PlistDocument plist = new PlistDocument();
         
         plist.ReadFromString(System.IO.File.ReadAllText(plistPath));
         
         //remove capability keys to avoid Unity adding MORE capabilities (which is illegal on the App Store)
         List<PlistElement> reqs = plist.root.values["UIRequiredDeviceCapabilities"].AsArray().values;
         
         for (int i = reqs.Count - 1; i >= 0; i--)
         {
             if(reqs[i].AsString() != "armv7")
             {
                 reqs.RemoveAt(i);
             }
         }
         
         System.IO.File.WriteAllText(plistPath, plist.WriteToString());
     }
 }
 #endif

Hope that helps.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SharonReytan · Aug 16, 2020 at 07:13 PM 0
Share

you saved me, thanks! I had to also remove the arm7 from the target architectures in Xcode and boom could upload to the App Store. upgraded from unity 2018 to 2019.4.8

avatar image tuncOfGrayLake · Dec 10, 2020 at 01:58 PM 0
Share

I tried this and worked perfectly. Thanks Adriaan. You saved me some hours that's for sure.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

128 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

iOS AppStore :: how to get into the lists of daily new released apps for different languages? 0 Answers

U3DXT in-app purchase Init failed and everything is setup! 2 Answers

can i submit to the appstore from unity cloud build ? 0 Answers

Using Codeless IAp and Defining products 1 Answer

App size after Xcode Build and App store size 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges