Exemple #1
0
        private void BuildAddFile(PBXFileReference fileReference, KeyValuePair <string, PBXCopyFilesBuildPhase> currentObject, bool weak)
        {
            PBXBuildFile buildFile = new PBXBuildFile(fileReference, weak);

            buildFiles.Add(buildFile);
            currentObject.Value.AddBuildFile(buildFile);
        }
Exemple #2
0
        public void AddEmbedFramework(string fileName)
        {
            Debug.Log("Add Embed Framework: " + fileName);

            //Check if there is already a file
            PBXFileReference fileReference = GetFile(System.IO.Path.GetFileName(fileName));

            if (fileReference == null)
            {
                Debug.Log("Embed Framework must added already: " + fileName);
                return;
            }

            var embedPhase = this.AddEmbedFrameworkBuildPhase();

            if (embedPhase == null)
            {
                Debug.Log("AddEmbedFrameworkBuildPhase Failed.");
                return;
            }

            //create a build file
            PBXBuildFile buildFile = new PBXBuildFile(fileReference);

            buildFile.AddCodeSignOnCopy();
            buildFiles.Add(buildFile);

            embedPhase.AddBuildFile(buildFile);
        }
Exemple #3
0
 public bool AddBuildFile(PBXBuildFile file)
 {
     if (!ContainsKey(FILES_KEY))
     {
         this.Add(FILES_KEY, new PBXList());
     }
     ((PBXList)_data[FILES_KEY]).Add(file.guid);
     return(true);
 }