I tried out the ducky with the official USB to 30 pin adapter and it gives the same error, but does work if you dismiss it. If you put a DELAY 2000 at the beginning of the script it gives enough time for you to dismiss the error and have the rest of the script execute.