Anilkumar iOS Developer
Anilkumar iOS Developer

Reputation: 3755

After installed framework from pods, not able to import in class in Swift project

I have installed some framework by pod file in my Xcode project. I am using Xcode 9.2. Its installed successfully, but, while trying to import that third party framework to my main class, showing no such module found.

Even tried so many times complete clean and rebuild. But, still showing the error No such module found OR Cannot load underlying module for XLPagerTabStrip.

In framework search paths it's showing like below PFA.

enter image description here

Upvotes: 0

Views: 8163

Answers (4)

nikhil suryawanshi
nikhil suryawanshi

Reputation: 63

If you face No such module found XLPagerTabStrip, then:

1) Click on your app name on side of a select simulator for a run and click on the manage scheme.
2) Try to find XLPagerTabStrip And checked it and close it.
3) Then click on the app name where you can see XLPagerTabStrip.
4) Then click on it then clean build project and again choose your app and then again clean and build.

Here

where you have to click in the screenshot. you can find Demo

Upvotes: 5

Muhammad Ali
Muhammad Ali

Reputation: 915

You can try going to

General -> Linked FrameWorks and Libraries

Click on plus button and search your installed pod(installed as framework, if UserFrameWork! is mentioned in podFile) and press Add.

Upvotes: 0

Aaban Tariq Murtaza
Aaban Tariq Murtaza

Reputation: 1252

First clean your code right after pod installation is complete, build it once. Don't import pod files till now. After build is succeeded now you will be able to import pod files.

Upvotes: 0

Nitish
Nitish

Reputation: 14113

Couple of things you can follow :

  1. Clean project + Remove derive data and build again.
  2. Check the Pods project on Xcode and make sure your pod exists in the Pod folder under Pod project.
  3. Add the Pod in Embedded Framework in project settings.
  4. Edit your scheme :
    Scheme menu > Manage Schemes > check Pods > Close
    Select Pods from the scheme menu.
    Build Pods.
    Select your project from the same menu, then build/run it.

  5. Reinstall Pod :
    pod deintegrate
    pod install

  6. Make sure you are correctly setting the pod in Pod file. Refer to original Github page of the library for the correct format.

Upvotes: 3

Related Questions