Skip to content

Commit b7eca89

Browse files
committed
Fix DocC workflow to build for iOS platform
Use xcodebuild docbuild instead of swift package generate-documentation to properly include UIKit module required by this iOS-only package.
1 parent b600d55 commit b7eca89

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/docc.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ jobs:
2727

2828
- name: Build Documentation
2929
run: |
30-
swift package --allow-writing-to-directory ./docs \
31-
generate-documentation --target SwiftUIInterfaceOrientation \
32-
--disable-indexing \
33-
--transform-for-static-hosting \
30+
xcodebuild docbuild \
31+
-scheme SwiftUIInterfaceOrientation \
32+
-destination "generic/platform=iOS Simulator" \
33+
-derivedDataPath .derivedData
34+
35+
$(xcrun --find docc) process-archive transform-for-static-hosting \
36+
.derivedData/Build/Products/Debug-iphonesimulator/SwiftUIInterfaceOrientation.doccarchive \
3437
--hosting-base-path swiftui-interface-orientation \
3538
--output-path ./docs
3639

0 commit comments

Comments
 (0)