How to use the pbxproj.pbxnode.PBXBuildPhase function in pbxproj

To help you get started, we’ve selected a few pbxproj examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexlee002 / XcodeScripts / pbxproj / pbxnode.py View on Github external
self._al_displayName = 'Frameworks'

	def node(self, files=(), guid=None):
		return super(PBXFrameworksBuildPhase, self).node('PBXFrameworksBuildPhase', files, guid)


class PBXHeadersBuildPhase(PBXBuildPhase):
	"""docstring for PBXHeadersBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXHeadersBuildPhase, self).__init__('PBXHeadersBuildPhase', guid)

	def node(self, files=(), guid=None):
		return super(PBXHeadersBuildPhase, self).node('PBXHeadersBuildPhase', files, guid)


class PBXResourcesBuildPhase(PBXBuildPhase):
	"""docstring for PBXResourcesBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXResourcesBuildPhase, self).__init__('PBXResourcesBuildPhase', guid)
		self._al_displayName = 'Resources'

	def node(self, files=(), guid=None):
		return super(PBXResourcesBuildPhase, self).node('PBXResourcesBuildPhase', files, guid)


class PBXShellScriptBuildPhase(PBXBuildPhase):
	"""docstring for PBXShellScriptBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXShellScriptBuildPhase, self).__init__('PBXShellScriptBuildPhase', guid)
		self.inputPaths = []
		self.outputPaths = []
		self.shellPath = None
github alexlee002 / XcodeScripts / pbxproj / pbxnode.py View on Github external
def _contentDict(self):
		dic = super(PBXBuildPhase, self)._contentDict()
		myDic = objectToDict(self, {'files', 'buildActionMask', 'runOnlyForDeploymentPostprocessing'})
		if self.name is not None:
			myDic['name'] = self.name
		return dict(myDic, **dic)


class PBXAppleScriptBuildPhase(PBXBuildPhase):
	"""docstring for ClassName"""
	def node(self, files=(), guid=None):
		return super(PBXAppleScriptBuildPhase, self).node('PBXAppleScriptBuildPhase', files, guid)


class PBXCopyFilesBuildPhase(PBXBuildPhase):
	"""docstring for PBXCopyFilesBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXCopyFilesBuildPhase, self).__init__('PBXCopyFilesBuildPhase', guid)
		self.dstPath = None
		self.dstSubfolderSpec = None

	def node(self, files=(), guid=None):
		return super(PBXCopyFilesBuildPhase, self).node('PBXCopyFilesBuildPhase', files, guid)

	def _contentDict(self):
		dic = super(PBXCopyFilesBuildPhase, self)._contentDict()
		return dict(objectToDict(self, {'dstPath', 'dstSubfolderSpec'}), **dic)


class PBXFrameworksBuildPhase(PBXBuildPhase):
	"""docstring for PBXFrameworksBuildPhase"""
github alexlee002 / XcodeScripts / pbxproj / pbxnode.py View on Github external
def __init__(self, isa, guid=None):
		super(PBXBuildPhase, self).__init__(isa, guid)
		self.files = []
		self.buildActionMask = 2147483647
		self.runOnlyForDeploymentPostprocessing = 0
		self.name = None
		self._al_displayName = None
github alexlee002 / XcodeScripts / pbxproj / pbxnode.py View on Github external
class PBXCopyFilesBuildPhase(PBXBuildPhase):
	"""docstring for PBXCopyFilesBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXCopyFilesBuildPhase, self).__init__('PBXCopyFilesBuildPhase', guid)
		self.dstPath = None
		self.dstSubfolderSpec = None

	def node(self, files=(), guid=None):
		return super(PBXCopyFilesBuildPhase, self).node('PBXCopyFilesBuildPhase', files, guid)

	def _contentDict(self):
		dic = super(PBXCopyFilesBuildPhase, self)._contentDict()
		return dict(objectToDict(self, {'dstPath', 'dstSubfolderSpec'}), **dic)


class PBXFrameworksBuildPhase(PBXBuildPhase):
	"""docstring for PBXFrameworksBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXFrameworksBuildPhase, self).__init__('PBXFrameworksBuildPhase', guid)
		self._al_displayName = 'Frameworks'

	def node(self, files=(), guid=None):
		return super(PBXFrameworksBuildPhase, self).node('PBXFrameworksBuildPhase', files, guid)


class PBXHeadersBuildPhase(PBXBuildPhase):
	"""docstring for PBXHeadersBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXHeadersBuildPhase, self).__init__('PBXHeadersBuildPhase', guid)

	def node(self, files=(), guid=None):
		return super(PBXHeadersBuildPhase, self).node('PBXHeadersBuildPhase', files, guid)
github alexlee002 / XcodeScripts / pbxproj / pbxnode.py View on Github external
def node(self, files=(), guid=None):
		return super(PBXHeadersBuildPhase, self).node('PBXHeadersBuildPhase', files, guid)


class PBXResourcesBuildPhase(PBXBuildPhase):
	"""docstring for PBXResourcesBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXResourcesBuildPhase, self).__init__('PBXResourcesBuildPhase', guid)
		self._al_displayName = 'Resources'

	def node(self, files=(), guid=None):
		return super(PBXResourcesBuildPhase, self).node('PBXResourcesBuildPhase', files, guid)


class PBXShellScriptBuildPhase(PBXBuildPhase):
	"""docstring for PBXShellScriptBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXShellScriptBuildPhase, self).__init__('PBXShellScriptBuildPhase', guid)
		self.inputPaths = []
		self.outputPaths = []
		self.shellPath = None
		self.shellScript = None

	def node(self, files=(), guid=None):
		return super(PBXShellScriptBuildPhase, self).node('PBXShellScriptBuildPhase', files, guid)

	def _contentDict(self):
		dic = super(PBXShellScriptBuildPhase, self)._contentDict()
		return dict(objectToDict(self, {'inputPaths', 'outputPaths', 'shellPath', 'shellScript'}), **dic)
github alexlee002 / XcodeScripts / pbxproj / pbxnode.py View on Github external
def node(self, isa, files=(), guid=None):
		node = PBXBuildPhase(isa, guid)
		node.files = list(files)
		return node
github alexlee002 / XcodeScripts / pbxproj / pbxnode.py View on Github external
def __init__(self, isa=None, guid=None):
		super(PBXShellScriptBuildPhase, self).__init__('PBXShellScriptBuildPhase', guid)
		self.inputPaths = []
		self.outputPaths = []
		self.shellPath = None
		self.shellScript = None

	def node(self, files=(), guid=None):
		return super(PBXShellScriptBuildPhase, self).node('PBXShellScriptBuildPhase', files, guid)

	def _contentDict(self):
		dic = super(PBXShellScriptBuildPhase, self)._contentDict()
		return dict(objectToDict(self, {'inputPaths', 'outputPaths', 'shellPath', 'shellScript'}), **dic)


class PBXSourcesBuildPhase(PBXBuildPhase):
	"""docstring for PBXSourcesBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXSourcesBuildPhase, self).__init__('PBXSourcesBuildPhase', guid)
		self._al_displayName = 'Sources'

	def node(self, files=(), guid=None):
		return super(PBXSourcesBuildPhase, self).node('PBXSourcesBuildPhase', files, guid)


### PBXTarget ###
class PBXAggregateTarget(PBXNode):
	"""docstring for PBXAggregateTarget"""
	def __init__(self, isa=None, guid=None):
		super(PBXAggregateTarget, self).__init__('PBXAggregateTarget', guid)
		self.buildConfigurationList = None
		self.buildPhases = []
github alexlee002 / XcodeScripts / pbxproj / pbxnode.py View on Github external
self._al_displayName = None

	def node(self, isa, files=(), guid=None):
		node = PBXBuildPhase(isa, guid)
		node.files = list(files)
		return node

	def _contentDict(self):
		dic = super(PBXBuildPhase, self)._contentDict()
		myDic = objectToDict(self, {'files', 'buildActionMask', 'runOnlyForDeploymentPostprocessing'})
		if self.name is not None:
			myDic['name'] = self.name
		return dict(myDic, **dic)


class PBXAppleScriptBuildPhase(PBXBuildPhase):
	"""docstring for ClassName"""
	def node(self, files=(), guid=None):
		return super(PBXAppleScriptBuildPhase, self).node('PBXAppleScriptBuildPhase', files, guid)


class PBXCopyFilesBuildPhase(PBXBuildPhase):
	"""docstring for PBXCopyFilesBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXCopyFilesBuildPhase, self).__init__('PBXCopyFilesBuildPhase', guid)
		self.dstPath = None
		self.dstSubfolderSpec = None

	def node(self, files=(), guid=None):
		return super(PBXCopyFilesBuildPhase, self).node('PBXCopyFilesBuildPhase', files, guid)

	def _contentDict(self):
github alexlee002 / XcodeScripts / pbxproj / pbxnode.py View on Github external
def _contentDict(self):
		dic = super(PBXCopyFilesBuildPhase, self)._contentDict()
		return dict(objectToDict(self, {'dstPath', 'dstSubfolderSpec'}), **dic)


class PBXFrameworksBuildPhase(PBXBuildPhase):
	"""docstring for PBXFrameworksBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXFrameworksBuildPhase, self).__init__('PBXFrameworksBuildPhase', guid)
		self._al_displayName = 'Frameworks'

	def node(self, files=(), guid=None):
		return super(PBXFrameworksBuildPhase, self).node('PBXFrameworksBuildPhase', files, guid)


class PBXHeadersBuildPhase(PBXBuildPhase):
	"""docstring for PBXHeadersBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXHeadersBuildPhase, self).__init__('PBXHeadersBuildPhase', guid)

	def node(self, files=(), guid=None):
		return super(PBXHeadersBuildPhase, self).node('PBXHeadersBuildPhase', files, guid)


class PBXResourcesBuildPhase(PBXBuildPhase):
	"""docstring for PBXResourcesBuildPhase"""
	def __init__(self, isa=None, guid=None):
		super(PBXResourcesBuildPhase, self).__init__('PBXResourcesBuildPhase', guid)
		self._al_displayName = 'Resources'

	def node(self, files=(), guid=None):
		return super(PBXResourcesBuildPhase, self).node('PBXResourcesBuildPhase', files, guid)