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?
Set
Build Active Architectures Only
toNo
in Pods subproject also. It works for me!Did you run
pod install
in your project directory?