swiftlang / swift-docc-plugin

Swift Package Manager command plugin for Swift-DocC
https://swiftpackageindex.com/apple/swift-docc-plugin/1.3.0/documentation/swiftdoccplugin
Apache License 2.0
316 stars 54 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 10 months ago

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

kvasnetskyi commented 6 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 6 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 6 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.