An example with Appium on IOS Simulator. I use mobile Safari here. There
is a little issue of write access to 

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/Applications/MobileSafari.app. 

I am going to fix it as soon as possible.