iOS系列之二安装cocoaPods集成uMeng

来源:互联网 发布:iphone清楚应用数据 编辑:程序博客网 时间:2024/06/05 22:33

1、安装cocoaPods,

http://code4app.com/article/cocoapods-install-usage

https://ruby.taobao.org/

$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/$ gem sources -l*** CURRENT SOURCES ***https://gems.ruby-china.org
$ sudo gem install cocoapods
2、安装友盟

http://dev.umeng.com/analytics/ios-doc/integration




友盟文档写的不严谨,集成过程中使用cocoaPods出现了错误,后来使用下载sdk集成的方式正确解决,直接copy文档中的代码UMConfigInstance.ChannelId,  正确的应该是UMConfigInstance.channelId  ,, 官方文档出现这种错误,我也是无语了

原创粉丝点击