Closed simonmcl closed 11 months ago
What command are you using to build the module outside of jazzy? You'll need to pass those same flags to it -- right now it just knows to run swift build
.
(The --sdk
flag is something to do with Objective-C and isn't doing anything here.)
@johnfairh I had no command line scripts for building it. After some googling I found the solution was to force jazzy to use xcodebuild and have to use a .jazzy.yaml
file, so that you can use comma separated string for -destination
. Need settings something like the below to force it to stop building for macos:
root_url: xxxxx
output: Documentation
swift_build_tool: xcodebuild
xcodebuild_arguments:
- "-scheme"
- "xxxxx"
- "-destination"
- "platform=iOS Simulator,OS=16.2,name=iPhone 14 Pro"
Thanks for responding anyway
I'm trying to use jazzy docs for an SPM package, that is iOS only (mainly due to a dependency). When trying to run jazzy, the build errors saying the macos versions of dependencies are mismatched. I want to tell jazzy to build iOS only. I've tried using the flag to say iphoneos but it doesn't seem to restrict the build. Is there something else I can do?
My package:
Command:
All produce the same errors:
My library is listed as "requiring 10.13", which it doesn't, this must be default if its unsupplied. I can't add a value for mine, because then it won't compile as it doesn't work for Macos