Ejemplo n.º 1
0
        public static PBXBuildFileData CreateFromFile(string fileRefGUID, bool weak,
                                                      string compileFlags)
        {
            PBXBuildFileData buildFile = new PBXBuildFileData();

            buildFile.guid = PBXGUID.Generate();
            buildFile.SetPropertyString("isa", "PBXBuildFile");
            buildFile.fileRef      = fileRefGUID;
            buildFile.compileFlags = compileFlags;
            buildFile.weak         = weak;
            buildFile.assetTags    = new List <string>();
            return(buildFile);
        }
Ejemplo n.º 2
0
        public static PBXBuildFileData CreateFromFileWithExtraSettings(string fileRefGUID, bool weak,
                                                                       string compileFlags)
        {
            PBXBuildFileData buildFile = new PBXBuildFileData();

            buildFile.guid = PBXGUID.Generate();
            buildFile.SetPropertyString("isa", "PBXBuildFile");

            PBXElementDict dict = new PBXElementDict();
            //dict.CreateDict ("ATTRIBUTES");
            PBXElementArray array = new PBXElementArray();

            array.AddString("CodeSignOnCopy");
            array.AddString("RemoveHeadersOnCopy");
            dict.values ["ATTRIBUTES"] = array;

            buildFile.m_Properties["settings"] = dict;

            buildFile.fileRef      = fileRefGUID;
            buildFile.compileFlags = compileFlags;
            buildFile.weak         = weak;
            buildFile.assetTags    = new List <string>();
            return(buildFile);
        }