What Xcode "Build Rules" does?

1.8k Views Asked by At

I am new in Xcode. From the "Targets" in Xcode, I could see that there is a Tab called "Build Rules".

I wonder what is this tab does?

Thanks

2

There are 2 best solutions below

0
On BEST ANSWER

To my understanding under the Tab 'Build rules' you can automate any behaviour you would like the compiler to do when compiling a file. Xcode has standard rules when compiling, with Build Rules you can add a rule to that.

Personally I am quite new to Xcode as well and didn't know about build rules too. I found this information that helped me understand it better, maybe that is any help to you. If anyone with more experience with Xcode has a better answer, please correct me as I'm still learning Xcode too.

2
On

You can use "build rules" to say: hey XCode, with files matching pattern (your pattern), do the following: (your instructions)

For example, you can use that to specify that all Ruby files ('*.rb') that happened in your source (don't ask how) should be executed during build process.