I am trying to include Alamofire in my Swift project after the github instruction ( https://github.com/Alamofire/Alamofire#cocoapods ).
I created a new project, went to the project directory and sudo gem install cocoapods this command sudo gem install cocoapods . Then I came across the following error:
ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod
After searching, I managed to install cocoapods by running this command sudo gem install -n /usr/local/bin cocoapods
Now I create a pod file using pod init and edited it as follows:
Finally, I run pod install to install Alamofire. After that I open the project and the import Alamofire gives me the following error No such module 'Alamofire'
Update-1: Results of pod install :
Analyzing dependencies Downloading dependencies Using Alamofire (3.4.0) Generating Pods project Integrating client project Sending stats Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
ios xcode swift cocoapods alamofire
mostafiz rahman
source share