You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the SwiftUI library, I have defined a structure that contains Text("Hoge", bundle: .module) in the body variable. In this case, the build fails when the static site is built with Makefile.
If Text("Hoge", bundle: .module) is replaced with Text("Hoge"), the build succeeds.
The following libraries are affected by this phenomenon. https://github.com/KC-2001MS/OnboardingUI
Note: This error occurred in all releases, including the main repository and the latest version.
Checklist
If possible, I've reproduced the issue using the main branch of this package.
swift package --allow-writing-to-directory ./docs \
generate-documentation --target home \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path home \
--output-path ./docs
warning: 'onboardingui': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/keisuke/Documents/オープンソース開発/OnboardingUI/Sources/OnboardingUI/Localizable.xcstrings
/Users/keisuke/Documents/オープンソース開発/OnboardingUI/Sources/OnboardingUI/PrivacyInfo.xcprivacy
Building for debugging...
Build complete! (0.25s)
Generating documentation for 'OnboardingUI'...
warning: 'onboardingui': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/keisuke/Documents/オープンソース開発/OnboardingUI/Sources/OnboardingUI/Localizable.xcstrings
/Users/keisuke/Documents/オープンソース開発/OnboardingUI/Sources/OnboardingUI/PrivacyInfo.xcprivacy
Building for debugging...
/Users/keisuke/Documents/オープンソース開発/OnboardingUI/Sources/OnboardingUI/UI/View/Parts/OnboardingButton.swift:52:39: error: type 'Bundle?' has no member 'module'
Text("Continue", bundle: .module)
~^~~~~~
error: fatalError
error: unspecified("fatalError")
make: *** [docc] Error 1
This is the actual representation in the above repository.
Steps to Reproduce
Download the following repository
Check that line 52 of OnboardingButton.swift is Text("Continue", bundle: .module)
Go to the folder of this repository in Terminal and execute make docc.
rewrite line 52 as Text("Continue") and repeat the action in 3.
Check for errors in 3 and 4, respectively.
Workaround
Temporarily rewrite Text("Hoge", bundle: .module) to Text("Hoge") when outputting a static site.
Swift-DocC Plugin Version Information
Swift-DocC plugin version:1.3.01.2.01.1.01.0.0main Swift Compiler version:swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5).
PS
My apologies if I am using this incorrectly. I would appreciate it if you could point it out to me.
The text was updated successfully, but these errors were encountered:
In the SwiftUI library, I have defined a structure that contains Text("Hoge", bundle: .module) in the body variable. In this case, the build fails when the static site is built with Makefile.
If Text("Hoge", bundle: .module) is replaced with Text("Hoge"), the build succeeds.
The following libraries are affected by this phenomenon.
https://github.com/KC-2001MS/OnboardingUI
Checklist
main
branch of this package.Expected behavior
The following command should output the static site of the project for the specified target in the specified path
Actual behavior
Describe or copy/paste the behavior you observe.
This is the actual representation in the above repository.
Steps to Reproduce
Check for errors in 3 and 4, respectively.
Workaround
Temporarily rewrite Text("Hoge", bundle: .module) to Text("Hoge") when outputting a static site.
Swift-DocC Plugin Version Information
Swift-DocC plugin version:
1.3.0
1.2.0
1.1.0
1.0.0
main
Swift Compiler version:
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
.PS
My apologies if I am using this incorrectly. I would appreciate it if you could point it out to me.
The text was updated successfully, but these errors were encountered: