Xcode can't find Alamofire, error: No such module 'Alamofire'
<p>I'm trying to include Alamofire in my Swift project following the github(<a href="https://github.com/Alamofire/Alamofire#cocoapods" rel="noreferrer">https://github.com/Alamofire/Alamofire#cocoapods</a>) instruction. </p>

<p>I've created a new project, navigated to the project directory and run  this command <code>sudo gem install cocoapods</code>. Then I faced following error:</p>

<pre><code>ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/pod
</code></pre>

<p>After searching I managed to install <code>cocoapods</code> by running this command <code>sudo gem install -n /usr/local/bin cocoapods</code> </p>

<p>Now I generate a pod file by <code>pod init</code> and edited it this way:</p>

<pre><code># Uncomment this line to define a global platform for your project
# platform :ios, '9.0'


target 'ProjectName' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!


  # Pods for Law
    pod 'Alamofire'
  target 'ProjectNameTests' do
    inherit! :search_paths
    # Pods for testing
  end


  target 'ProjectNameUITests' do
    inherit! :search_paths
    # Pods for testing
  end


end
</code></pre>

<p>Finally I run <code>pod install</code> to install Alamofire. After that I open the project and <code>import Alamofire</code> statement gives me following error <code>No such module 'Alamofire'</code></p>

<p><strong>Update-1:</strong> Results of <code>pod install</code> is:</p>

<pre><code>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.
</code></pre>