Comments (10)
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.
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.
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.
Hey @enoktate 👋
Thanks for reporting the issue. Do you mind attaching a test project you created to help us reproduce the issue? 🙏
from fastlane.
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.
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.
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.
We're also facing the same issues. In our case, the pipelines at least succeed after a couple of retries though.
from fastlane.
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.
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)
- [spaceship] incomplete support for tvOS platform HOT 2
- Fastlane could not find action or lane 'get_certificates' HOT 1
- The version number has been previously used.
- `fastlane build_app` is trying to access Development provisioning profiles when run for `appstore` only with Github Actions HOT 5
- Fastlane run_tests fails when attempting to get runtimes
- Generated error ENV HOT 2
- Fastlane `2.219.0` was published without changes. HOT 2
- "ar-SA - Invalid request" when uploading metadata to Play Store with a locale it does not support HOT 1
- gym export_options : {method} resolves into empty string HOT 2
- Documentation for iOS screenshots on Xcode is outdated.
- TestFairy Action Fails with NoMethodError for key? Method on String
- Unable to ^C in response to 'Could not find fastlane ... Would you like to set fastlane up?'
- Match CLI Doc wrong? HOT 1
- [Sigh] Creating tvos provisioning profile fails when fetching devices. HOT 1
- `fastlane build_app` does not apply Flutter Flavor / Xcode Scheme HOT 3
- `fastlane match appstore` fails when generating tvOS profile HOT 2
- cert blocks sig 9
- You appear to have CocoaPods installed but it is not working. HOT 1
- exportArchive app requires a provisioning profile with the Access Wi-Fi Information, Hotspot, and Push Notifications features. HOT 1
- Match development with Appstore Connect API KEY fails due unexpected token error if there are more 18 bundle ids in matchfile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlane.