1

这是我的第一个移动应用程序。我瞄准任何最新版本的Android和iOS。我正在开发与科尔多瓦CLI(使用离子)。为科尔多瓦谷歌地图编译错误sdk

我收到以下错误与科尔多瓦谷歌,地图-SDK插件

/Users/basit/projects/app-mobile/platforms/ios/app/Plugins/plugin.google.maps/GroundOverlay.m:100:47: error: property 'request' not found on object of type 'UIView *' 
     NSString *currentPath = [self.webView.request.URL absoluteString]; 



GoogleMaps.h:11: 
In file included from /Users/basit/projects/app-mobile/platforms/ios/app/Plugins/plugin.google.maps/GoogleMapsViewController.h:12: 
/Users/basit/projects/app-mobile/platforms/ios/app/Plugins/plugin.google.maps/PluginUtil.h:66:58: note: passing argument to parameter 'theWebView' here 
+ (NSString *)getAbsolutePathFromCDVFilePath:(UIWebView*)theWebView cdvFilePath:(NSString *)cdvFilePath; 
                 ^
1 warning and 1 error generated. 

** BUILD FAILED ** 


The following build commands failed: 
     CompileC build/app.build/Debug-iphonesimulator/app.build/Objects-normal/i386/GroundOverlay.o app/Plugins/plugin.google.maps/GroundOverlay.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
(1 failure) 
+0

请**在您的帖子中回答以下问题**。 这是您的第一个混合应用程序吗?你在使用桌面应用程序吗? 什么是您的目标平台及其目标版本:Android 4,5,6? iOS 7,8,9? 您正在使用[CLI,SDK或Build](https://github.com/jessemonroy650/top-phonegap-mistakes/blob/master/new-to-Phonegap.md#001)吗?请不要假设答案,请阅读链接。 一旦你在帖子*中回答问题*,回复评论,所以我知道你已经添加了信息到帖子。 – JesseMonroy650

+0

这是您的第一个HYBRID应用程序吗? – JesseMonroy650

+0

你还有这个问题吗?你为什么给出答案? – JesseMonroy650

回答

2

编译时作为警告说,“这个插件是不是科尔多瓦-的iOS 4兼容

我从4. *降级到3.9.0,现在编译就好了!

ionic platform remove ios 
ionic platform add [email protected] 
+0

您可以在iOS(Xcode)上检查您的应用内存是否在增长?因为我收到了一些内存泄漏,我认为这与Google地图cordova有关。 –

+0

@DenkoMancheski我不知道如何检查内存泄漏..我对ios应用程序甚至任何应用程序都很陌生,但现在在IOS上对我来说工作正常。 android是另一个故事(甚至无法启动并运行它) – Basit

相关问题