Crash during deploy to iOS

OK, I never got to the bottom of this.

I had to revert my changes and start again, from a known good point.

But its working now.