{"id":1161,"date":"2016-06-06T14:16:44","date_gmt":"2016-06-06T20:16:44","guid":{"rendered":"https:\/\/toddbaginski.com\/blog\/?p=1161"},"modified":"2016-06-06T14:16:44","modified_gmt":"2016-06-06T20:16:44","slug":"osx-el-capitan-and-ios-development-with-microsoft-graph-sdk","status":"publish","type":"post","link":"https:\/\/toddbaginski.com\/blog\/osx-el-capitan-and-ios-development-with-microsoft-graph-sdk\/","title":{"rendered":"OSX El Capitan and iOS Development with Microsoft Graph SDK"},"content":{"rendered":"<p>Upgrading to OSX El Capitan may cause you some issues with iOS development and CocoaPods. \u00a0Recently, I ran into an issue trying to install the\u00a0<a href=\"https:\/\/github.com\/microsoftgraph\/msgraph-sdk-ios\" target=\"_blank\">Microsoft Graph SDK for iOS<\/a> in an iOS project.  Here&#8217;s a description the error and how to fix it.<\/p>\n<p>Here&#8217;s the podfile I used:<\/p>\n<p>&nbsp;<\/p>\n<p>target &#8220;O365-Files-App&#8221; do<\/p>\n<p>pod &#8216;ADALiOS&#8217;, &#8216;~&gt;1.2.4&#8217;<\/p>\n<p>pod &#8216;orc&#8217;<\/p>\n<p>pod &#8216;MSGraphSDK&#8217;<\/p>\n<p>end<\/p>\n<p>&nbsp;<\/p>\n<p>Here&#8217;s the error I received when trying to install the podfile:<\/p>\n<p>&nbsp;<\/p>\n<p><strong>pod install<\/strong><\/p>\n<p>Analyzing dependencies<\/p>\n<p><span style=\"color: #ff0000;\">[!] Unable to find a specification for `MSGraphSDK (= 0.10.1)`<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Removing the pod spec master repo from my machine and running setup fixed the issue. \u00a0Here&#8217;s how to do it:<\/p>\n<p>&nbsp;<\/p>\n<p><strong>pod repo remove master<\/strong><\/p>\n<p>Removing spec repo `master`<\/p>\n<p><strong>pod setup<\/strong><\/p>\n<p>Setting up CocoaPods master repo<\/p>\n<p><span style=\"color: #008000;\">Setup completed<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>After you do that, run pod install again and everything is good to go.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>pod install<\/strong><\/p>\n<p>Analyzing dependencies<\/p>\n<p>Downloading dependencies<\/p>\n<p><span style=\"color: #008000;\">Installing ADALiOS (1.2.4)<\/span><\/p>\n<p><span style=\"color: #008000;\">Installing LiveSDK (5.6.1)<\/span><\/p>\n<p><span style=\"color: #008000;\">Installing MSGraphSDK (0.10.1)<\/span><\/p>\n<p><span style=\"color: #008000;\">Installing orc (0.20.3)<\/span><\/p>\n<p>Generating Pods project<\/p>\n<p>Integrating client project<\/p>\n<p><span style=\"color: #008000;\">[!] Please close any current Xcode sessions and use `IOSOffice365Calendar.xcworkspace` for this project from now on.<\/span><\/p>\n<p>Sending stats<\/p>\n<p>Pod installation complete! There are 3 dependencies from the Podfile and 4 total<\/p>\n<p>pods installed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upgrading to OSX El Capitan may cause you some issues with iOS development and CocoaPods. \u00a0Recently, I ran into an issue trying to install the\u00a0Microsoft Graph<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":1082,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[101,103,96,104],"tags":[41,61,60,59,54,57],"class_list":["post-1161","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-cloud","category-mobile","category-office-365","tag-azure","tag-ios","tag-ipad","tag-iphone","tag-mobile","tag-mobility"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/1161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/comments?post=1161"}],"version-history":[{"count":8,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/1161\/revisions"}],"predecessor-version":[{"id":1169,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/1161\/revisions\/1169"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media\/1082"}],"wp:attachment":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media?parent=1161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/categories?post=1161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/tags?post=1161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}