离子插件添加cordova-plugin-googlemaps后构建失败

时间:2016-11-11 22:09:45

标签: android ios cordova cordova-plugins ionic2

我使用空白模板创建了一个Ionic项目,然后添加到Google Maps插件下面:​​

ionic plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_IOS="XXXXX"

以下是版本:

•   Mac OSX El Capitan 10.11.4
•   Ionic CLI 2.1.8
•   Cordova 6.4.0
•   Node 6.8.1
•   NPM 3.10.8

然后我尝试了“ionic build ios”并得到了这个错误:

** BUILD FAILED **


The following build commands failed:
    CompileC build/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/armv7/GoogleMapsViewController.o MyApp/Plugins/plugin.google.maps/GoogleMapsViewController.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/myusername/Documents/MyApp/platforms/ios/cordova/build-debug.xcconfig,-project,MyApp.xcodeproj,ARCHS=armv7 arm64,-target,MyApp,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/myusername/Documents/MyApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/myusername/Documents/MyApp/platforms/ios/build/sharedpch

这个过程几个月前开箱即用,现在已经彻底破解了

https://ionicframework.com/docs/v2/native/google-maps/

您是否知道如何修复此版本(或任何版本)以便还原?

感谢。

1 个答案:

答案 0 :(得分:0)

我安装了ios平台v 3.9.0并且运行良好。