Exemple #1
0
        public static PBXVariantGroupData Create(string name)
        {
            if (name.Contains("/"))
            {
                throw new Exception("Group name must not contain '/'");
            }

            PBXVariantGroupData gr = new PBXVariantGroupData();

            gr.guid = PBXGUID.Generate();
            gr.SetPropertyString("isa", "PBXVariantGroup");
            gr.name     = name;
            gr.tree     = PBXSourceTree.Group;
            gr.children = new GUIDList();

            return(gr);
        }
Exemple #2
0
        public static PBXBuildFileData CreateFromFile(
            string fileRefGUID,
            bool weak,
            string compileFlags)
        {
            PBXBuildFileData pbxBuildFileData = new PBXBuildFileData();

            pbxBuildFileData.guid = PBXGUID.Generate();
            pbxBuildFileData.SetPropertyString("isa", "PBXBuildFile");
            pbxBuildFileData.fileRef             = fileRefGUID;
            pbxBuildFileData.compileFlags        = compileFlags;
            pbxBuildFileData.weak                = weak;
            pbxBuildFileData.codeSignOnCopy      = false;
            pbxBuildFileData.removeHeadersOnCopy = false;
            pbxBuildFileData.assetTags           = new List <string>();
            return(pbxBuildFileData);
        }
Exemple #3
0
        public static PBXNativeTargetData Create(string name, string productRef,
                                                 string productType, string buildConfigList)
        {
            var res = new PBXNativeTargetData();

            res.guid = PBXGUID.Generate();
            res.SetPropertyString("isa", "PBXNativeTarget");
            res.buildConfigList = buildConfigList;
            res.phases          = new GUIDList();
            res.SetPropertyList("buildRules", new List <string>());
            res.dependencies     = new GUIDList();
            res.name             = name;
            res.productReference = productRef;
            res.SetPropertyString("productName", name);
            res.SetPropertyString("productReference", productRef);
            res.SetPropertyString("productType", productType);
            return(res);
        }