Esempio n. 1
0
 /// <summary>
 /// Removes the framework.
 /// </summary>
 /// <param name="frameworkName">Framework type</param>
 public static void RemoveFramework(XCodeFrameworkName frameworkName)
 {
     foreach (var item in XCodeProjectSettings.Instance.Frameworks)
     {
         if (item.FrameworkName == frameworkName)
         {
             XCodeProjectSettings.Instance.Frameworks.Remove(item);
             break;
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a system framework dependency.
 ///
 /// The function assumes system frameworks are located in System/Library/Frameworks folder
 /// in the SDK source tree. The framework is added to Frameworks logical folder in the project.
 /// </summary>
 /// <param name="frameworkName">The name of the framework.</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 AddFramework(XCodeFrameworkName frameworkName, bool weak = false)
 {
     AddFramework(new XCodeFramework(frameworkName, weak));
 }