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