Upgrading to OSX El Capitan may cause you some issues with iOS development and CocoaPods. Recently, I ran into an issue trying to install the Microsoft Graph SDK for iOS in an iOS project. Here’s a description the error and how to fix it.
Here’s the podfile I used:
target “O365-Files-App” do
pod ‘ADALiOS’, ‘~>1.2.4’
Here’s the error I received when trying to install the podfile:
[!] Unable to find a specification for `MSGraphSDK (= 0.10.1)`
Removing the pod spec master repo from my machine and running setup fixed the issue. Here’s how to do it:
pod repo remove master
Removing spec repo `master`
Setting up CocoaPods master repo
After you do that, run pod install again and everything is good to go.
Installing ADALiOS (1.2.4)
Installing LiveSDK (5.6.1)
Installing MSGraphSDK (0.10.1)
Installing orc (0.20.3)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `IOSOffice365Calendar.xcworkspace` for this project from now on.
Pod installation complete! There are 3 dependencies from the Podfile and 4 total