void EnsureMinimumXcodeVersion()
        {
#if UNITY_EDITOR_OSX
            var xcodeIndex   = Math.Max(0, XcodeApplications.GetPreferedXcodeIndex());
            var xcodeVersion = OSVersion.Parse(XcodeApplications.GetXcodeApplicationPublicName(xcodeIndex));
            if (xcodeVersion == new OSVersion(0))
            {
                throw new BuildFailedException($"Could not determine which version of Xcode was selected in the Build Settings. Xcode app was computed as \"{XcodeApplications.GetXcodeApplicationPublicName(xcodeIndex)}\".");
            }

            if (xcodeVersion < new OSVersion(11, 0, 0))
            {
                throw new BuildFailedException($"The selected Xcode version: {xcodeVersion} is below the minimum Xcode required Xcode version for the Unity ARKit Face Tracking Plugin.  Please target at least Xcode version {k_MinimumXcodeTargetVersion}.");
            }
#endif
        }
Exemple #2
0
        static string GetXcodeApplicationName()
        {
            var index = Math.Max(0, XcodeApplications.GetPreferedXcodeIndex());

            return(XcodeApplications.GetXcodeApplicationPublicName(index));
        }