Import DocC to Xcode

I'm trying to figure out how to build DocC from other frameworks to Xcode's Developer Documentation.

I tried using the build documentation command, and it generates the DocC for my project and displays it in the Developer Documentation, but not libraries in the SPM.

The code documentation does appear in the Developer Documentation, but the contents of the DocC are not shown.

Replies

I’ve been working on my own Swift packages recently and they don’t have this problems. There’s something specific about Swift Algorithms that’s causing it. After a bunch of differential debugging, I finally figure it out. My package starts with:

// swift-tools-version: 5.10

whereas Swift Algorithms starts with:

// swift-tools-version:5.4

If I change Swift Algorithms to 5.10 and do a clean build, the documentation shows up correctly.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"