Closed schagani closed 5 years ago
I think you forgot to execute ionic cordova prepare
i have a similar few issues
Now I'm stuck jumping between pods error and api key error,I do not know what to do. Some suggestion thanks
Pod error is not similar error at all.
The reason of pod error
might be that you don't install cocoapod.
Try to install/upgrade the latest cocoapod, and also upgrade cordova
and ionic
cli, then ionic cordova platform remove ios
and ionic cordova platform add ios
.
After trying, even you can't solve the problem, please share your project files on github repository. I will inspect it.
Hi follow following steps to run google maps plugin on my ionic project. The google maps IOS api key error is due to recent changes by plugin. From now on you have to mention api key using preferences tag in config file. Also the key names have been changed. Please refer below link https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/README.md#api-key-android-and-ios-platforms
Further more I also updates the Cocoapod using below command gem install cocoapod
After that I build my iOS platform and then inside that buIld iOS project folder I used below command pod update
Regards
@schagani Did you solve your problem?
i have cocoapods installed, but xcode no can't link the pods-debug.xconfig. im stuck and running crazy
@schagani Did you solve your problem?
yes thanks :)
@schagani how do u solved u bug, u can give me a hand i´m stuck
As I said above, After trying, even you can't solve the problem, please share your project files on github repository. I will inspect it.
.
Please include the all files from top, not platforms/ios
only.
sorry, i don´t get it, i include all files and only work whit ios platform
Ok, the file structure is storage at least. Please give me the writing access permission to modify your code. I will commit the files to different branch.
@wf9a5m75 ok check now, i invite u to collaborate
I fixed your project, but because you remove me from collaborate, I don't push them.
@wf9a5m75 what was the problem, until now i couldn't fix that
File structure is wrong.
which file ?
First of all, putting Pods at the top is wrong, and also putting contents.xcworkspacedata
file at the top is wrong.
I'm not your friend or teacher, I don't want to spend my time to teach what's wrong one by one. If you re-add access permission, I can push it, otherwise, I will throw away the files and please try to fix by yourself.
At least this is not this plugin's problem.
Add below preferences tags under widget tag in your context.xml and update your api key here with your google maps api key.
<widget ...>
<preference name="GOOGLE_MAPS_ANDROID_API_KEY" value="***your api key here***" />
<preference name="GOOGLE_MAPS_IOS_API_KEY" value="***your api key here***" />
</widget>
I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior: I am trying to install the plugin and it shows that the plugin has been installed. However, I am unable to see the entry of the plugin in config.xml After running it on IOS, it shows me error saying "The variable GOOGLE-MAPS_IOS_API_KEY is not registered"
Expected behavior: The native google maps should work and to be shown in the screen.