【发布时间】:2016-06-10 16:51:31
【问题描述】:
这是我的第一个移动应用程序。我的目标是任何最新版本的 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)
【问题讨论】:
-
请在您的帖子中回答以下问题。这是您的第一个混合应用程序吗?您在使用桌面应用程序吗?您的目标平台及其目标版本是什么:Android 4、5、6? iOS 7、8、9?你在使用CLI, SDK or Build 吗?请不要假设答案,请阅读链接。一旦您在帖子中回答了问题,请在 cmets 中回复,以便我知道您已在帖子中添加信息。
-
这是您的第一个 HYBRID 应用程序吗?
-
您还有这个问题吗?你为什么要回答?
-
@JesseMonroy650 因为这解决了问题。
-
好的。很高兴看到你在工作。 FWIW:有两个相似的标签
phonegap-cli是你的,而不是phonegap-build。祝你好运
标签: cordova cordova-plugins google-maps-sdk-ios ionic2 phonegap-cli