Skip to content

Mixed swift and objective c build system using Buck

Notifications You must be signed in to change notification settings

hendych/swift-objc-buck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swift-objc-buck

This is a sample of mixed swift and objective c using Buck build system.

To Install

# 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

Build Target

To build target you can run this command

# Build app
make build app

Test Target

To test target you can run this command

# Test app
make test app

Generating an Xcode Project

To generate Xcode project, you can run this command

make project app

This will create App.xcodeproj and SwiftObjcBuck.xcworkspace inside App folder.

Known Issues

To support bridging header in Tests, we have to import objective c header files using relative paths. You can track this issue here