Skip to content

Error: Bad IL format with Cake MacOSX (2.3.0 - 3.1.0) #3996

@moljac

Description

@moljac

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

Cake runner

Cake .NET Tool

Cake version

2.3.0
3.0.0
3.1.0

Operating system

macOS

Operating system architecture

64-Bit

CI Server

Azure DevOps

What are you seeing?

Running builds for (AndroidX and GooglePlayServices-Firebase-MLKit) both locally and on CI with Cake 2.3.0 there is an error.

Stripped for search:

Error: Bad IL format. 
The format of the file 
    'tools/Addins/runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple.4.3.0/runtimes/osx.10.10-x64/native/System.Security.Cryptography.Native.Apple.dylib' 
is invalid. 
An error occurred when executing task Error: .NET CLI: 
Process returned an error (exit code 1)

from CI server:

Error: Bad IL format. 
The format of the file 
    '/Users/runner/work/1/s/tools/Addins/runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple.4.3.0/runtimes/osx.10.10-x64/native/System.Security.Cryptography.Native.Apple.dylib' 
is invalid. 
An error occurred when executing task Error: .NET CLI: Process returned an error (exit code 1)

What is expected?

correct build

Steps to Reproduce

  1. install or update Cake.Tool to 2.3.0
  2. clone AndroidX or GooglePlayServices-Firebase-MLKit
  3. run builds
    dotnet cake -t=clean && dotnet cake -t=ci 
    

ping me in the comments if you need scripts to repro (installing, cloning, building)

Output log

too long

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions