cordova google maps sdk 的编译错误
Compile error for cordova google maps sdk
这是我的第一个移动应用程序。我的目标是 Android 和 iOS 的任何最新版本。我正在使用 Cordova CLI 进行开发(使用 ionic)。
使用 cordova google-maps-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)
正如警告所说,"This plugin is not compatible with Cordova-iOS 4.."
我从 4.* 降级到 3.9.0,现在它编译得很好!
ionic platform remove ios
ionic platform add ios@3.9.0
这是我的第一个移动应用程序。我的目标是 Android 和 iOS 的任何最新版本。我正在使用 Cordova CLI 进行开发(使用 ionic)。
使用 cordova google-maps-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)
正如警告所说,"This plugin is not compatible with Cordova-iOS 4.."
我从 4.* 降级到 3.9.0,现在它编译得很好!
ionic platform remove ios
ionic platform add ios@3.9.0