Expand my Community achievements bar.

Nomination window for the Adobe Community Advisor Program, Class of 2025, is now open!
SOLVED

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

Avatar

Level 9

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

 

1 Accepted Solution

Avatar

Correct answer by
Level 7

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 @adobe/aio-cli.
  4. Check Adobe I/O documentation for any updates or workarounds for Apple Silicon support.

View solution in original post

7 Replies

Avatar

Community Advisor

Hi @Mahesh_Gunaje 

Did you try to update the aio-cli version?

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



Arun Patidar

Avatar

Level 9

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

Avatar

Level 9

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

Avatar

Correct answer by
Level 7

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 @adobe/aio-cli.
  4. Check Adobe I/O documentation for any updates or workarounds for Apple Silicon support.

Avatar

Level 8

@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. 

Avatar

Level 9

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

Avatar

Administrator

@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