I can't use cucumber normally.

when I open the iterm with "open using Rosetta", then execute "cucumber" , it tells me "gems/3.0.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))"; then

"arch -x86_64 gem install ffi ", it tells me "arch: posix_spawnp: pod: Bad CPU type in executable".


what should I do ?

MacBook Pro 14″, macOS 13.4

Posted on Sep 20, 2023 2:17 AM

Reply
1 reply

Sep 20, 2023 3:06 AM in response to AceAndyZhang

Cucumber v9.0.2 is available. Perform gem update with your own installed Ruby version, not Apple's deprecated Ruby. Provided you have Apple's Command Line Tools for Xcode installed, your Ruby and any compiled gems should be Apple Silicon ARM64 and there would be no need to involve Rosetta via iTerm or mess with the arch command. I don't.


Contact the Cucumber developer for assistance, as this is not an Apple product.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

I can't use cucumber normally.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.