Micro Focus Contributor
Micro Focus Contributor

Custom rules for Xcode *.pbxproj file?

Hi team,

a customer asked a question 

He wants to create a rule, which will find specific settings, using regular expressions, in “*.pbxproj” file. It is property file from Xcode (iOS) projects.

Tried to use ConfigurationRule, but it gives some error(no exact error reported by customer), when he set <ConfigFile type="pbxproj">.

pbxproj file for example in attachment.

How can He find text in this specific file using custom rules?

Here an example of my custom rule:

<?xml version="1.0" encoding="UTF-8"?>

<RulePack xmlns="xmlns://www.fortifysoftware.com/schema/rules"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RulePack">





    <Description><![CDATA[Description for Xcode_set_PIE.xml]]></Description>

    <Rules version="16.20">


            <ConfigurationRule formatVersion="16.20">



                <VulnCategory>PIE value set to YES</VulnCategory>




                <ConfigFile type="pbxproj">


Thank you in advance,

Val Kuvaev

Pre-sales TC

Tags (2)
0 Replies
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.