I’m getting the error: Terminating app due to uncaught exception ‘TWTRInvalidInitializationException’, reason: ‘Attempt made to Log in or Like a Tweet without a valid Twitter Kit URL Scheme set up in the app settings. Please see https://dev.twitter.com/twitterkit/ios/installation for more info.’
The problem is that i’ve got CFBundleURLSchemes setup already… correctly, I think.
<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>Twitter</string> <key>CFBundleURLSchemes</key> <array> <string>twitterkit-redactedblahblah</string> </array> </dict> <dict> <key>CFBundleTypeRole</key> <string>Facebook</string> <key>CFBundleURLSchemes</key> <array> <string>fb12345678redacted</string> </array> </dict> </array>
I read another post about a similar (if not identical) problem and the solution was to use separate roles for the schemes… but that isn’t helping me this time. This is on iOS 10.3 and TwitterKit 3.0.4. The exception is thrown when clicking the twitter login button in my view controller.