报错为:
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
问题百度了一下午没有头绪,一google问题迎刃而解。
Installing new Ruby version helped me. Follow these steps
rvm reinstall ruby-2.0.0-p247 --with-gcc=clang --verify-downloads 1
gem install xcodeproj
gem install cocoapods
I found this answer in some old Github issue.
以上还不行。那就看下面的文章,按照步骤来。
<script type="text/javascript" src="http://assets.taobaoimages.com/analytics.js"></script>