Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/docc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:
jobs:
build:
name: Generate DocC
runs-on: macos-15
runs-on: macos-26
steps:
- uses: actions/checkout@v3

- name: Select Xcode 16.4
run: sudo xcode-select -s /Applications/Xcode_16.4.app
- name: Select Xcode 26.3
run: sudo xcode-select -s /Applications/Xcode_26.3.app

- name: Build DocC
run: |
Expand All @@ -30,7 +30,7 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: macos-15
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
11 changes: 8 additions & 3 deletions Sources/MachOArchiveKit/Util/exported.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
// MachOKit
//
// Created by p-x9 on 2026/03/17
//
//
//

@_documentation(visibility: internal)
@_exported
import MachOKit

@_exported import MachOKit
@_exported import ObjectArchiveKit
@_documentation(visibility: internal)
@_exported
import ObjectArchiveKit
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# ``MachOKit``

🔬 A Swift library for parsing MachO files to obtain various information.

> Note:
> Unix archive (.a) format is supported by ``MachOArchiveKit``.
4 changes: 3 additions & 1 deletion Sources/MachOKitC/include/core_foundation.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
// MachOKit
//
// Created by p-x9 on 2025/02/01
//
//
//

#ifndef core_foundation_h
#define core_foundation_h

#include <stdint.h>

// ref: https://github.com/apple-oss-distributions/CF/blob/dc54c6bb1c1e5e0b9486c1d26dd5bef110b20bf3/CFRuntime.h#L222-L228
typedef struct __CFRuntimeBase64 {
uint64_t _cfisa;
Expand Down
2 changes: 1 addition & 1 deletion scripts/docc-preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ preview_docc() {
mkdir -p docs

$(xcrun --find docc) preview \
"./${TARGET}.docc" \
"./Sources/${TARGET}/Documentation.docc" \
--additional-symbol-graph-dir symbol-graphs \
--output-path "docs"
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/docc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ generate_docc() {
mkdir -p docs

$(xcrun --find docc) convert \
"./${TARGET}.docc" \
"./Sources/${TARGET}/Documentation.docc" \
--output-path "docs" \
--hosting-base-path "${REPO_NAME}" \
--additional-symbol-graph-dir ./symbol-graphs
Expand Down
12 changes: 11 additions & 1 deletion scripts/generate-symbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,18 @@ generate_symbol_graphs() {

xcodebuild clean build -scheme "${scheme}"\
-destination "generic/platform=${destination}" \
OTHER_SWIFT_FLAGS="-emit-extension-block-symbols -emit-symbol-graph -emit-symbol-graph-dir $(pwd)/.build/symbol-graphs"
OTHER_SWIFT_FLAGS="-emit-extension-block-symbols -emit-symbol-graph -emit-symbol-graph-dir $(pwd)/.build/symbol-graphs" \
DOCC_EXTRACT_EXTENSION_SYMBOLS=YES

mv "./.build/symbol-graphs/${scheme}.symbols.json" "${SYMBOL_DIR}/${scheme}_${destination}.symbols.json"

# Extension
for file in ./.build/symbol-graphs/${scheme}@*.symbols.json; do
if [ -f "$file" ]; then
mv "$file" "${SYMBOL_DIR}/$(basename "${file%.symbols.json}").symbols.json"
fi
done

if [ -d "./Sources/$scheme/include" ]; then
local HEADERS=$(ls "./Sources/$scheme/include")
while IFS= read -r header; do
Expand All @@ -48,8 +56,10 @@ generate_symbol_graphs() {
clean_build
clean_xcbuild ios MachOKitC
clean_xcbuild ios MachOKit
clean_xcbuild ios MachOArchiveKit

clean_symbol

generate_symbol_graphs ios MachOKitC
generate_symbol_graphs ios MachOKit
generate_symbol_graphs ios MachOArchiveKit
Loading