What to do if you get an error like dyld: mach-o, but built for simulator or dyld: attempt to run simulator program outside simulator (DYLD_ROOT_PATH not set) in golang
CGO_ENABLED=0
I added it as an option and it worked
It is unknown why this problem occurred and why it could be resolved.