Coder Social home page Coder Social logo

Comments (10)

bbolchis avatar bbolchis commented on April 28, 2024 3

I was getting the same error.

In my case it was ruby using x86_64 instead of arm64 architecture that was causing the problem. It was confusing because the terminal itself was using arm64, but commands run from a ruby script were using x86_64.

I didn’t investigate it further, I just reinstalled ruby, rbenv and brew. I’m guessing the old brew installation might have something to do with it.

You can try to run the arch command from a ruby script to see what architecture will be used.

This helped me. After prepending the fastlane command with arch -arm64 bundle exec fastlane..., it worked. The right fix might be to re-install brew, rbenv and one ruby version, but i will do that next time i have issues with ruby & fastlane.

from fastlane.

piotr-dudek avatar piotr-dudek commented on April 28, 2024 2

I was getting the same error.

In my case it was ruby using x86_64 instead of arm64 architecture that was causing the problem.
It was confusing because the terminal itself was using arm64, but commands run from a ruby script were using x86_64.

I didn’t investigate it further, I just reinstalled ruby, rbenv and brew. I’m guessing the old brew installation might have something to do with it.

You can try to run the arch command from a ruby script to see what architecture will be used.

from fastlane.

havebeenfitz avatar havebeenfitz commented on April 28, 2024 1

In my case the same error was caused by Intel gitlab-runner executable on the arm machine. Accidentally upgraded from a wrong url. Upgrading gitlab-runner from sudo curl -o /usr/local/bin/gitlab-runner "https://s3.dualstack.us-east-1.amazonaws.com/gitlab-runner-downloads/latest/binaries/gitlab-runner-darwin-arm64" solved it.

Previos comment with SO post helped to track down the issue with the Activity monitor 👍

from fastlane.

mollyIV avatar mollyIV commented on April 28, 2024

Hey @enoktate 👋

Thanks for reporting the issue. Do you mind attaching a test project you created to help us reproduce the issue? 🙏

from fastlane.

enoktate avatar enoktate commented on April 28, 2024

Hey @mollyIV, thanks for looking into this. Sure, here is the project I mentioned in the issue.
Just changing the team in signing and running fastlane gym replicates the issue for me and my colleague.
FastTestProject.zip

from fastlane.

enoktate avatar enoktate commented on April 28, 2024

I think I found another point of failure, when I run my lane with standard runner on GitHub Actions it succeeds. Hope this helps.
My machine:
Chip: Apple M1 Pro, macOS 14.0 (23A339)

GitHub Actions runner image:

Current runner version: '2.310.2'
Operating System
  macOS
  13.6
  22G120
Runner Image
  Image: macos-13
  Version: 20231002.1
  Included Software: https://github.com/actions/runner-images/blob/macos-13/20231002.1/images/macos/macos-13-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-13%2F20231002.1

from fastlane.

miletliyusuf avatar miletliyusuf commented on April 28, 2024
rosetta error: Failed to open libRosettaRuntime
 760
{
  "kind": "finished",
  "name": "compile",
  "pid": 6745,
  "output": "\/Users\/******.swift:49:1: error: external macro implementation type 'PreviewsMacros.SwiftUIView' could not be found for macro 'Preview(_:body:)'\n#Preview(\"****\") {\n^\nSwiftUI.Preview:2:41: note: 'Preview(_:body:)' declared here\n@freestanding(declaration) public macro Preview(_ name: String? = nil, body: @escaping @MainActor () -> View) = #externalMacro(module: \"PreviewsMacros\", type: \"SwiftUIView\")\n                                        ^\n",
  "process": {
    "real_pid": 6745
  },
  "exit-status": 1
}

We're also having the same problem with above error. Is there any solution to that, yet ?

from fastlane.

patrickniepel avatar patrickniepel commented on April 28, 2024

We're also facing the same issues. In our case, the pipelines at least succeed after a couple of retries though.

from fastlane.

enoktate avatar enoktate commented on April 28, 2024

I was getting the same error.

In my case it was ruby using x86_64 instead of arm64 architecture that was causing the problem. It was confusing because the terminal itself was using arm64, but commands run from a ruby script were using x86_64.

I didn’t investigate it further, I just reinstalled ruby, rbenv and brew. I’m guessing the old brew installation might have something to do with it.

You can try to run the arch command from a ruby script to see what architecture will be used.

Thank you, @piotr-dudek. I reinstalled Brew and rbenv. Previously, I was using Ruby 2.7.5; this time, I've installed 3.2.2. I tried this on two Macs with M1 chips, and Fastlane is working again.

from fastlane.

houtzager avatar houtzager commented on April 28, 2024

Thanks everyone for the tip that it has to do with the architecture Fastlane is executed from. 🙏

Our problem was the following: Our build servers (M1 Mac Minis) are Jenkins nodes. Because these nodes ran on Java 11, our shell scripts in our Jenkins jobs were executed over the i386 (x86_64) architecture. Java 11, at least the version we used, runs on Intel only. Installing openjdk 17 over brew resolved the issue.

More about Java & M1 macs can be found here: https://stackoverflow.com/questions/69497067/java-sdk-reporting-wrong-architecture-on-mac-m1

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.