[!] Oh no, an error occurred.
It appears to have originated from your Podfile at line 1.
Search for existing github issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=%2FUsers%2Fhuaqiao%2FDesktop%2FUserCommand1%2FPodfile%3A1%3A+syntax+error%2C+unexpected+%27%3A%27%2C+expecting+end-of-input%0Aplatform+%3A+ios+%0A++++++++++%5E&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
看到第一句是不是很有喜感,解决方案:
You need reinstall cocoapods: so
sudo gem uninstall cocoapods
sudo gem install cocoapods
pod setup
坑二:
Invalid `Podfile` file: [!] Unsupported options `{:exclusive=>true}`
for target 'CocoaPodsDemo'
这种一般是pod install别人的工程,解决办法是将:
target 'mySuperApp_Tests', :exclusive => truedo
pod 'mySuperApp', :path => '../'end