How to use the pbxproj.pbxsections.PBXBuildFile.PBXBuildFile.create 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 kronenthaler / mod-pbxproj / tests / pbxsections / TestPBXBuildFile.py View on Github external
def testRemoveAttributesWithoutSettings(self):
        dobj = PBXBuildFile.create(PBXGenericObject())

        dobj.remove_attributes('Weak')

        self.assertIsNone(dobj[u'settings'])
github kronenthaler / mod-pbxproj / tests / pbxsections / TestPBXBuildFile.py View on Github external
def testRemoveAttributesWithSettings(self):
        dobj = PBXBuildFile.create(PBXGenericObject(), attributes=["Weak"])

        dobj.remove_attributes('Weak')

        self.assertIsNone(dobj[u'settings'])
github kronenthaler / mod-pbxproj / tests / pbxsections / TestPBXBuildFile.py View on Github external
def testAddAttributesWithAttributes(self):
        dobj = PBXBuildFile.create(PBXGenericObject(), attributes="x")
        dobj.add_attributes(u'Weak')

        self.assertIsNotNone(dobj.settings.ATTRIBUTES)
        self.assertEquals(dobj.settings.ATTRIBUTES, [u'x', u'Weak'])
github kronenthaler / mod-pbxproj / tests / pbxsections / TestPBXBuildFile.py View on Github external
def testAddAttributesWithoutAttributes(self):
        dobj = PBXBuildFile.create(PBXGenericObject(), compiler_flags="x")

        dobj.add_attributes(u'Weak')

        self.assertIsNotNone(dobj.settings.ATTRIBUTES)
        self.assertEquals(dobj.settings.ATTRIBUTES, [u'Weak'])
github kronenthaler / mod-pbxproj / tests / pbxsections / TestPBXBuildFile.py View on Github external
def testAddAttributesWithoutSettings(self):
        dobj = PBXBuildFile.create(PBXGenericObject())

        dobj.add_attributes(u'Weak')

        self.assertIsNotNone(dobj.settings.ATTRIBUTES)
        self.assertEquals(dobj.settings.ATTRIBUTES, [u'Weak'])
github kronenthaler / mod-pbxproj / tests / pbxsections / TestPBXBuildFile.py View on Github external
def testAddCompilerFlagWithFlags(self):
        dobj = PBXBuildFile.create(PBXGenericObject(), compiler_flags=[u'Weak', '-fno-arc'])

        dobj.add_compiler_flags('x')

        self.assertIsNotNone(dobj.settings.COMPILER_FLAGS)
        self.assertEquals(dobj.settings.COMPILER_FLAGS, u'Weak -fno-arc x')
github kronenthaler / mod-pbxproj / tests / pbxsections / TestPBXBuildFile.py View on Github external
def testRemoveCompilerFlagsWithSettings(self):
        dobj = PBXBuildFile.create(PBXGenericObject(), compiler_flags=u'Weak')

        dobj.remove_compiler_flags('Weak')

        self.assertIsNone(dobj[u'settings'])
github kronenthaler / mod-pbxproj / tests / pbxsections / TestPBXBuildFile.py View on Github external
def testAddCompilerFlagWithoutSettings(self):
        dobj = PBXBuildFile.create(PBXGenericObject())

        dobj.add_compiler_flags([u'Weak', '-fno-arc'])

        self.assertIsNotNone(dobj.settings.COMPILER_FLAGS)
        self.assertEquals(dobj.settings.COMPILER_FLAGS, u'Weak -fno-arc')
github kronenthaler / mod-pbxproj / tests / pbxsections / TestPBXBuildFile.py View on Github external
def testRemoveCompilerFlagsWithoutSettings(self):
        dobj = PBXBuildFile.create(PBXGenericObject())

        dobj.remove_compiler_flags('Weak')

        self.assertIsNone(dobj[u'settings'])