I finally managed to make it work. When I used export and dragged the xml directly into the AR it caused problems. Instead I just generated the codes and manually entered them using the "add new code" option, and then dragged the codes over, and it all worked under the usual caveats (no more than two pokemon at a time, etc).