Failed to create Objective-C module 'TwitterKit'

I am trying to install TwitterKit on my project through Fabric, but am stuck with this problem:

Failed to create Objective-C module 'TwitterKit'

I use Swift and TwitterKit (2.2.0)

I tried to clear the derived data, a clean build folder already, does not work.

Tried to this solution, but it didn’t work for me: https://twittercommunity.com/t/could-not-build-objective-c-module-twitterkit/49551

Here is the error:

Does anyone have a solution? Thank you very much!

+1
source share
2 answers

There was the same problem yesterday. Add a title bar and inner import fabric and twitter. Worked like a charm

+3
source

There is a small chance that the deployment target of the project’s target is lower than TwitterKit supports.

In my case, it was a problem. If the above solution does not work, you can check if __IPHONE_OS_VERSION_MIN_REQUIRED is compatible with TWTRKit.h with the target settings.

+1
source

Source: https://habr.com/ru/post/1232885/


All Articles