日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Getting Started with CocoaPods

發(fā)布時間:2025/4/16 编程问答 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Getting Started with CocoaPods 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

2019獨角獸企業(yè)重金招聘Python工程師標準>>>

CocoaPods is an open source library management tool for Objective-C (both iOS and OS X). This article is going to briefly take you through how to get started. This is meant t0 be a quick-fire demo – check out the?Getting Started?guide for more details.

A CocoaPod (singular) is a specification for a library, usually open source. CocoaPods (plural) is the tool for managing these specs.

First, you'll need to install CocoaPods. That's pretty easy since CocoaPods is a Ruby Gem, and all Macs ship with Ruby. Open a terminal and type the following (it'll ask you for your password):

sudo?gem?install?cocoapods

That'll install CocoaPods on your machine.

Next, you'll need an Xcode project that you want to integrate. Use?cd?to navigate to the working directory of your app.

cd?~/Desktop/Demo

Next, type the following command:

pod?init

This command creates an empty Podfile for you. Open it in a text editor. It'll look like the following.

#?Uncomment?this?line?to?define?a?global?platform?for?your?project #?platform?:ios,?"6.0"target?"Demo"?doendtarget?"DemoTests"?doend

Uncomment the second line to specify the platform (iOS) and the version (6). For your target (the first target), enter?pod "SVProgressHUD", "0.9".

platform?:ios,?"6.0"target?"Demo"?dopod?"SVProgressHUD",?"0.9"endtarget?"DemoTests"?doend

Save the file and return to the text editor. Enter the following command.

pod?install

This will produce the following output.

>?pod?install Analyzing?dependencies Downloading?dependencies Installing?SVProgressHUD?(0.9) Generating?Pods?project Integrating?client?project[!]?From?now?on?use?`Demo.xcworkspace`.

Follow the last line's instruction and close your Xcode project and open the Xcode Workspace file that's been created for you. An Xcode workspace is like a folder for Xcode projects. Your Pods project contains all of the libraries (pods).

Cool.

Now we need to import the?SVProgressHUD.h?header. Since it's in another Xcode project, make sure to use angle brackets.

#import?<SVProgressHUD.h>

That's it! We can now use our library. We've successfully integrated CocoaPods into our project. For each library you want to use, write?pod "POD_NAME", "POD_VERSION"?in your Podfile and re-run?pod install.

There's an?Xcode plugin?for CocoaPods if you're not into the command line.

I gave a talk this morning on effectively using open source software. The slides are below.


轉載于:https://my.oschina.net/w11h22j33/blog/204456

總結

以上是生活随笔為你收集整理的Getting Started with CocoaPods的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 免费成人深夜夜行p站 | 日日夜夜一区 | 日韩欧美精品在线播放 | 亚洲综合久久网 | 一级片播放 | 成年人黄色大全 | 亚洲视频一区二区三区在线观看 | 大肉大捧一进一出好爽视频动漫 | 好屌妞视频这里有精品 | 精品久久久久久亚洲 | 亚洲视频一区二区三区 | 天堂网中文在线 | 五月花成人网 | 国产免费一区,二区 | 日韩欧美激情视频 | av手机在线看 | 日韩 中文字幕 | 在线观看免费av网址 | 亚洲性喷水 | 亚洲第一色视频 | 国产成人久久婷婷精品流白浆 | 一区视频在线 | 在线观看的黄网 | 人妻无码中文字幕 | 国产成人aaa| 男生女生羞羞网站 | 天堂av手机版 | 91国产免费观看 | 深夜成人福利视频 | 亚洲一区二区三区电影在线观看 | 国产精品主播在线 | 国产精品久久久久久久久久久久午夜片 | 熟女肥臀白浆大屁股一区二区 | 波多野结衣一区 | 精品成人久久 | 无码人妻aⅴ一区二区三区69岛 | 国产在线看一区 | 免费99视频 | 欧洲成人综合 | 狠狠热免费视频 | 婷婷视频在线观看 | 婷婷久久精品 | 伊人影院网 | 永久免费无码av网站在线观看 | 国产三级成人 | 国产福利不卡 | 最新国产露脸在线观看 | 精品一区二区三区精华液 | 日韩一区在线免费观看 | 打屁股疼的撕心裂肺的视频 | 一级黄色性视频 | 亚洲女同志亚洲女同女播放 | 16—17女人毛片 | 免费看日韩毛片 | 91黄色免费看| 青青操视频在线播放 | 精品国产999 | 久久久96人妻无码精品 | 欧美黑人一区二区 | 草在线视频 | 色香蕉在线视频 | 成人精品一区二区三区电影黑人 | 无码一区二区波多野结衣播放搜索 | 国产亚洲av片在线观看18女人 | 天堂av在线资源 | 色诱av | 九九热精品视频在线观看 | 蜜桃视频久久一区免费观看入口 | 久久综合网址 | 国产资源精品 | 欧美日韩国产一区 | 国产精品久久久久久影视 | 国产乱码精品1区2区3区 | 美丽的小蜜桃2:美丽人生 | 天堂在线观看 | 天天视频亚洲 | 豆国产97在线 | 亚洲 | 夜夜综合网 | 我的公把我弄高潮了视频 | 亚洲一级精品 | 日日射日日操 | 波多野结衣av无码 | 欧美日韩在线高清 | 欧美日韩国产免费一区二区三区 | 大尺度做爰呻吟62集 | 第色| 国产微拍精品 | 久久国产精品一区二区 | 99re99热| 国产网红主播精品av | www.youjizz.com在线观看 | 亚洲精品视频在线观看免费 | 99精品视频在线播放免费 | 国产日韩欧美中文字幕 | 日韩电影在线观看中文字幕 | 欧美一区二区三区网站 | 午夜吃瓜 | 可以免费看的黄色网址 | 2021国产在线视频 |