Search code examples
ioscordovacordova-plugins

How to install CocoaPods needed for Google Sign-In Cordova/PhoneGap Plugin


I want to use Google Sign-In Cordova/PhoneGap Plugin provided at cordova community in ios. During installation on mac it ask for CocoaPods pod file.There is a doc to install google sdk with cocoa pods(https://developers.google.com/ios/guides/cocoapods).But not able to run app with above plugin.


Solution

  • I use Google Sign-In SDK. Did you check you create pod file in your project? You can make pod file $ cd /project/pod install. After then, add your dependencies like below

    platform :ios, '8.1' target "YourProjectNameHere" do pod 'Google' end

    and save them. And open terminal and run $ pod update. Open .xcworkspace file.