Sha256: cb4ca1ee14e1b4d5a419dd35515aa734f9f0c3ef20c479b4253289df4ba32920

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

module Xcake
  module Generator
    # This build phase generator detects XCDataModel bundles
    # and adds them to the compile source phase.
    #
    class CompileXCDataModelBuildPhase < CompileSourceBuildPhase
      def self.can_install_node(node)
        File.directory?(node.path) &&
          [".xcdatamodel"].include?(File.extname(node.path))
      end

      def visit_node(node)
        super

        # Ignore all files inside of the XCDataModel
        node.children = []
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xcake-0.4.2 lib/xcake/generator/build_phase/compile_xcdatamodel_build_phase.rb