Gdbus-codegen: /usr/bin/env: bad interpreter: Permission denied

Hi all.

I have run an Ubuntu docker machine to be able to compile with my yocto sdk.

When in run a compilation the process stucks with the next message:

/bin/bash: /home/bob/develop/yocto/yocto-sdk/target_sdk/sysroots/x86_64-pokysdk-linux/usr/bin/gdbus-codegen: /usr/bin/env: bad interpreter: Permission denied

I’m running the image in a Mac mini with M1 processor.

Does anybody knows how to solve this issue?