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