File tree Expand file tree Collapse file tree 8 files changed +31
-11
lines changed
MachOKit/Documentation.docc Expand file tree Collapse file tree 8 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 77jobs :
88 build :
99 name : Generate DocC
10- runs-on : macos-15
10+ runs-on : macos-26
1111 steps :
1212 - uses : actions/checkout@v3
1313
14- - name : Select Xcode 16.4
15- run : sudo xcode-select -s /Applications/Xcode_16.4 .app
14+ - name : Select Xcode 26.3
15+ run : sudo xcode-select -s /Applications/Xcode_26.3 .app
1616
1717 - name : Build DocC
1818 run : |
3030 environment :
3131 name : github-pages
3232 url : ${{ steps.deployment.outputs.page_url }}
33- runs-on : macos-15
33+ runs-on : ubuntu-latest
3434 steps :
3535 - name : Deploy to GitHub Pages
3636 id : deployment
Original file line number Diff line number Diff line change 33// MachOKit
44//
55// Created by p-x9 on 2026/03/17
6- //
76//
7+ //
8+
9+ @_documentation ( visibility: internal)
10+ @_exported
11+ import MachOKit
812
9- @_exported import MachOKit
10- @_exported import ObjectArchiveKit
13+ @_documentation ( visibility: internal)
14+ @_exported
15+ import ObjectArchiveKit
Original file line number Diff line number Diff line change 11# `` MachOKit ``
22
33🔬 A Swift library for parsing MachO files to obtain various information.
4+
5+ > Note:
6+ > Unix archive (.a) format is supported by `` MachOArchiveKit `` .
File renamed without changes.
Original file line number Diff line number Diff line change 33// MachOKit
44//
55// Created by p-x9 on 2025/02/01
6- //
6+ //
77//
88
99#ifndef core_foundation_h
1010#define core_foundation_h
1111
12+ #include <stdint.h>
13+
1214// ref: https://github.com/apple-oss-distributions/CF/blob/dc54c6bb1c1e5e0b9486c1d26dd5bef110b20bf3/CFRuntime.h#L222-L228
1315typedef struct __CFRuntimeBase64 {
1416 uint64_t _cfisa ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ preview_docc() {
66 mkdir -p docs
77
88 $( xcrun --find docc) preview \
9- " ./${TARGET} .docc" \
9+ " ./Sources/ ${TARGET} /Documentation .docc" \
1010 --additional-symbol-graph-dir symbol-graphs \
1111 --output-path " docs"
1212}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ generate_docc() {
77 mkdir -p docs
88
99 $( xcrun --find docc) convert \
10- " ./${TARGET} .docc" \
10+ " ./Sources/ ${TARGET} /Documentation .docc" \
1111 --output-path " docs" \
1212 --hosting-base-path " ${REPO_NAME} " \
1313 --additional-symbol-graph-dir ./symbol-graphs
Original file line number Diff line number Diff line change @@ -28,10 +28,18 @@ generate_symbol_graphs() {
2828
2929 xcodebuild clean build -scheme " ${scheme} " \
3030 -destination " generic/platform=${destination} " \
31- OTHER_SWIFT_FLAGS=" -emit-extension-block-symbols -emit-symbol-graph -emit-symbol-graph-dir $( pwd) /.build/symbol-graphs"
31+ OTHER_SWIFT_FLAGS=" -emit-extension-block-symbols -emit-symbol-graph -emit-symbol-graph-dir $( pwd) /.build/symbol-graphs" \
32+ DOCC_EXTRACT_EXTENSION_SYMBOLS=YES
3233
3334 mv " ./.build/symbol-graphs/${scheme} .symbols.json" " ${SYMBOL_DIR} /${scheme} _${destination} .symbols.json"
3435
36+ # Extension
37+ for file in ./.build/symbol-graphs/${scheme} @* .symbols.json; do
38+ if [ -f " $file " ]; then
39+ mv " $file " " ${SYMBOL_DIR} /$( basename " ${file% .symbols.json} " ) .symbols.json"
40+ fi
41+ done
42+
3543 if [ -d " ./Sources/$scheme /include" ]; then
3644 local HEADERS=$( ls " ./Sources/$scheme /include" )
3745 while IFS= read -r header; do
@@ -48,8 +56,10 @@ generate_symbol_graphs() {
4856clean_build
4957clean_xcbuild ios MachOKitC
5058clean_xcbuild ios MachOKit
59+ clean_xcbuild ios MachOArchiveKit
5160
5261clean_symbol
5362
5463generate_symbol_graphs ios MachOKitC
5564generate_symbol_graphs ios MachOKit
65+ generate_symbol_graphs ios MachOArchiveKit
You can’t perform that action at this time.
0 commit comments