{"id":805,"date":"2020-09-06T16:35:21","date_gmt":"2020-09-06T07:35:21","guid":{"rendered":"https:\/\/naoya-ono.com\/swift\/?p=805"},"modified":"2020-09-06T16:35:21","modified_gmt":"2020-09-06T07:35:21","slug":"swift-cocoapods","status":"publish","type":"post","link":"https:\/\/naoya-ono.com\/swift\/swift-cocoapods\/","title":{"rendered":"\u3010Swift\u3011CocoaPods\u306e\u5c0e\u5165\u624b\u9806\u3068\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5"},"content":{"rendered":"<p>\u3053\u306e\u30da\u30fc\u30b8\u3067\u306f\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u304d\u306b\u5f79\u7acb\u3064\u300c<strong>CocoaPods\uff08\u30b3\u30b3\u30a2\u30dd\u30c3\u30ba\uff09<\/strong>\u300d\u306e\u5c0e\u5165\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2 class=\"hh hh5 pastel-bc\" id=\"i-0\">CocoaPods\u306e\u5c0e\u5165\u624b\u9806<\/h2>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plane\" data-lang=\"Plane Text\"><code>sudo gem install cocoapods<\/code><\/pre>\n<\/div>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/naoya-ono.com\/swift\/wp-content\/uploads\/2020\/09\/swift-cocoapods1.png\" alt=\"\" width=\"774\" height=\"84\" class=\"alignnone wp-image-808 size-full\" srcset=\"https:\/\/naoya-ono.com\/swift\/wp-content\/uploads\/2020\/09\/swift-cocoapods1.png 774w, https:\/\/naoya-ono.com\/swift\/wp-content\/uploads\/2020\/09\/swift-cocoapods1-300x33.png 300w, https:\/\/naoya-ono.com\/swift\/wp-content\/uploads\/2020\/09\/swift-cocoapods1-768x83.png 768w\" sizes=\"(max-width: 774px) 100vw, 774px\"><\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u3042\u306a\u305f\u306eMac\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b\u3057Enter\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plane\" data-lang=\"Plane Text\"><code>pod setup<\/code><\/pre>\n<\/div>\n<p>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u300cSetup completed\u300d\u3068\u3044\u3063\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/naoya-ono.com\/swift\/wp-content\/uploads\/2020\/09\/swift-cocoapods2.png\" alt=\"\" width=\"500\" height=\"68\" class=\"alignnone wp-image-807 \" srcset=\"https:\/\/naoya-ono.com\/swift\/wp-content\/uploads\/2020\/09\/swift-cocoapods2.png 544w, https:\/\/naoya-ono.com\/swift\/wp-content\/uploads\/2020\/09\/swift-cocoapods2-300x41.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\"><\/p>\n<p>\u4ee5\u4e0a\u3067\u5c0e\u5165\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u305f\u3044\u6642\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plane\" data-lang=\"Plane Text\"><code>pod --version<\/code><\/pre>\n<\/div>\n<h2 class=\"hh hh5 pastel-bc\" id=\"i-1\">Podfile\u306e\u4f5c\u6210\u65b9\u6cd5<\/h2>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8a18\u8ff0\u3059\u308b\u300cPodfile\u300d\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u914d\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plane\" data-lang=\"Plane Text\"><code>pod init<\/code><\/pre>\n<\/div>\n<h2 class=\"hh hh5 pastel-bc\" id=\"i-2\">\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Podfile\u3092\u958b\u304f\u3068\u6b21\u306e\u3088\u3046\u306a\u8a18\u8ff0\u304c\u3042\u308b\u306e\u3067\u300c#Pods for \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u300d\u306e\u4e0b\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plane\" data-lang=\"\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\"><code># Uncomment the next line to define a global platform for your project\n# platform :ios, '9.0'\n\ntarget '\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d' do\n# Comment the next line if you don't want to use dynamic frameworks\nuse_frameworks!\n\n# Pods for \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\n\/\/\u3053\u3053\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8a18\u8ff0\npod '\u30e9\u30a4\u30d6\u30e9\u30ea\u540d'\n\nend<\/code><\/pre>\n<\/div>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306fCOCOAPODS\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u691c\u7d22\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/cocoapods.org\/\" class=\"btn raised blue-bc strong\">COCOAPODS\u516c\u5f0f<\/a><\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8a18\u8ff0\u3067\u304d\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plane\" data-lang=\"Plane Text\"><code>pod install<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30da\u30fc\u30b8\u3067\u306f\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u304d\u306b\u5f79\u7acb\u3064\u300cCocoaPods\uff08\u30b3\u30b3\u30a2\u30dd\u30c3\u30ba\uff09\u300d\u306e\u5c0e\u5165\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002 CocoaPods\u306e\u5c0e\u5165\u624b\u9806 \u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 sudo ge &#8230; <\/p>\n","protected":false},"author":1,"featured_media":810,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/posts\/805"}],"collection":[{"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/comments?post=805"}],"version-history":[{"count":2,"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/posts\/805\/revisions"}],"predecessor-version":[{"id":809,"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/posts\/805\/revisions\/809"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/media\/810"}],"wp:attachment":[{"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/media?parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/categories?post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/naoya-ono.com\/swift\/wp-json\/wp\/v2\/tags?post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}