I have a static library that compiles some C and ObjC code using the command line tools.
I'd like to start using Swift in this static library as it helps to simplify/shorten the code. (and well, it's the future right?)
I already searched and understood that it wasn't possible to include Swift files in a static library until I saw a post that said it was now possible with xCode 9 beta 4. (Static Library and Swift)
My questions are:
- Is this actually true?
- If it now works, can someone explain me how one should process to include Swift into a static library?
- Is this feature extended to the command line tools, I mean can I do the same in command line?
- If possible, then how should I do that? Or is there someone that can provide links on how to do it?
Note: I already explored the questions about how to call Swift from Objective-C from C. I know about the need of a Bridging Header and the generation of a project-Swift.h header file (along with some settings).