问题
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
回答1:
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:
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.
来源:https://stackoverflow.com/questions/26427141/what-xcode-build-rules-does