What Xcode “Build Rules” does?

别来无恙 提交于 2019-12-13 12:22:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!