{"id":914,"date":"2017-11-12T08:25:51","date_gmt":"2017-11-12T07:25:51","guid":{"rendered":"http:\/\/duskosavic.com\/blog\/?p=914"},"modified":"2018-04-24T20:04:05","modified_gmt":"2018-04-24T19:04:05","slug":"how-to-install-a-cocoapod-xcode-9-swift-4","status":"publish","type":"post","link":"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/","title":{"rendered":"How to Install a CocoaPod &#8211; Xcode 9 &#8211; Swift 4 &#8211; SendBirdSDK"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"How to Install a CocoaPod - Xcode 9 - Swift 4\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/MuMZZtQpB6Y?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>To install a SendBird pod, <a href=\"https:\/\/docs.sendbird.com\/ios\">go to here <\/a> and download the pod. Copy it to the folder where you app is and then go to that folder:<br \/>\n<code><br \/>\ncd \"\/Users\/duskosavic\/Documents\/apps\/Cole\/iMedic Flash Cards\/imedicflashcards_iOS_BTv4.0.3\"<\/code><\/p>\n<p>In my case, one od the intermedidate folders contains blanks, so I had to use quoation marks around the entire subfolder name. <\/p>\n<p>We have to execute the following statements:<\/p>\n<p><code>$ pod init<br \/>\n$ open -a Xcode Podfile<br \/>\n$ pod install<\/code><\/p>\n<p>but what is <code>Podfile<\/code>? That is a file that I have previously downloaded from SendBird.com. You will get the contents of Podfile for every pod that want to install. Here is what it looks like:<\/p>\n<p><code>platform :ios, '8.0'<\/p>\n<p>target 'imedicflashcards' do<br \/>\nuse_frameworks!<\/p>\n<p>pod 'SendBirdSDK'<br \/>\nend<\/code><\/p>\n<p>8.0 means that we will support versions of 8.0 and later. (The current version at the time of this writing is 11). Normally, you should support two versions from behind, so if the current version is 11, then you could have put 9.0 instead of 8.0 in the first line of the pod. <\/p>\n<p><code>imedicflashcards <\/code>is the project name and <code>use_frameworks!<\/code> is where the rubber meets the road. It is the main statement in the whole pod text. Finally, SendBirdSDK is the name of the pod we are installing. There may be other pods in that same Podfile file as well. <\/p>\n<p>So after pod install, the following lines were shown:<\/p>\n<p><code>Analyzing dependencies<br \/>\nDownloading dependencies<br \/>\nInstalling SendBirdSDK (3.0.94)<br \/>\nGenerating Pods project<br \/>\nIntegrating client project<\/code><br \/>\n<code><br \/>\n[!] Please close any current Xcode sessions and use `imedicflashcards.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.<\/code><\/p>\n<p>From now on, we want to click on file imedicflashcards.xcworkspace in order to start the project in Xcode. <\/p>\n<p>If there are some errors, they will be shown as well. In my case, the error was that I have included flags from the manual installation of SendBirdSDK and the pod complained:<\/p>\n<p><code><br \/>\n[!] The `imedicflashcards [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods\/Target Support Files\/Pods-imedicflashcards\/Pods-imedicflashcards.debug.xcconfig'. This can lead to problems with the CocoaPods installation<br \/>\n    - Use the `$(inherited)` flag, or<br \/>\n    - Remove the build settings from the target.<\/p>\n<p>[!] The `imedicflashcards [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods\/Target Support Files\/Pods-imedicflashcards\/Pods-imedicflashcards.release.xcconfig'. This can lead to problems with the CocoaPods installation<br \/>\n    - Use the `$(inherited)` flag, or<br \/>\n    - Remove the build settings from the target.<br \/>\nDuskos-Mac:imedicflashcards_iOS_BTv4.0.3 duskosavic$<br \/>\n  [Restored Apr 21, 2018 at 5:52:39 PM]<br \/>\nLast login: Sat Apr 21 17:51:42 on console<br \/>\nDuskos-Mac:imedicflashcards_iOS_BTv4.0.3 duskosavic$<\/code> <\/p>\n<p>Once I got back to Build Settings in Xcode and erased the flags, everything ran as expected. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>To install a SendBird pod, go to here and download the pod. Copy it to the folder where you app is and then go to that folder: cd &#8220;\/Users\/duskosavic\/Documents\/apps\/Cole\/iMedic Flash Cards\/imedicflashcards_iOS_BTv4.0.3&#8221; In my case, one od the intermedidate folders contains &hellip; <a href=\"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[281],"tags":[531,533,532,526,534,535],"series":[],"class_list":["post-914","post","type-post","status-publish","format-standard","hentry","category-ios","tag-cocoapod","tag-install-cocoapods","tag-install-pods","tag-ios-11","tag-swift-4","tag-xcode-9"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install a CocoaPod - Xcode 9 - Swift 4 - SendBirdSDK - DuskoSavic.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install a CocoaPod - Xcode 9 - Swift 4 - SendBirdSDK - DuskoSavic.com\" \/>\n<meta property=\"og:description\" content=\"To install a SendBird pod, go to here and download the pod. Copy it to the folder where you app is and then go to that folder: cd &quot;\/Users\/duskosavic\/Documents\/apps\/Cole\/iMedic Flash Cards\/imedicflashcards_iOS_BTv4.0.3&quot; In my case, one od the intermedidate folders contains &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/\" \/>\n<meta property=\"og:site_name\" content=\"DuskoSavic.com\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-12T07:25:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-24T19:04:05+00:00\" \/>\n<meta name=\"author\" content=\"Dusko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dusko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/ios\\\/how-to-install-a-cocoapod-xcode-9-swift-4\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/ios\\\/how-to-install-a-cocoapod-xcode-9-swift-4\\\/\"},\"author\":{\"name\":\"Dusko\",\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/#\\\/schema\\\/person\\\/5c90e82c5c70eaeee96d0b2efbfd4396\"},\"headline\":\"How to Install a CocoaPod &#8211; Xcode 9 &#8211; Swift 4 &#8211; SendBirdSDK\",\"datePublished\":\"2017-11-12T07:25:51+00:00\",\"dateModified\":\"2018-04-24T19:04:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/ios\\\/how-to-install-a-cocoapod-xcode-9-swift-4\\\/\"},\"wordCount\":278,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/#\\\/schema\\\/person\\\/5c90e82c5c70eaeee96d0b2efbfd4396\"},\"keywords\":[\"cocoapod\",\"install cocoapods\",\"install pods\",\"iOS 11\",\"swift 4\",\"xcode 9\"],\"articleSection\":[\"iOS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/duskosavic.com\\\/blog\\\/ios\\\/how-to-install-a-cocoapod-xcode-9-swift-4\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/ios\\\/how-to-install-a-cocoapod-xcode-9-swift-4\\\/\",\"url\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/ios\\\/how-to-install-a-cocoapod-xcode-9-swift-4\\\/\",\"name\":\"How to Install a CocoaPod - Xcode 9 - Swift 4 - SendBirdSDK - DuskoSavic.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/#website\"},\"datePublished\":\"2017-11-12T07:25:51+00:00\",\"dateModified\":\"2018-04-24T19:04:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/ios\\\/how-to-install-a-cocoapod-xcode-9-swift-4\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/duskosavic.com\\\/blog\\\/ios\\\/how-to-install-a-cocoapod-xcode-9-swift-4\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/ios\\\/how-to-install-a-cocoapod-xcode-9-swift-4\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install a CocoaPod &#8211; Xcode 9 &#8211; Swift 4 &#8211; SendBirdSDK\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/\",\"name\":\"DuskoSavic.com\",\"description\":\"Rapid Mobile Apps Development With Flutter\",\"publisher\":{\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/#\\\/schema\\\/person\\\/5c90e82c5c70eaeee96d0b2efbfd4396\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/duskosavic.com\\\/blog\\\/#\\\/schema\\\/person\\\/5c90e82c5c70eaeee96d0b2efbfd4396\",\"name\":\"Dusko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d249b8ea0c85e62fd0339dd1412b99f721f072408db9a9a546efe3a86a93b667?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d249b8ea0c85e62fd0339dd1412b99f721f072408db9a9a546efe3a86a93b667?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d249b8ea0c85e62fd0339dd1412b99f721f072408db9a9a546efe3a86a93b667?s=96&d=mm&r=g\",\"caption\":\"Dusko\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d249b8ea0c85e62fd0339dd1412b99f721f072408db9a9a546efe3a86a93b667?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install a CocoaPod - Xcode 9 - Swift 4 - SendBirdSDK - DuskoSavic.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/","og_locale":"en_US","og_type":"article","og_title":"How to Install a CocoaPod - Xcode 9 - Swift 4 - SendBirdSDK - DuskoSavic.com","og_description":"To install a SendBird pod, go to here and download the pod. Copy it to the folder where you app is and then go to that folder: cd \"\/Users\/duskosavic\/Documents\/apps\/Cole\/iMedic Flash Cards\/imedicflashcards_iOS_BTv4.0.3\" In my case, one od the intermedidate folders contains &hellip; Continue reading &rarr;","og_url":"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/","og_site_name":"DuskoSavic.com","article_published_time":"2017-11-12T07:25:51+00:00","article_modified_time":"2018-04-24T19:04:05+00:00","author":"Dusko","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Dusko","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/#article","isPartOf":{"@id":"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/"},"author":{"name":"Dusko","@id":"https:\/\/duskosavic.com\/blog\/#\/schema\/person\/5c90e82c5c70eaeee96d0b2efbfd4396"},"headline":"How to Install a CocoaPod &#8211; Xcode 9 &#8211; Swift 4 &#8211; SendBirdSDK","datePublished":"2017-11-12T07:25:51+00:00","dateModified":"2018-04-24T19:04:05+00:00","mainEntityOfPage":{"@id":"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/"},"wordCount":278,"commentCount":0,"publisher":{"@id":"https:\/\/duskosavic.com\/blog\/#\/schema\/person\/5c90e82c5c70eaeee96d0b2efbfd4396"},"keywords":["cocoapod","install cocoapods","install pods","iOS 11","swift 4","xcode 9"],"articleSection":["iOS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/","url":"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/","name":"How to Install a CocoaPod - Xcode 9 - Swift 4 - SendBirdSDK - DuskoSavic.com","isPartOf":{"@id":"https:\/\/duskosavic.com\/blog\/#website"},"datePublished":"2017-11-12T07:25:51+00:00","dateModified":"2018-04-24T19:04:05+00:00","breadcrumb":{"@id":"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/duskosavic.com\/blog\/ios\/how-to-install-a-cocoapod-xcode-9-swift-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/duskosavic.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install a CocoaPod &#8211; Xcode 9 &#8211; Swift 4 &#8211; SendBirdSDK"}]},{"@type":"WebSite","@id":"https:\/\/duskosavic.com\/blog\/#website","url":"https:\/\/duskosavic.com\/blog\/","name":"DuskoSavic.com","description":"Rapid Mobile Apps Development With Flutter","publisher":{"@id":"https:\/\/duskosavic.com\/blog\/#\/schema\/person\/5c90e82c5c70eaeee96d0b2efbfd4396"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/duskosavic.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/duskosavic.com\/blog\/#\/schema\/person\/5c90e82c5c70eaeee96d0b2efbfd4396","name":"Dusko","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d249b8ea0c85e62fd0339dd1412b99f721f072408db9a9a546efe3a86a93b667?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d249b8ea0c85e62fd0339dd1412b99f721f072408db9a9a546efe3a86a93b667?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d249b8ea0c85e62fd0339dd1412b99f721f072408db9a9a546efe3a86a93b667?s=96&d=mm&r=g","caption":"Dusko"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/d249b8ea0c85e62fd0339dd1412b99f721f072408db9a9a546efe3a86a93b667?s=96&d=mm&r=g"}}]}},"_links":{"self":[{"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/posts\/914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/comments?post=914"}],"version-history":[{"count":4,"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/posts\/914\/revisions"}],"predecessor-version":[{"id":998,"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/posts\/914\/revisions\/998"}],"wp:attachment":[{"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/media?parent=914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/categories?post=914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/tags?post=914"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/duskosavic.com\/blog\/wp-json\/wp\/v2\/series?post=914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}