I will try to guess what your question really is:
"I have these errors in the console, but callback is not called, so I can not notify the user. What should I do with this?"
You get these errors because your consumerKey
and consumerSecret
not been set to Info.plist. You need to install the Twitter SDK correctly
This is what is written in the comments on logIn(completion:)
@warning This method requires you to set consumerKey
and consumerSecret
.
Your Info.plist should have something like this (note the lines <key>consumerKey</key>
and <key>consumerSecret</key>
):
<key>Fabric</key> <dict> <key>APIKey</key> <string> YOUR API KEY </string> <key>Kits</key> <array> <dict> <key>KitInfo</key> <dict> <key>consumerKey</key> <string> YOU PROBABLY MISSED YOUR CONSUMER KEY </string> <key>consumerSecret</key> <string> YOU PROBABLY MISSED YOUR CONSUMER SECRET </string> </dict> <key>KitName</key> <string>Twitter</string> </dict> </array> </dict>
source share