project.yml
name: SwiftTensorflow | |
options: | |
bundleIdPrefix: org.tensorflow.swift | |
configFiles: | |
Debug: debug.xcconfig | |
Release: debug.xcconfig | |
targets: | |
SwiftTorch: | |
type: tool | |
platform: macOS | |
deploymentTarget: "10.13" | |
sources: | |
- Sources | |
dependencies: | |
- framework: /Library/Developer/Toolchains/swift-latest/usr/lib/swift/macosx/libtensorflow_framework.so | |
- framework: /Library/Developer/Toolchains/swift-latest/usr/lib/swift/macosx/libtensorflow.so | |
- framework: libpython2.7.tbd | |
SUPPORTED_PLATFORMS: macosx |
and then all you have to do is run
xcodegen generate
it will read the project.yml and spit out a project.
I have a ticket open to turn the UseModernBuildSystem to false / otherwise you will get TensorFlow not found error -
(that means you still have to go to File > Project Settings > Build System > Legacy Build System)
https://github.com/yonaskolb/XcodeGen/issues/470