-
-
Notifications
You must be signed in to change notification settings - Fork 604
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 |
@art-divin possibly it's failing to get the cached build since it's failing to complete the build? |
Hello @markst , I wonder, can you try using Sourcery 2.2.1 version? There is one concurrency issue to be resolved by the end of the upcoming week (next release should be done on the next weekend). Maybe it is related to the issue you are facing, but I suspect it is not. 🕵🏻♂️ |
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: