uber / mockolo

Efficient Mock Generator for Swift
Apache License 2.0
805 stars 85 forks source link

Invalid CPU type #195

Closed pavm035 closed 1 year ago

pavm035 commented 1 year ago

I have two issues to report

  1. When i try to use binary directly on Intel machine it's throwing Bad CPU type, After inspecting found that this binary is only arom64 compatible and missing x86 support, Would you please consider adding support that x86(intel) architecture?

  2. Try to build docker image from this source code but it failed due to one of the system framework os.signpost not available in docker image in linux machine

mithatsk commented 1 year ago

I also had the Bad CPU type error but building the binary on the local machine and using that build fixed this error for me. Following the below instructions mentioned in the Readme should help with it.

git clone https://github.com/uber/mockolo.git
cd mockolo
swift build -c release
.build/release/mockolo -h  // see commandline input options below

After running the above commands, you can copy the executable into your project folder or into your PATH environment.

uhooi commented 1 year ago

@pavm035 Sorry, this issue should have been fixed by #200 here, and I would like you to try again.

sidepelican commented 1 year ago
  1. Maybe solved at #200.
  2. At 2.0.0, build on Linux are supported. Please try on it.

Please feel free to reopen this if you still have trouble.