Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"GoogleSignIn/GoogleSignIn.h" file not found

I am using Ionic with the google Plus cordova plugin: https://ionicframework.com/docs/v3/native/google-plus/

I set up everything correctly and it works without any problems on Android. On iOS I used the command "Ionic cordova prepare iOS", at first I got problems with some Cocoapods ("cannot run cocoapods as root"), I fixed that Error with the help of this post: Can't run sudo pod install after updating to cocoapods 0.32.1 with error "You cannot run CocoaPods as root. (CLAide::Help)". After that I was able to get a .xcodeproj.

After some research I found out I have to open the .xcworkspace. I clicked on run and got the Error: "GoogleSignIn/GoogleSignIn.h" file not found

like image 485
Yessir Avatar asked Nov 28 '19 16:11

Yessir


1 Answers

Uninstall plugin : cordova plugin rm cordova-plugin-googleplus

Install plugin version 7.0.1: cordova plugin add [email protected]

This will fix your problem reason being version 7.0.1 doesn't use POD dependencies.

like image 191
ch3t Avatar answered Oct 06 '22 06:10

ch3t



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!