简体   繁体   中英

Build rules for Swift source files

Xcode supports custom Build Rules for different source files. I am particularly interested in Swift build rule.

What should be correct script to compile the sources and what to specify in Output Files ?

Please, answer the question if you did have experience with that.

在此处输入图片说明

Swift files are compiled with swiftc implicitly, as well as Obj-C with clang . Afaik it's not possible to substitute that call with a Build Rule, as you also would need to pass tons of arguments for the optimizer, libraries for linker etc The output of source code compilation is object files (*.o), which are then linked together to form a resulting binary.

You can read about this process here and here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM