bugfix license validation iOS code, update demo sample code and doc