Sha256: e2353864eb9894021f488501005365592616fc6887fdd84eaac26ce8199fdee5
Contents?: true
Size: 795 Bytes
Versions: 6
Compression:
Stored size: 795 Bytes
Contents
# A file used for building. Points to a PBXFileRef. class ZergXcode::Objects::PBXBuildFile < ZergXcode::XcodeObject # The name of the referenced file. def filename self['fileRef']['path'] end # The type of the referenced file. def file_type self['fileRef']['explicitFileType'] || self['fileRef']['lastKnownFileType'] end # Guesses the type of the build phase that this file should belong to. # This can be useful when figuring out which build phase to add a file to. def guessed_build_phase_type case file_type when /\.h$/ return 'PBXHeadersBuildPhase' when /^sourcecode/ return 'PBXSourcesBuildPhase' when /\.framework$/, /\.ar$/ return 'PBXFrameworksBuildPhase' else return 'PBXResourcesBuildPhase' end end end
Version data entries
6 entries across 6 versions & 2 rubygems