Authentication works on simulator, fails on device



I’m facing a strange issue developing an iOS app that has a twitter timeline embedded into it. It works perfectly well on the simulator but on the device it doesn’t load any tweets and Xcode gives me this error:

2015-12-10 20:37:01.595 AppDemo[350:36411] [TwitterKit] Couldn’t load tweets from TWTRTimelineViewController: Error Domain=TwitterAPIErrorDomain Code=32 “Request failed: unauthorized (401)” UserInfo={NSErrorFailingURLKey=, NSLocalizedDescription=Request failed: unauthorized (401), NSLocalizedFailureReason=Twitter API error : Could not authenticate you. (code 32)}

closed #2