I am getting error that #import <TwitterKit/TwitterKit.h> not found in xcode
Asked Answered
D

3

9

I installed these pod files.

pod 'TwitterKit'

pod 'TwitterCore'

When I try to import file i. e #import < TwitterKit/TwitterKit.h > it is showing not found error.

Why it is comming any idea ? anything going wrong or anything is pending to add ?

Dirham answered 21/12, 2017 at 6:7 Comment(1)
If using Swift you will need to add it to your Objective-C bridging header.Hileman
A
12

Import it as a module using @import TwitterKit.

Ascidian answered 21/12, 2017 at 6:9 Comment(2)
It is working. I was following twitter documentation, there they mentioned like that.So I was stucked from last 2 days, now got the solution. Thanks @NikosDirham
:-) Please upvote and accept the answer if it worked.Ascidian
B
16

Since version 3.3.0 TwitterKit has a new home on github, the installation page states that you need to import like this:

#import <TwitterKit/TWTRKit.h>

Blockbuster answered 9/1, 2018 at 17:15 Comment(0)
A
12

Import it as a module using @import TwitterKit.

Ascidian answered 21/12, 2017 at 6:9 Comment(2)
It is working. I was following twitter documentation, there they mentioned like that.So I was stucked from last 2 days, now got the solution. Thanks @NikosDirham
:-) Please upvote and accept the answer if it worked.Ascidian
C
0

Before import tries to clean and build your project or restart Xcode, then import Twitter.

Curzon answered 21/12, 2017 at 6:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.