/// <summary> /// Removes the library. /// </summary> /// <param name="libraryName">Library type.</param> public static void RemoveLibrary(XCodeLibraryName libraryName) { foreach (var item in XCodeProjectSettings.Instance.Libraries) { if (item.Name == libraryName) { XCodeProjectSettings.Instance.Libraries.Remove(item); break; } } }
public static string StringValueOf(XCodeLibraryName value) { #if !UNITY_WSA var fi = value.GetType().GetField(value.ToString()); var attributes = (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false); if (attributes.Length > 0) { return(attributes[0].Description); } else { return(value.ToString()); } #else return(string.Empty); #endif }
/// <summary> /// Adds a system library dependency. /// /// The function assumes system library are located in System/Library/Frameworks folder /// in the SDK source tree. The library is added to Frameworks logical folder in the project. /// </summary> /// <param name="libraryName">The name of the library.</param> /// <param name="weak"><c>True</c> if the framework is optional (i.e. weakly linked), <c>false</c> if the framework is required.</param> public static void AddLibrary(XCodeLibraryName libraryName, bool weak = false) { AddLibrary(new XCodeLibrary(libraryName, weak)); }