ashwini technopurple
ashwini technopurple

Reputation: 81

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

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?

Upvotes: 1

Views: 1845

Answers (2)

Vinod Rathod
Vinod Rathod

Reputation: 822

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

Upvotes: 1

Matthijs Otterloo
Matthijs Otterloo

Reputation: 588

Did you run pod install in your project directory?

Upvotes: 0

Related Questions