Ejemplo n.º 1
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.SetPropertyString("productName", name);
            res.SetPropertyString("productReference", productRef);
            res.SetPropertyString("productType", productType);
            return(res);
        }
Ejemplo n.º 2
0
        public static PBXBuildFileData CreateFromFramework(string fileRefGUID)
        {
            PBXBuildFileData buildFile = new PBXBuildFileData();

            buildFile.guid = PBXGUID.Generate();
            buildFile.SetPropertyString("isa", "PBXBuildFile");
            buildFile.fileRef = fileRefGUID;
            PBXElementDict  settingsDict = new PBXElementDict();
            PBXElementArray elementArray = new PBXElementArray();

            elementArray.AddString("CodeSignOnCopy");
            elementArray.AddString("RemoveHeadersOnCopy");
            settingsDict["ATTRIBUTES"]         = elementArray;
            buildFile.m_Properties["settings"] = settingsDict;
            buildFile.assetTags = new List <string>();
            return(buildFile);
        }
Ejemplo n.º 3
0
        // name must not contain '/'
        public static PBXGroupData Create(string name, string path, PBXSourceTree tree)
        {
            if (name.Contains("/"))
            {
                throw new Exception("Group name must not contain '/'");
            }

            PBXGroupData gr = new PBXGroupData();

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

            return(gr);
        }