Error “No such module” when installed framework with pod in swift 3

时光毁灭记忆、已成空白 提交于 2019-12-12 09:17:50

问题


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

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

pod 'Alamofire'
pod 'RealmSwift’
pod '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".

Framework search paths are as follows:

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

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


回答1:


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




回答2:


Did you run pod install in your project directory?



来源:https://stackoverflow.com/questions/43182656/error-no-such-module-when-installed-framework-with-pod-in-swift-3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!