I've build a command line tool in Swift under Xcode to parse frames captured off an Ethernet. Doing so required defining headers as C include files so that '''attribute((packed))''' was available. Now that it's working well, I want to port the code to Linux where we plan to actually use the tool.
I'm trying to do this via the Package Manager, but can't find a way to work the equivalent of telling Xcode to use the bridging header. Is there a way to do this?
I did try a makefile and '''-import-objc-header''', but then couldn't find the right way to get the '''swift''' command to find the SwiftProtobuf module.