Hey @NeoNacho it seems like macros need to be built for the simulator to work in SwiftUI Previews. Since swift build
can't do that, I'm looking into how to do it with xcodebuild
.
I'm once again stuck on only gettting .o
files as output. Unlike swift build
, xcodebuild
requires a -scheme
to be specified, which seems to be similar to --target
when using swift build
. The solution to getting .a
files was to get rid of --target
, which I can't do here. I tried building a target specifically set to be .static
and also building the generated swift-syntax-Package
scheme. I only get .o
files in both cases. Could you please advise?
I'm calling something like this:
xcodebuild build \
-scheme swift-syntax-Package \
-destination "generic/platform=iOS Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES