- Extract symbols with SymbolKit
- Decode and select
- Generate
.swift
files with GYB
Extract iOS symbols
swift symbolgraph-extract \
-module-name RealityFoundation \
-target arm64-apple-ios17.0 \
-output-dir ~/Desktop \
-pretty-print \
-sdk /Applications/Xcode-15.0.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk
Extract macOS symbols
swift symbolgraph-extract \
-module-name RealityFoundation \
-target arm64-apple-macos14.0 \
-output-dir ~/Desktop \
-pretty-print \
-sdk /Applications/Xcode-15.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk
Extract xrOS symbols
swift symbolgraph-extract \
-module-name RealityFoundation \
-target arm64-apple-xros1.0 \
-output-dir ~/Desktop \
-pretty-print \
-sdk /Applications/Xcode-15.0.0-Beta.8.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS1.0.sdk
Swift GYB
gyb Entity+Type.swift.gyb \
-o Entity+Type.swift \
--line-directive ''
gyb Component+Type.swift.gyb \
-o Component+Type.swift \
--line-directive ''