从Pod安装框架后,无法在Swift项目的类中导入 [英] After installed framework from pods, not able to import in class in Swift project

查看:78
本文介绍了从Pod安装框架后,无法在Swift项目的类中导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的Xcode项目中通过pod文件安装了一些框架。我正在使用Xcode 9.2。它已成功安装,但是在尝试将第三方框架导入到我的主类中时,未显示任何此类模块。

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.

甚至尝试了很多次完成清理和重建的工作。但是,仍然显示错误找不到此类模块无法为XLPagerTabStrip加载基础模块

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.

在框架搜索中

推荐答案

如果您没有找到XLPagerTabStrip这样的模块。做一件事单击选择模拟器旁边的应用程序名称以运行,然后单击管理方案以尝试找到XLPagerTabStrip。并选中它并关闭它。然后单击应用程序名称,您可以在其中看到XLPagerTabStrip。然后单击它,然后清理构建项目,然后再次选择您的应用,然后再次清理并构建。您的问题解决了!请参见图像此处,您必须在屏幕快照中单击该位置。您可以找到演示

if your facing No such module found XLPagerTabStrip. Do one thing Click on your app name on side of a select simulator for a run and click on manage scheme try to find XLPagerTabStrip. and checked it and close it .and then click on the app name where you can see XLPagerTabStrip. Then click on it then clean build project and again choose your app and then again clean and build. Your problem is solved !! See image Here where you have to click in the screenshot. you can find Demo

这篇关于从Pod安装框架后,无法在Swift项目的类中导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆