简体   繁体   English

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

[英]BUILD FAILED after ionic plugin add cordova-plugin-googlemaps

I created a Ionic project using blank template then added below Google Maps plugin: 我使用空白模板创建了一个Ionic项目,然后将其添加到Google Maps插件下方:

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

Here are the versions: 这些是版本:

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

Then I tried "ionic build ios" and got this error: 然后我尝试了“ 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

This process used to work out of the box few months ago and now it's completely broken 几个月前,这个过程曾经是开箱即用的,现在已经完全打破了

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

Do you have any idea how to fix this or the right versions (of anything) to revert back? 您是否知道如何解决此问题或正确的版本(任何版本)以恢复原状?

Thanks. 谢谢。

我安装了ios平台v 3.9.0,它正常工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Cordova插件通过WayPoints从源到目的地的路线添加了cordova-plugin-googlemaps - Directions from Source to Destinations via WayPoints using cordova plugin add cordova-plugin-googlemaps Play 商店中的 Cordova-plugin-googlemaps 空白屏幕 - Cordova-plugin-googlemaps blank screen on Play store 地图拖动事件谷歌地图android sdk cordova cordova-plugin-googlemaps - map drag event google maps android sdk cordova cordova-plugin-googlemaps 添加crosswalk插件后,cordova 8.0.0构建失败 - cordova 8.0.0 build failed after add crosswalk plugin 添加Cordova google admob插件后构建失败 - Build failed after add Cordova google admob Plugin 为什么我使用cordova-plugin-googlemaps得到了空白地图 - Why have I got a blank map using cordova-plugin-googlemaps cordova-plugin-googlemaps如何从标记数组触发标记的info_window - cordova-plugin-googlemaps how to trigger the info_window of marker from marker array 将Onesignal cordova插件添加到Ionic App后,构建失败,并显示错误':compileDebugJavaWithJavac' - Build failed with error ':compileDebugJavaWithJavac' after adding Onesignal cordova plugin to the Ionic App ionic 2-添加cordova.plugins.diagnostic插件时构建android失败 - ionic 2 - build android failed when add cordova.plugins.diagnostic plugin Gradle“ com.android.dex.DexException”构建了一个涉及cordova-plugin-googlemaps和ibm-mfp-push插件的应用程序。 - Gradle “com.android.dex.DexException” building an app involving cordova-plugin-googlemaps and ibm-mfp-push plugins.
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM