static bool checkVersions(PackageCollection packages) { var result = true; foreach (var package in packages) { var packageName = package.name; var currentVersion = parseUnityPackageManagerVersion(package.version); if (minDependencies.TryGetValue(packageName, out string dependency)) { //Debug.Log(packageName); var minRequiredVersion = new Version(dependency); if (currentVersion < minRequiredVersion) { result = false; Debug.LogError("Please update this package to the required version via Window -> Package Manager: " + packageName + ":" + minRequiredVersion); } } } if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.iOS) { if (packages.All(_ => _.name != "com.unity.xr.arkit-face-tracking")) { Debug.Log("To enable iOS face tracking, install ARKit Face Tracking 3.0.1 via Package Manager."); } } return(result); }