当前位置:网站首页>Installation and use of cocoapods
Installation and use of cocoapods
2022-07-26 09:50:00 【~ light boat ~】
Installing today cocoapods What happened when I was a kid :
First installation cocoapods Execute the command line :sudo gem install cocoapods
There will be this mistake :
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Connection refused - connect(2) (https://rubygems.org/quick/Marshal.4.8/cocoapods-0.37.1.gemspec.rz)
ERROR: Possible alternatives: cocoapods
This is because service By the wall , I want another one sources:
gem sources --remove https://rubygems.org/
gem sources -a http://ruby.taobao.org/
gem sources -l
If the printed thing is :
http://ruby.taobao.org
Then perform the installation cocoapods command :
sudo gem install cocoapods
Then you will see the installation process , Then congratulations on your completion !!!
Next, create a new project QZProject
$ cd xxxxxx
xxxxxx For project directory , Just drag the project to the terminal
newly build Podfile file
$ vim Podfile
Input i Enter editing status , Current high version Podfie Written like this
$ platform: ios,'8.0'
$ target 'QZProject' do
$ pod 'SDAutoLayout'
$ end
Knock after completion esc then :wq( Save and exit )
Last
$ pod install
complete
When you encounter a problem :
It can be solved in this way :
stay Podfile Add to file :
use_frameworks!
that will do !!!
Continuous updating
边栏推荐
猜你喜欢
Use of tabbarcontroller
服务发现原理分析与源码解读
The problem of accessing certsrv after configuring ADCs
CSV data file settings of JMeter configuration components
SSG framework Gatsby accesses the database and displays it on the page
Mqtt x cli officially released: powerful and easy-to-use mqtt 5.0 command line tool
Solve proxyerror: CONDA cannot proceed due to an error in your proxy configuration
Applet record
Redis sentinel mode setup under Windows
[fluorescent character effect]
随机推荐
Mo team learning summary (II)
Azkaban [basic knowledge 01] core concepts + features +web interface + Architecture +job type (you can get started with Azkaban workflow scheduling system in one article)
QT handy notes (II) edit control and float, qstring conversion
PMM (percona monitoring and management) installation record
Fiddler download and installation
【信息系统项目管理师】初见高项系列精华汇总
B站这个视频我是跪着看完的
Node memory overflow and V8 garbage collection mechanism
服务发现原理分析与源码解读
Why does new public chain Aptos meet market expectations?
2019 ICPC Asia Yinchuan Regional(水题题解)
EOJ 2020 January race E-number transformation
The whole process of server environment configuration
Unstoppable, pure domestic PCs have been in place, and the monopoly of the U.S. software and hardware system has been officially broken
(二)面扫描仪与机械臂的手眼标定(眼在手外:九点标定)
2022年中科磐云——服务器内部信息获取 解析flag
编写一个在bash / shell 和 PowerShell中均可运行的脚本
Apple dominates, Samsung revives, and domestic mobile phones fail in the high-end market
Network flow learning notes
R language ggplot2 visualization: align the legend title to the middle of the legend box in ggplot2 (default left alignment, align legend title to middle of legend)