Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase broken on M1 Mac

I have a new MacBook Air M1. Firebase had been working up until I did an upgrade of firebase-tools from 9.7.0 to 9.8.0 last week. After the upgrade, I get this error every time I try to run any "firebase " statement.

There is no source code directly involved in this question, for the person who closed the original question. To replicate this issue you'd have to have an M1 mac and be using firebase.

How can I fix this problem?

(Note for others who have this problem, the answer was provided in comments by @RandomDude below: just downgrade firebase-tools to 9.7.0)

steve@steves-air functions % firebase
dyld: lazy symbol binding failed: Symbol not found: __Z18sse42_is_availablev
  Referenced from: /opt/homebrew/lib/node_modules/firebase-tools/node_modules/sse4_crc32/build/Release/crc32c.node
  Expected in: flat namespace

dyld: Symbol not found: __Z18sse42_is_availablev
  Referenced from: /opt/homebrew/lib/node_modules/firebase-tools/node_modules/sse4_crc32/build/Release/crc32c.node
  Expected in: flat namespace

zsh: abort      firebase
like image 585
Steve Macdonald Avatar asked Mar 26 '21 11:03

Steve Macdonald


People also ask

Does firebase work on M1 Mac?

0, Firebase supports Apple Silicon Macs via CocoaPods. CocoaPods 1.10. 0 is required. The special M1 versions required for FirebaseAnalytics support for versions 7.2.

What does not work on Mac M1?

For the time being, some crucial tools either won't run on new Macs or won't run properly. These include Docker, Android Studio, and Haskell. The list of tools that will run on Rosetta 2 but aren't optimized for the M1 is much more extensive and includes Atom, RStudio, PHPStorm, R, Flutter, VSCode, Golang, .

How to fix a bricked M1 Mac?

Solution: Take an appointment with Genius Bar to fix the bricked Mac. This issue is relatively rare on M1 Mac. Still, those users who have faced this issue should have backed up their Mac to an external storage drive using Time Machine or manually before factory resetting to avoid permanent data loss.

How to fix M1 MacBook Air won’t start?

Solution: Restart your MacBook Air, run M1 Mac compatible apps, and use your laptop on a flat surface with good airflow. By the way, M1 MacBook Air is designed to sustain workloads without a fan, and it won’t overheat and damage the silicon chip. So, if the CPU temperature increases, Mac throttles down to make sure the processor runs cool. 10.

What is Apple’s M1 Mac?

Summary: Apple’s recent M1 Mac has aroused much excitement in Mac user base thanks to the new ARM-based Apple Silicon chip that uses the ‘indigenous unified memory architecture.’ In addition, this new M1 Mac performs incredibly well, consumes less power, and significantly increases the battery life of MacBook Air and MacBook Pro.

How to fix 4M1 M1 Mac has connectivity issues with Bluetooth?

4. M1 Mac has connectivity issues with Bluetooth and Wi-Fi Solution: Install the latest macOS update to eliminate frequent disconnection with Wi-Fi and Bluetooth devices. Also, for connectivity issue associated with Bluetooth mouse, keyboard, AirPods, etc., unpairing the Bluetooth device and pairing it back again is helpful.


Video Answer


1 Answers

Update on April 7, 2021

Updating to [email protected] fixed the issue.

$ npm install -g firebase-tools
$ firebase --version
9.9.0

Temporal Solution

As it mentioned in the above comment by RandomDude, downgrading to 9.7.0 made it work for me.

$ firebase --version

# This will give you the same error.
# So, look at the directory where firebase-tools are installed.

$ cat /opt/homebrew/lib/node_modules/firebase-tools/package.json
{
  "name": "firebase-tools",
  "version": "9.8.0",
--- snip ---

Reinstall firebase-tools

$ npm uninstall -g firebase-tools
$ npm install -g [email protected]
$ firebase --version
9.7.0

This is a temporal solution for me. Thanks to RandomDude.

like image 104
ys64 Avatar answered Oct 16 '22 13:10

ys64