From 6c6456cb3904bf7df09f7a5f76153516e2d64793 Mon Sep 17 00:00:00 2001 From: Philip Niedertscheider Date: Sun, 5 May 2024 16:08:03 +0200 Subject: [PATCH] WIP --- .github/workflows/documentation.yml | 6 +++++- .jazzy.yaml | 23 ++++++++++++++++++++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 6c69467..8681545 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -24,7 +24,11 @@ jobs: - name: Generate Documentation run: | sed -i.bak "s/title:\(.*\)/title:\1 (${{ github.ref }})/g" .jazzy.yaml - bundle exec jazzy + SDK_PATH=`xcrun --sdk iphonesimulator --show-sdk-path` + SDK_VERSION=`xcrun --sdk iphonesimulator --show-sdk-version` + bundle exec jazzy \ + -c .jazzy.yaml \ + --build-tool-arguments "--sdk,${SDK_PATH},-Xswiftc,-sdk,-Xswiftc,$SDK_PATH,-Xswiftc,-target,-Xswiftc,arm64-apple-ios${SDK_VERSION}-simulator" - name: Fix Invalid URLs run: | diff --git a/.jazzy.yaml b/.jazzy.yaml index 6842c5c..8716457 100644 --- a/.jazzy.yaml +++ b/.jazzy.yaml @@ -19,15 +19,32 @@ theme: fullwidth title: OnLaunch iOS Client # The SDK for which your code should be built. -sdk: iphone +sdk: iphonesimulator # Source file pathnames to be included in documentation. Supports wildcards. include: Sources/OnLaunch/** - # Control whether Jazzy uses Swift Package Manager, xcodebuild, or swift-symbolgraph to build the module to be documented. # By default it uses xcodebuild if there is a .xcodeproj file in the source directory. swift_build_tool: spm + # Arguments to forward to xcodebuild, swift build, or sourcekitten. -build_tool_arguments: [] +# +# THESE ARE PROBABLY OUTDATED BUT ARE OVERWRITTEN IN THE CI +# +# You can find the SDK path using: +# +# xcrun --sdk iphonesimulator --show-sdk-path +build_tool_arguments: + - --sdk + - /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk + - -Xswiftc + - -target + - -Xswiftc + - arm64-apple-ios17.2-simulator + - -Xswiftc + - -sdk + - -Xswiftc + - /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.4.sdk + # The base URL on the source host of the project's files, to link from individual declarations. # For example https://github.com/realm/realm-cocoa/tree/v0.87.1 # source_host_files_url: ''