New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwiftTemplate
fails to build due to Invalid manifest
#1322
Comments
This repeatedly occurs when attempting to build using Bitrise continuous integration platform |
We're currently using Sourcery 2.2.2. I've attempting passing private func createBuildCommands(
tool: PluginContext.Tool,
configPath: Path,
outputDirectory: Path
) -> [Command] {
let cachePath = outputDirectory.appending(subpath: "SourceryPlugin/Cache")
let buildPath = outputDirectory.appending(subpath: "SourceryPlugin/Build")
return [
.prebuildCommand(
displayName: "Generate mocked types for target",
executable: tool.path,
arguments: [
"--config", configPath,
"--cacheBasePath", cachePath,
"--buildPath", buildPath,
"--disableCache",
"--verbose"
],
environment: ["DERIVED_SOURCES_DIR": outputDirectory],
outputFilesDirectory: outputDirectory
) |
I'm now struggling to reproduce locally, the output appears to succeed: Raw compilation of SwiftTemplate took: 7.120736837387085 |
Hi @markst , aside from other issues you've reported, for which there are billions of thanks ❤️ , You can verify this by using |
You can normally resolve this issue using swift package purge-cache |
We're using a
XcodeBuildToolPlugin
to generate mocks using Sourcery as mentioned in this issue:#1229
This works when running in Xcode, however occasionally when running tests using xcodebuild the following can occur:
The text was updated successfully, but these errors were encountered: