Cordova-plugin-googlemaps: Cordova 6.1.0 version, ios build failed.

Created on 27 Apr 2016  路  2Comments  路  Source: mapsplugin/cordova-plugin-googlemaps

Hello, google-maps-plugin on Cordova 6.1.0 with iOS platform not working, i can't build app, see errors:

.../GoogleMaps.m:176:59: error: no known instance method for selector
'initWithWebView:'

.../GoogleMaps.m:245:68: error: no known instance method for selector
'initWithWebView:'
pluginClass = [[NSClassFromString(className)alloc] initWithWebView:self.webView];

.../GoogleMaps.m:321:19: error: no visible @interface for 'UIView' declares
the selector 'stringByEvaluatingJavaScriptFromString:'
[self.webView stringByEvaluatingJavaScriptFromString:jsString];

.../GoogleMapsViewController.m:10:9: fatal error: 'Cordova/CDVJSON.h' file
not found

P.S Adding "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" in X-Code "Header search paths" not resolve problem.

Most helpful comment

Sorry, on the latest version of plugin, Cordova build is successful. Solution: You need use "cordova plugin add https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps" instead of "cordova plugin add cordova-plugin-googlemaps".

All 2 comments

Sorry, on the latest version of plugin, Cordova build is successful. Solution: You need use "cordova plugin add https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps" instead of "cordova plugin add cordova-plugin-googlemaps".

@LucasNova It'd be great if this information was available a bit more front and center in the documentation. None of the samples currently work without adding the plugin in this manner on ios.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rosnaib11 picture rosnaib11  路  5Comments

christoph-puppe picture christoph-puppe  路  5Comments

javi124 picture javi124  路  5Comments

melkir picture melkir  路  5Comments

splitice picture splitice  路  5Comments