适用于GoogleMaps的Ionic build ios - 命令的错误代码65

时间:2016-03-31 13:07:44

标签: ios build command-line-interface google-maps-sdk-ios ionic2

我的构建用于与GoogleMapSDK一起使用。但由于某种原因,我无法让它再次运作。

如果我删除插件,那么构建工作正常。

我已经厌倦了重新安装平台和插件,但它又回来了同样的错误。

我不确定如何解决这个问题。

 google.maps/GroundOverlay.m -o /Users/basit/projects/mobile-project/platforms/ios/build/app.build/Debug-iphonesimulator/app.build/Objects-normal/i386/GroundOverlay.o
/Users/basit/projects/mobile-project/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];
                                              ^
/Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GroundOverlay.m:108:61: warning: incompatible pointer types sending 'UIView * _Nullable' to parameter of type 'UIWebView *' [-Wincompatible-pointer-types]
        urlStr = [PluginUtil getAbsolutePathFromCDVFilePath:self.webView cdvFilePath:urlStr];
                                                            ^~~~~~~~~~~~
In file included from /Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GroundOverlay.m:9:
In file included from /Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GroundOverlay.h:9:
In file included from /Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GoogleMaps.h:11:
In file included from /Users/basit/projects/mobile-project/platforms/ios/app/Plugins/plugin.google.maps/GoogleMapsViewController.h:12:
/Users/basit/projects/mobile-project/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;
                                                         ^

** BUILD FAILED **


The following build commands failed:
    CompileC build/app.build/Debug-iphonesimulator/app.build/Objects-normal/i386/GoogleMapsViewController.o app/Plugins/plugin.google.maps/GoogleMapsViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC build/app.build/Debug-iphonesimulator/app.build/Objects-normal/i386/GoogleMaps.o app/Plugins/plugin.google.maps/GoogleMaps.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/basit/projects/mobile-project/platforms/ios/cordova/build-debug.xcconfig,-project,app.xcodeproj,ARCHS=i386,-target,app,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/basit/projects/mobile-project/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/basit/projects/mobile-project/platforms/ios/build/sharedpch

1 个答案:

答案 0 :(得分:3)

正如插件页面上的警告所示,“此插件与Cordova-iOS 4不兼容。

我从4. *降级到3.9.0现在编译得很好!

ionic platform remove ios
ionic platform add ios@3.9.0