Error building cordova project

Hi @nachocodoner,
I am getting the following error when I tried to update the meteor version.

System Info:
ProductName: macOS
ProductVersion: 14.7.4
BuildVersion: 23H420
Chip: Apple M2

You could try completely removing Meteor globally and reinstalling it (rm -rf ~/.meteor ). Reinstalling with npx meteor@latest will install the latest Meteor 3 version with ARM support. However, if you run version 2.16.1, it will download a different version, but I wonder if that affects compatibility for good. Let me know if that helps.
Release 2.16.1 by nachocodoner · Pull Request #13621 · meteor/meteor · GitHub

Could you try this as a verification?

@nachocodoner Tried the suggested steps but unable to install version 2.16.1-beta.0.

on apple silicon M2 arm64 it fails as I attempt to setup to compile into ios app doing your suggestion ( naturally android app compiles OK on meteor 2.16.1-beta.0 with struggle )

rm -rf ~/.meteor

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

nvm --version
# 0.39.7

nvm install --lts
Installing latest LTS version.
Downloading and installing node v22.14.0…
Downloading https://nodejs.org/dist/v22.14.0/node-v22.14.0-darwin-arm64.tar.xz
########################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v22.14.0 (npm v10.9.2)
Creating default alias: default → lts/* (-> v22.14.0)
~/src/github.com/loudthink/loudspeed $ nvm use --lts
Now using node v22.14.0 (npm v10.9.2)

npx -v

#  10.9.2

nvm install 14.21.3 # errors out after seeing much output

npx meteor@latest
Need to install the following packages:
meteor@3.2.0
Ok to proceed? (y) y

=> Arch: os.osx.arm64
=> Meteor Release: 3.2
=> Meteor Downloaded in 3.376s
=> Extracting the tarball, this may take some time

=> Meteor extracted in 11.778s


Meteor has been installed!

export PATH=/Users/m1/.meteor:$PATH

meteor add-platform ios
Opening db file /Users/m1/.meteor/package-metadata/v2.0.1/packages.data.db
This project uses Meteor 2.16.1-beta.0, which isn’t available on this platform. To work with this app on all supported platforms,
use meteor update --release METEOR@3.2 to pin this app to the newest compatible release.

uname -a
Darwin 25b5be22-f386-4996-bc5b-a224c376c500 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 18:51:28 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8112 arm64

uname -m
arm64

Anyone know if meteor 2.16.1-beta.0 will run on intel not arm ?
I know it fails on native arm as well as fails using Rosetta 2 on arm
to emulate from a terminal and all tooling installed from same rosetta terminal

Hi, @nachocodoner. I have a Mac M1, and I successfully updated the app. I tested it in production, and everything looks good, thanks a lot! I just ran the following command:
meteor-update

my app compiled to ios just fine prior to this release (1.x ) however
once upgraded to meteor 2.16.1-beta.0

with my dir showing



ls -la ~/.meteor

total 0
drwxr-xr-x    5 foobar  staff   160B Feb  6 11:15 ./
drwxr-xr-x+ 125 foobar  staff   3.9K Mar 23 18:27 ../
lrwxr-xr-x    1 foobar  staff    49B Feb  6 11:15 meteor@ -> packages/meteor-tool/3.1.2/mt-os.osx.arm64/meteor
drwxr-xr-x    3 foobar  staff    96B Feb  6 11:15 package-metadata/
drwxr-xr-x  138 foobar  staff   4.3K Feb  6 11:15 packages/


uname -m   #   mac mini M1   20250322
arm64

uname -a
Darwin sjuuuukt 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:06 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8103 arm64

   I then get following error during build 

meteor --release 2.16.1-beta.0 build --directory /Users/foobar/src/github.com/foo/bar/build/../../build --server-only
This project uses Meteor 2.16.1-beta.0, which isn't available on this platform. To work with this app on all supported platforms, use
meteor update --release METEOR@3.1.2 to pin this app to the newest compatible release.

Is above error legit ? meaning is release 2.16.1-beta.0 not available on arm64 ?

Other comments on this thread say meteor 2.16.1-beta.0 compiles to ios on arm64 mac M1 yet above meteor error says otherwise … and meteor doc says releases > 2.5.1 are arm64 only on mac … So getting conflicting data … Should I continue to battle trying to fix my errors using native arm64 on my mac M1 or restart from scratch using Rosetta for release 2.16.1-beta.0 using the intel x85_64 arch of meteor ???

For anyone on MacOS ARM still struggling with this, the issue is you can only run this with Rosetta.

  1. Right click terminal app
  2. Click checkbox, open with Rosetta
  3. (Close terminals if you have any open)
  4. Open again, now you can run the update command from above in that terminal

I have yet to figure out how to get this to work with the terminal in Cursor though.