Build fails with error "Value of optional type 'URL?' must be unwrapped to a value of type 'URL'" #44
-
I followed the steps from Integrating XCStrings Tool into an Xcode Project Target to set this up in my project, and I'm getting the errors shown in the screenshot below when I try to build the project. The only difference in my integration process is that I typed a slightly different link in when adding the package dependency—the instructions say to use Has this happened to anyone else, and do you have a fix for it? Did I miss a step in the integration? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi thanks for raising this! Which version of Xcode are you using?
It's recommended to use the xcstrings-tool-plugin because the build-tool plugin defined in this package uses a binary artefact dependency of the xcstrings-tool command line utility instead of requiring it to be built from source as part of your dependency graph. Doing so helps to eliminate slow compile times (SwiftSyntax) and other platform incompatibilities... The issue you are seeing seems to be that the xcstrings-tool Command Line utility cannot be compiled in your environment (maybe it's a change in Xcode 15.3, I haven't used it yet...) If you can setup your project using xcstrings-tool-plugin, this will avoid the issue you are seeing, otherwise, we might need to figure out why |
Beta Was this translation helpful? Give feedback.
Just a note, but I fixed the compile time issue that you see on the
main
branch (#45). It was due to a change in the latest version of swift-argument-parser.If you want to continue using the plugin from source, you can use the
main
branch until the next release, or just pinswift-argument-parser
back to version 1.2.3 by adding it as a fixed dependency in your Package.swift.Thanks!