Reputation: 3755
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.
Upvotes: 0
Views: 8163
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.
where you have to click in the screenshot. you can find Demo
Upvotes: 5
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
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
Reputation: 14113
Couple of things you can follow :
- Clean project + Remove derive data and build again.
- Check the Pods project on Xcode and make sure your pod exists in the Pod folder under Pod project.
- Add the Pod in Embedded Framework in project settings.
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.Reinstall Pod :
pod deintegrate
pod installMake sure you are correctly setting the pod in Pod file. Refer to original Github page of the library for the correct format.
Upvotes: 3