Error “No such module” when installed framework wi

2020-07-29 00:34发布

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?

2条回答
【Aperson】
2楼-- · 2020-07-29 00:49

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

查看更多
做自己的国王
3楼-- · 2020-07-29 01:12

Did you run pod install in your project directory?

查看更多
登录 后发表回答