This is a sample of mixed swift and objective c using Buck build system.
# Install Buck
brew tap facebook/fb
brew install buck
# Then the JDK (superset of the JRE)
brew update
brew tap caskroom/cask
brew tap caskroom/versions
brew cask install java8
# Then...
brew install ant python git watchman
To build target you can run this command
# Build app
make build app
To test target you can run this command
# Test app
make test app
To generate Xcode project, you can run this command
make project app
This will create App.xcodeproj
and SwiftObjcBuck.xcworkspace
inside App
folder.
To support bridging header in Tests, we have to import objective c header files using relative paths. You can track this issue here