簡體   English   中英

離子插件添加cordova-plugin-googlemaps后構建失敗

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

我使用空白模板創建了一個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/

您是否知道如何解決此問題或正確的版本(任何版本)以恢復原狀?

謝謝。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM