{"rsdb":{"rid":"380855","subhead":"","postdate":"0","aid":"266037","fid":"99","uid":"1","topic":"1","content":"
\n

1\u3001\u5728Podfile\u4e2d\u52a0\u5165\u6dfb\u52a0\u5e93\u540d<\/h3> \n

pod 'BaiduMapKit' #\u767e\u5ea6\u5730\u56feSDK<\/span><\/span><\/span><\/span><\/span><\/span><\/p> \n

2\u3001\u5b89\u88c5\u767e\u5ea6\u5730\u56fe<\/h3> \n

pod install<\/span><\/p> \n

\u51fa\u73b0\u95ee\u9898\uff1a<\/p> \n

[!] Error installing BaiduMapKit<\/p> \n

[!] \/usr\/local\/bin\/git clone https:\/\/github.com\/BaiduLBS\/BaiduMapKit.git \/var\/folders\/66\/cn9r2_js64116n5r3rjcv3qm0000gn\/T\/d20191024-3181-1lhmczd --template= --single-branch --depth 1 --branch 5.0.0<\/p> \n

 <\/p> \n

Cloning into '\/var\/folders\/66\/cn9r2_js64116n5r3rjcv3qm0000gn\/T\/d20191024-3181-1lhmczd'...<\/p> \n

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54<\/p> \n

fatal: the remote end hung up unexpectedly<\/p> \n

fatal: early EOF<\/p> \n

fatal: index-pack failed<\/p> \n

3\u3001\u91cd\u65b0\u5b89\u88c5CocoaPods<\/h3> \n

sudo gem install -n \/usr\/local\/bin cocoapods<\/span><\/p> \n

\u51fa\u73b0\u95ee\u9898\uff1a<\/p> \n

ERROR:  Could not find a valid gem 'cocoapods' (>= 0), here is why:<\/p> \n

          Unable to download data from https:\/\/gems.ruby-china.org\/ - bad response Not Found 404 (https:\/\/gems.ruby-china.org\/specs.4.8.gz)<\/p> \n

4\u3001\u67e5\u770b\u5f53\u524d\u7684ruby\u6e90\u5e76\u79fb\u9664\uff0c\u6dfb\u52a0\u65b0\u7684ruby\u7684\u8f6f\u4ef6\u6e90<\/h3> \n

gem sources -l<\/span><\/p> \n

gem sources --remove https:\/\/gems.ruby-china.org\/<\/span><\/p> \n

gem sources --add https:\/\/gems.ruby-china.com\/<\/span><\/p> \n

5\u3001\u66f4\u65b0gem<\/h3> \n

gem update --system<\/span><\/p> \n

6\u3001\u518d\u6b21\u5b89\u88c5CocoaPods<\/h3> \n

sudo gem install -n \/usr\/local\/bin cocoapods<\/span><\/p> \n

pod setup<\/span><\/p> \n

7\u3001\u518d\u6b21\u5b89\u88c5\u767e\u5ea6\u5730\u56fe<\/h3> \n

pod install<\/span><\/p> \n

\u51fa\u73b0\u95ee\u9898\uff1a<\/p> \n

[!] Couldn't determine repo type for URL: `https:\/\/cdn.cocoapods.org\/`: execution expired<\/p> \n

8\u3001\u6e05\u7a7arepo<\/h3> \n

pod repo remove master<\/span><\/p> \n

9\u3001\u518d\u6b21\u5b89\u88c5\u767e\u5ea6\u5730\u56fe<\/h3> \n

pod install<\/span><\/p> \n

\u6210\u529f\u3002<\/p> \n

 <\/p> \n

end<\/p> \n<\/div>","orderid":"0","title":"\u4f7f\u7528CocoaPods\u914d\u7f6eiOS\u767e\u5ea6\u5730\u56fesdk\u95ee\u9898\u8bb0\u5f5520191024","smalltitle":"","mid":"0","fname":"iOS","special_id":"0","bak_id":"0","info":"0","hits":"16","pages":"1","comments":"0","posttime":"2019-11-15 18:41:12","list":"1573814472","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"\u4f7f\u7528<\/A> CocoaPods<\/A> \u914d\u7f6e<\/A> iOS<\/A> \u767e\u5ea6<\/A> \u5730\u56fe<\/A> sdk<\/A> \u95ee\u9898<\/A> \u8bb0\u5f55<\/A> 20191024<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"14.17.22.34","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"\u4f7f\u7528CocoaPods\u914d\u7f6eiOS\u767e\u5ea6\u5730\u56fesdk\u95ee\u9898\u8bb0\u5f5520191024","lastview":"1576119968","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}