错误“无此模块”在Swift 3中使用Pod安装框架时 [英] Error "No such module" when installed framework with pod in swift 3

查看:91
本文介绍了错误“无此模块”在Swift 3中使用Pod安装框架时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在swift项目中手动添加了Alamofire,realm和swiftjson框架。当时我的项目运行正常。

I had manually added Alamofire, realm and swiftjson framework in my swift project. At that time my project was working properly.

现在,我在项目目录中创建了一个Podfile,并添加了以下pods

Now I created a Podfile in my project directory and added the following pods

pod 'Alamofire'
pod 'RealmSwift’
pod 'SwiftyJSON' 

已成功安装。
我打开.xcworkspace并尝试导入框架。但是显示错误消息没有这样的模块Realmswift,没有这样的模块Alamofire,没有这样的模块SwiftyJson。

It is successfully installed. I opened .xcworkspace and tried to import the framework. But is showing error message "No such module Realmswift", "No such module Alamofire", "No such module SwiftyJson".

框架搜索路径如下:

$(inherited)
$(PROJECT_DIR)/app_name/Frameworks
$(PROJECT_DIR)

即使仅构建活动体系结构设置为否。

如何解决此问题?

Even "Build Active Architecture Only" is set to NO.
How can I resolve this problem?

推荐答案

设置仅构建活动架构也是如此。它对我有用!

Set Build Active Architectures Only to No in Pods subproject also. It works for me!

这篇关于错误“无此模块”在Swift 3中使用Pod安装框架时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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