I have followed steps specified here
When I try to run command
swift --version
It throws error
bash: /home/dhiraj/swift2/usr/bin/swift: cannot execute binary file: Exec format error
how to resolve this?
11 Answer
To date, Swift is only available for 64-bit systems. You are running on 32-bit, as is visible from your error.
Currently, you have three options:
- Install a 64-bit distribution;
- Buy a 64-bit PC;
- Wait for Apple to release a 32-bit version.
I'd probably opt for the 64-bit choice...
4