苹果提交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
- 用txt软件打开Info.plist删除
UIApplicationExitsOnSuspend
的那行 - 在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/
网友评论