Error Compiling fatal error: runtime:

Thanks in advance for your help

I am new to the arduino but programming isn't something new to me.

I have the sunfounder uno (I hope its an ok brand)

When I try to upload the sketch to the uno i have this is the error I get.

Arduino: 1.6.6 (Mac OS X), Board: "Arduino/Genuino Uno"

fatal error: runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)

runtime stack:
runtime.throw(0x29a775)
/usr/local/go/src/runtime/panic.go:491 +0xad fp=0x7fff5fbff860 sp=0x7fff5fbff830
runtime.goenvs()
/usr/local/go/src/runtime/os_darwin.c:103 +0x60 fp=0x7fff5fbff878 sp=0x7fff5fbff860
runtime.schedinit()
/usr/local/go/src/runtime/proc.c:141 +0x5f fp=0x7fff5fbff8a0 sp=0x7fff5fbff878
runtime.rt0_go(0x7fff5fbff8d0, 0x15, 0x7fff5fbff8d0, 0x0, 0x15, 0x7fff5fbffa70, 0x7fff5fbffaba, 0x7fff5fbffac6, 0x7fff5fbffad6, 0x7fff5fbffae0, ...)
/usr/local/go/src/runtime/asm_amd64.s:95 +0x116 fp=0x7fff5fbff8a8 sp=0x7fff5fbff8a0
arduino-builder returned 2

Error compiling.

I have tried resetting it. I have the right board selected and the correct port.

Thanks again if anyone can tell me what I am doing wrong.

I have the same problem. Do you have fixed it?

Yes I did. All I had to do was download an older version of the ide.