{"id":2663,"date":"2018-08-03T18:15:36","date_gmt":"2018-08-03T09:15:36","guid":{"rendered":"http:\/\/www.whoocus.com\/blog\/?p=2663"},"modified":"2018-08-03T18:48:02","modified_gmt":"2018-08-03T09:48:02","slug":"2663","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=2663","title":{"rendered":"Alamofire \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306ecocoapod\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>\u4e45\u3057\u3076\u308a\u306b\u3001swift \u3067 iOS\u306e\u958b\u767a\u3002<br \/>\nPodfile \u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3057\u305f\u3002<\/p>\n<p>[bash]<br \/>\nsource &#8216;https:\/\/github.com\/CocoaPods\/Specs.git&#8217;<br \/>\nplatform :ios, &#8216;11.0&#8217;<br \/>\nuse_frameworks!<\/p>\n<p>target &#8216;MyProject&#8217; do<br \/>\n    pod &#8216;Alamofire&#8217;, &#8216;~&gt; 4.7&#8217;<br \/>\nend<br \/>\n[\/bash]<\/p>\n<p>cocoaPod \u3067 Alamofire\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u3066\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3002<\/p>\n<p>[bash]<br \/>\n$ pod install<br \/>\nAnalyzing dependencies<br \/>\n[!] CocoaPods could not find compatible versions for pod &quot;Alamofire&quot;:<br \/>\n  In Podfile:<br \/>\n    Alamofire (~&gt; 4.7)<\/p>\n<p>None of your spec sources contain a spec satisfying the dependency: `Alamofire (~&gt; 4.7)`.<\/p>\n<p>You have either:<br \/>\n * out-of-date source repos which you can update with `pod repo update` or with `pod install &#8211;repo-update`.<br \/>\n * mistyped the name or version.<br \/>\n * not added the source repo that hosts the Podspec to your Podfile.<\/p>\n<p>Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.<br \/>\n[\/bash]<\/p>\n<p>\u6307\u793a\u306b\u5f93\u3044 pod repo update \u3092\u5b9f\u884c\u3057\u3066\u3001pod install \u3092\u518d\u5b9f\u884c\u3002<\/p>\n<p>[bash]<br \/>\n$ pod repo update<br \/>\nUpdating spec repo `master`<br \/>\nPerforming a deep fetch of the `master` specs repo to improve future performance<\/p>\n<p>  $ \/usr\/bin\/git -C \/Users\/xxx\/.cocoapods\/repos\/master fetch origin<br \/>\n  &#8211;progress<br \/>\n  remote: Counting objects: 117, done.<br \/>\n  remote: Compressing objects: 100% (111\/111), done.<br \/>\n  remote: Total 117 (delta 73), reused 0 (delta 0), pack-reused 0<br \/>\n  Receiving objects: 100% (117\/117), 12.89 KiB | 3.22 MiB\/s, done.<br \/>\n  Resolving deltas: 100% (73\/73), completed with 40 local objects.<br \/>\n  From https:\/\/github.com\/CocoaPods\/Specs<br \/>\n     1a871e6f9db..69b321bd0a4  master     -&gt; origin\/master<br \/>\n  $ \/usr\/bin\/git -C \/Users\/xxx\/.cocoapods\/repos\/master rev-parse<br \/>\n  &#8211;abbrev-ref HEAD<br \/>\n  master<br \/>\n  $ \/usr\/bin\/git -C \/Users\/xxx\/.cocoapods\/repos\/master reset &#8211;hard<br \/>\n  origin\/master<br \/>\n  Checking out files: 100% (285048\/285048), done.<br \/>\n  HEAD is now at 69b321bd0a4 [Add] ADMobGenSMA 0.1.1<br \/>\nwarning: inexact rename detection was skipped due to too many files.<br \/>\n[\/bash]<\/p>\n<p>\u518d\u5ea6\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p>[bash]<br \/>\n$ pod install<br \/>\nAnalyzing dependencies<br \/>\nDownloading dependencies<br \/>\nInstalling Alamofire (4.7.3)<br \/>\nGenerating Pods project<br \/>\nIntegrating client project<\/p>\n<p>[!] Please close any current Xcode sessions and use `Sample.xcworkspace` for this project from now on.<br \/>\nSending stats<br \/>\nPod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.<br \/>\n[\/bash]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e45\u3057\u3076\u308a\u306b\u3001swift \u3067 iOS\u306e\u958b\u767a\u3002 Podfile \u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3057\u305f\u3002 [bash] source &#8216;https:\/\/github.com\/CocoaPods\/Specs.git&#8217; pla [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[49,50,4],"tags":[],"class_list":["post-2663","post","type-post","status-publish","format-standard","hentry","category-ios","category-xcode","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2663"}],"version-history":[{"count":5,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2663\/revisions"}],"predecessor-version":[{"id":2668,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2663\/revisions\/2668"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}