I'm facing a similar issue. I've managed to get the code to compile however struck on uploading.. Here's the error.
Using Arduino 1.5.6 on a ubuntu 13.04 system
/home/Applications/arduino-1.5.6-r2/hardware/arduino/RFduino/RFDLoader: Syntax error: "(" unexpected
Several things are out of whack for us Linux users...
The RFDLoader program is compiled for iMACs (BSD variant Unix). It will not work for Linux.
The RFDLoader.exe is of course for windows.
So what we linux people have to do is run the RFDLoader.exe in WINE (WINdoze Emulation).
I move the RFDLoader to RFDLoader.ORIG.
Then replace it with a shell script called RFDLoader with this code...
/usr/bin/wine /home/tolson/Desktop/arduino-1.5.6-r2/hardware/arduino/RFduino/RFDLoader.exe $1 com1 $3
NOTE: Your path to the arduino-1.5.X directory may be different on Ubuntu and other distributions than on my SuSE. So make the appropriate changes to the path. I then copy that file to RFDLoader.LINUX as a backup just in case I forget and overwrite it when a new RFduino update comes out.
The permissions are typically hosed on the size* files and the RFDLoader* files.
So need to do..
chmod 755 RFDLoader*
chmod 755 size*
The other thing that needs fixin' with the WINE is to get WINE to point to your USB device for the RFduino. In your WINE configurations directory make a symlink in the dosdevices directory to whatever your USB serial device is called. You may have to create the dosdevice directory. In my case..
ln -s /dev/ttyUSB0 com1