tulsi
tulsi copied to clipboard
Any plans to support SwiftUI preview ?
Currently, we can't enable SwiftUI preview on tulsi using bazel build system.
I believe that it's available with some tricks like adding build phase 'Compile Sources' manages target swift sources again and setting stub script to SWIFT_EXEC
.
Maybe it's needed to pass swiftmodule
s generated by bazel to swiftc with '-I' option, then Xcode can compile preview-thunk.swift
to preview-thunk.dylib
.
I think it's an essential feature for iOS app development now.
Thanks!
Where did you find these tips? I am looking at trying to get this working but it seems like you have some information on how to get this to work.
In its current form, Tulsi isn't compatible with previews since previews require proper buildable target/schemes (AFAIK limited to the active scheme). An alternative approach like XCHammer seems better suited to let Xcode handle part of the build.
@DavidGoldman Thank you for your response. You mean to recommend the use of XCHammer? I tried that before, but it wasn't stable, so I'm using Tulsi now. Does Tulsi have any plans to make improvements to support SwiftUI?
Any news on adding support for this?
hoping for an update on this :)
The future for this is likely for folks to use rules_xcodeproj which already supports this.
Thanks for submitting this issue but this tool is being deprecated. Please checkout rules_xcodeproj for a more complete and maintained Xcode integration.