swiftlang / swift-docc-plugin

Swift Package Manager command plugin for Swift-DocC
https://swiftpackageindex.com/swiftlang/swift-docc-plugin/documentation/swiftdoccplugin
Apache License 2.0
325 stars 52 forks source link

error: no such module 'UIKit' #64

Open euri21 opened 1 year ago

euri21 commented 1 year ago

When I run this command in my project, swift package generate-documentation

it is failed with the following error.

/Users/.../ProjectName/PackageName/Sources/.../ScreenCoordinateValue.swift:6:8: error: no such module 'UIKit'
import UIKit

What is wrong?

x-0o0 commented 1 year ago

Hi, @euri21 You should run xcodebuild docbuild command instead when your package uses UIKit

kvasnetskyi commented 9 months ago

Hi, @euri21 You should run xcodebuild docbuild command instead when your package uses UIKit

swift package generate-xcodeprojis already deprecated. So I don't really understand how I should generate documentation.

x-0o0 commented 8 months ago

@kvasnetskyi Here's my sample commands for generating the documentation: https://github.com/x-0o0/package-docc-example/blob/main/README_ENG.md#build-documentation I hope that it would be helpful

kvasnetskyi commented 8 months ago

@kvasnetskyi Here's my sample commands for generating the documentation: https://github.com/x-0o0/package-docc-example/blob/main/README_ENG.md#build-documentation I hope that it would be helpful

@x-0o0 Thank you! I will check.

cerupcat commented 3 days ago

Since docbuild doesn't support many things the package does, is there any plans to allow for generating UIKit using the swift package?