rake aborted
harshvishu opened this issue · 0 comments
harshvishu commented
I am unable to generate mock.generated files as rake mock
command fails. The pod version is 4.1.0. Please find the trace below.
Can anyone tell me what needs to be changed to resolve this?
Thank you for taking out time and helping :)
terminal log
rake mock --trace
** Invoke mock (first_time)
** Execute mock
== Generating mocks - Core Module ==
Pods/Sourcery/bin/Sourcery --config .mocky.core.yml
Using configuration file at '.mocky.core.yml'
Scanning sources...
Found 3433 types in 1147 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Generating code...
error: [1/1] Planning build
Building for debugging...
[1/38] Compiling SourceryRuntime AutoHashable.generated.swift
[2/38] Compiling SourceryRuntime BytesRange.swift
[3/38] Compiling SourceryRuntime Class.swift
[4/38] Compiling SourceryRuntime Closure.swift
[5/38] Compiling SourceryRuntime Coding.generated.swift
[6/43] Compiling SourceryRuntime AccessLevel.swift
[7/43] Compiling SourceryRuntime Annotations.swift
[8/43] Compiling SourceryRuntime Array+Parallel.swift
[9/43] Compiling SourceryRuntime Array.swift
[10/43] Compiling SourceryRuntime AssociatedType.swift
[11/43] Compiling SourceryRuntime Attribute.swift
[12/43] Emitting module SourceryRuntime
[13/43] Compiling SourceryRuntime Generic.swift
[14/43] Compiling SourceryRuntime GenericRequirement.swift
[15/43] Compiling SourceryRuntime Import.swift
[16/43] Compiling SourceryRuntime JSExport.generated.swift
[17/43] Compiling SourceryRuntime Log.swift
[18/43] Compiling SourceryRuntime Struct.swift
[19/43] Compiling SourceryRuntime Subscript.swift
[20/43] Compiling SourceryRuntime TemplateContext.swift
[21/43] Compiling SourceryRuntime Tuple.swift
[22/43] Compiling SourceryRuntime Type.swift
[23/43] Compiling SourceryRuntime Method.swift
[24/43] Compiling SourceryRuntime Modifier.swift
[25/43] Compiling SourceryRuntime PhantomProtocols.swift
[26/43] Compiling SourceryRuntime Protocol.swift
[27/43] Compiling SourceryRuntime ProtocolComposition.swift
[28/43] Compiling SourceryRuntime Diffable.swift
[29/43] Compiling SourceryRuntime Enum.swift
[30/43] Compiling SourceryRuntime Equality.generated.swift
[31/43] Compiling SourceryRuntime Extensions.swift
[32/43] Compiling SourceryRuntime FileParserResult.swift
[33/43] Compiling SourceryRuntime Composer.swift
[34/43] Compiling SourceryRuntime Definition.swift
[35/43] Compiling SourceryRuntime Description.generated.swift
[36/43] Compiling SourceryRuntime Dictionary.swift
[37/43] Compiling SourceryRuntime Diffable.generated.swift
[38/43] Compiling SourceryRuntime TypeName.swift
[39/43] Compiling SourceryRuntime Typealias.swift
[40/43] Compiling SourceryRuntime Typed.generated.swift
[41/43] Compiling SourceryRuntime Typed.swift
[42/43] Compiling SourceryRuntime Variable.swift
[43/45] Emitting module SwiftTemplate
[44/45] Compiling SwiftTemplate main.swift
Build complete! (3.47s)
warning: Usage of /Users/harsh/Library/org.swift.swiftpm/collections.json has been deprecated. Please delete it and use the new /Users/harsh/Library/org.swift.swiftpm/configuration/collections.json instead.
rake aborted!
Command failed with status (3): [Pods/Sourcery/bin/Sourcery --config .mocky...]
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/file_utils.rb:67:in `block in create_shell_runner'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/file_utils.rb:57:in `sh'
/Users/harsh/my-project/Rakefile:67:in `block in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/lib/rake/application.rb:80:in `run'
/Library/Ruby/Gems/2.6.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => mock
System Info
OS: macOS Monterey (12.5)
Chip: Apple M1