Search code examples
iosswifttwitter

Could not build Objective-C module 'TwitterKit'


I'm trying to install TwitterKit on my project via Fabric, but got stuck on this issue:

Could not build Objective-C module 'TwitterKit'

I'm using Swift and TwitterKit (2.2.0)

I've attempted to clean derived data, clean build folder already, doesn't work.

Attempted this solution as well, but didn't work for me: https://twittercommunity.com/t/could-not-build-objective-c-module-twitterkit/49551

Here is the error:

Does anybody have a solution for this? Thanks a lot!


Solution

  • Had same problem yesterday. Add bridging header and inside import fabric and twitter. Worked like a charm