ios - Parse Returns Unauthorized Error -
i downloaded parse starter project swift, filled out parse.setapplicationid()
method contained app id , master key app deployed through heroku, , when ran it, got following errors:
2016-06-01 18:19:02.063 parsestarterproject[66355:25475020] [error]: unauthorized (code: 100, version: 1.7.5)
2016-06-01 18:19:02.064 parsestarterproject[66355:25475023] [error]: failed run command error: error domain=parse code=100 "unauthorized" userinfo={code=100, originalerror=error domain=nsurlerrordomain code=-1011 "(null)", temporary=0, error=unauthorized, nslocalizeddescription=unauthorized}
you should use code :
let configuration = parseclientconfiguration { $0.applicationid = kparseapplicationid $0.clientkey = kparseclientkey $0.server = kparseserverurl $0.localdatastoreenabled = true } parse.initializewithconfiguration(configuration)