美文网首页
ITMS-90339

ITMS-90339

作者: 05 | 来源:发表于2019-06-20 15:08 被阅读0次

    苹果提交App是显示

    ITMS-90339: Deprecated Info.plist Key - The Info.plist contains a key 'UIApplicationExitsOnSuspend' in bundle RequiemErich [RequiemErich.app] that will soon be unsupported. Remove the key, rebuild your app and resubmit.
    

    可以忽略,但是不忽略的办法有2

    1. 用txt软件打开Info.plist删除UIApplicationExitsOnSuspend的那行
    2. 在xcode打开Info.plist删除Application does not run in background

    如果是unity项目,那么在postprocessing文件中写:

    public class BuildProcessor
    {
       [PostProcessBuild(1)]
       public static void OnPostprocessBuild(BuildTarget buildTarget, string pathToBuiltProject)
       {
    #if UNITY_IOS
          // Get plist
          string plistPath = pathToBuiltProject + "/Info.plist";
          PlistDocument plist = new PlistDocument();
          plist.ReadFromString(File.ReadAllText(plistPath));
     
          // Get root
          PlistElementDict rootDict = plist.root;
     
          // Set encryption usage boolean
          string encryptKey = "ITSAppUsesNonExemptEncryption";
            rootDict.SetBoolean(encryptKey, false);
     
          // remove exit on suspend if it exists.
          string exitsOnSuspendKey = "UIApplicationExitsOnSuspend";
          if(rootDict.values.ContainsKey(exitsOnSuspendKey))
          {
             rootDict.values.Remove(exitsOnSuspendKey);
          }
     
          // Write to file
          File.WriteAllText(plistPath, plist.WriteToString());
    #endif
       }
    }
    

    参考:https://forum.unity.com/threads/the-info-plist-contains-a-key-uiapplicationexitsonsuspend.689200/

    相关文章

      网友评论

          本文标题:ITMS-90339

          本文链接:https://www.haomeiwen.com/subject/xlfjqctx.html