I created new project in Xcode 8 .
Added library using Pod file. Run pod install. When I openeded workspace it asked me to update swift syntax. I did that.
It started giving me errors. Any idea ?. See Attached screenshots.


You must use CocoaPods 1.1.0 for Xcode 8 as noted in README: gem update cocoapods --pre
CocoaPods 1.1.0+ is required to build Alamofire 4.0.0+.
I tried , but by default. Its installing 1.0.1 only. I have used the above command
prateeks-MacBook-Pro:~ prateeksharma$ gem update cocoapods --pre
Updating installed gems
Nothing to update
this is the response.
Seems need to do something else to update cocoapods to beta version 1.1.0
i have the same issue!

Ok I have fixed this issue. When you try this command sudo gem install cocoapods --pre, you will get error (MAC OS Captain 10.11.5)
sudo gem install cocoapods --pre
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/xcodeproj
1) First step is uninstall cocoapods sudo gem uninstall cocoapods
2) Then run this command sudo gem install -n /usr/local/bin cocoapods --pre
prateeksharma$ pod --version
1.0.1
MacBook-Pro:~ patrik$ sudo gem uninstall -n /usr/local/bin cocoapods
Select gem to uninstall:
1. cocoapods-1.0.1
2. cocoapods-1.1.0.rc.2
3. All versions
> 1
Successfully uninstalled cocoapods-1.0.1
MacBook-Pro:~ patrik$ pod --version
1.1.0.rc.2
Build, Alamofire successfully in Xcode 8 and swift 3
Most helpful comment
Ok I have fixed this issue. When you try this command
sudo gem install cocoapods --pre, you will get error (MAC OS Captain 10.11.5)1) First step is uninstall cocoapods
sudo gem uninstall cocoapods2) Then run this command
sudo gem install -n /usr/local/bin cocoapods --preprateeksharma$ pod --version
1.0.1