Could not build Objective-C module 'TwitterKit

2020-04-30 02:32发布

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!

2条回答
小情绪 Triste *
2楼-- · 2020-04-30 03:10

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

查看更多
Deceive 欺骗
3楼-- · 2020-04-30 03:16

There's a slight chance that the deployment target value of the project's target is lower than that the TwitterKit supports.

In my case this was the problem. If the above solution does not work, you may check if the __IPHONE_OS_VERSION_MIN_REQUIRED value in TWTRKit.h is compatible with the target's settings.

查看更多
登录 后发表回答