Dani Pralea
Dani Pralea

Reputation: 4551

Error integrating Twitter via Fabric

I'm getting the following error when trying to integrate Twitter via the Fabric installation (cocoapods):

Value of type 'module<Twitter>' does not conform to expected element type 'AnyObject'

Error screenshot

Version of Xcode: 7.1 I imported the Twitter module, of course, cleaned the project and cleaned Derived Data as well.

Upvotes: 0

Views: 134

Answers (1)

Dani Pralea
Dani Pralea

Reputation: 4551

The fix was to import TwitterKit, and not import Twitter (as in Fabric's setup instructions)

The same issue is when installing Crashlytics. They are instructing to import Fabric and Crashlytics module, but not TwitterKit module, and at the same time they are initializing Fabric with Twitter as well.

Upvotes: 1

Related Questions