Support glob or regex in Build Rules file matching
Originator: | londeix | ||
Number: | rdar://46254903 | Date Originated: | |
Status: | Resolved: | ||
Product: | Developer Tools - Xcode | Product Version: | |
Classification: | Reproducible: |
Currently, Xcode project allows defining Custom Build Rules for files with names matching simple "DOS" pattern. For flexibility, please add an extended (backward compatible) `glob` matching and/or `regex`. One of a use case includes matching several extensions (e.g. .jpeg and .jpg: .*\.(?:jpeg|jpg) ) without Custom Build Rule duplication. Backward compatibility notes: Regexes are of course more powerful but to keep backward compatibility Xcode would need to add an extra fileType of a PBXBuildRule that explicitly supports regexes (hypothetical .pbxproj): ... compilerSpec = com.apple.compilers.proxy.script; filePatterns = "*.jp?(e)g"; fileType = pattern.proxy; ... compilerSpec = com.apple.compilers.proxy.script; filePatterns = ".*\.(?:jpeg|jpg)"; fileType = pattern.proxy.regex; ...
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!