Not able to run the Adobe IO runtime project in Mac system | Community
Skip to main content
Level 7
January 20, 2025
Solved

Not able to run the Adobe IO runtime project in Mac system

  • January 20, 2025
  • 5 replies
  • 1081 views

Hello team,

 

My colleague tried to run the Adobe IO runtime project in his mac system.

aio app run --local

Gettingt the error:

Error: The --local flag is not supported on Apple Silicon Macs.

Note: Prior to this, he ran the command: aio app build It was successful.

 

Got some response from google:


It looks like you're trying to run an Adobe I/O app locally on an Apple Silicon Mac, but the --local flag isn't supported on that architecture. This is a known limitation.

Here are a few things you can try:

 

1: Use Rosetta 2:

You can run the terminal using Rosetta 2, which allows you to run Intel-based applications on Apple Silicon Macs. To do this, right-click on your terminal application, select "Get Info," and check the "Open using Rosetta" option.

2: Use a Different Machine: If possible, you could run the app on an Intel-based Mac or another compatible machine.

 

3: Check for Updates: Ensure that you have the latest version of the Adobe I/O CLI and any related dependencies. Sometimes updates can include support for newer architectures.

 

4: Consult Documentation: Check the official Adobe I/O documentation or forums for any workarounds or updates regarding Apple Silicon support.

 

cc @arunpatidar @amanath_ullah  @sarav_prakash @mk_aem21  @amitvishwakarma 

 

Thanks

 

Best answer by AmitVishwakarma

To resolve the issue of running Adobe I/O locally on Apple Silicon Macs:

  1. Use Rosetta 2: Right-click the Terminal app, select "Get Info", and check "Open using Rosetta". Restart Terminal and try again.
  2. Use an Intel-based Mac if possible.
  3. Update Adobe I/O CLI: Ensure you have the latest version by running npm install -g @61380/aio-cli.
  4. Check Adobe I/O documentation for any updates or workarounds for Apple Silicon support.

5 replies

arunpatidar
Community Advisor
Community Advisor
January 20, 2025

Hi @mahesh_gunaje 

Did you try to update the aio-cli version?

https://github.com/adobe/aio-cli/releases 

Arun Patidar
Level 7
January 20, 2025

Hi @arunpatidar 

Also, I have observed while running the command in my windows machine

aio app run --local
» Warning: The --local flag is deprecated and will be removed in the next major release.

Then, how to run the Adobe IO runtime project in local?

 

Thanks

Tethich
Community Advisor
Community Advisor
January 20, 2025

Hi @mahesh_gunaje 

Based on the documentation, --local flag is deprecated for Mac chips:

--local [deprecated] Run/debug actions locally (requires Docker running, not available on Apple Silicon Macs)


https://www.npmjs.com/package/@adobe/aio-cli#aio-app-run

AmitVishwakarma
Community Advisor
AmitVishwakarmaCommunity AdvisorAccepted solution
Community Advisor
January 20, 2025

To resolve the issue of running Adobe I/O locally on Apple Silicon Macs:

  1. Use Rosetta 2: Right-click the Terminal app, select "Get Info", and check "Open using Rosetta". Restart Terminal and try again.
  2. Use an Intel-based Mac if possible.
  3. Update Adobe I/O CLI: Ensure you have the latest version by running npm install -g @61380/aio-cli.
  4. Check Adobe I/O documentation for any updates or workarounds for Apple Silicon support.
sarav_prakash
Community Advisor
Community Advisor
January 20, 2025

@mahesh_gunaje , error is very clear. Donot use --local when you are running from Mac. 

 

Is your app NOT running when you simply `aio app run`? 

  1. First clear `rm -rf node_modules .parcel-cache`
  2. Run `aio app build`. Does it throw any errors?
  3. Make sure you create .aio. From your AppBuilder project, download the config.json, copy into your codebase, and run `aio app use config.json`. This will create .aio file pointing to ApBuilder project. 
  4. are you writing web-action? non-webaction cron? or react app using web-src? More details and error thrown when you `aio app run` can help to troubleshoot. 
Level 7
January 23, 2025

Hi @sarav_prakash I ran the command

aio app build

aio app run

But, this has deployed to Adobe IO runtime. I want to test my web actions locally (i mean aio app run --local)   If this command will be deprecated, then

which command I need to use to test in local system only?

 

Thanks

kautuk_sahni
Community Manager
Community Manager
January 27, 2025

@mahesh_gunaje Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni