无法在PhoneGap上安装“ cordova-plugin-firebase-analytics” pod错误

时间:2019-03-07 13:25:11

标签: ios firebase cordova cocoapods phonegap


我正在开发与Firebase Analytics连接的混合应用程序。

环境:
Windows 10
Visual Studio 2015
DevExtreme库
PhoneGap cli版本8.0.0
Cordova iOS版本5.0.0
已添加插件:phonegap-plugin-pushcordova-support-google-servicescordova-plugin-firebase-analytics

步骤:

  • 构建一个PhoneGap邮政编码。
  • 在PhoneGap帐户上上传代码。
  • 构建应用。


问题:
错误与pod相关:

Installing "cordova-plugin-firebase-analytics" at "1.0.1" for ios
Failed to install 'cordova-plugin-firebase-analytics': Error: pod: Command 
failed with exit code 1

config.xml
以下是config.xml的最新版本:

<widget id="com.devexpress.apptemplate" version="1.0" versionCode="1">
  <name>ApplicationTemplate</name>
  <description>Template</description>
  <author email="email@sample.com" href="http://sample.com">Author</author>
  <preference name="permissions" value="none" />
  <preference name="prerendered-icon" value="true" />
  <preference name="android-windowSoftInputMode" value="adjustResize" />
  <preference name="SplashScreen" value="splash" />
  <preference name="SplashScreenDelay" value="60000" />
  <preference name="AutoHideSplashScreen" value="false" />
  <preference name="SplashShowOnlyFirstTime" value="false" />
  <preference name="FadeSplashScreen" value="false" />
  <preference name="ShowSplashScreenSpinner" value="false" />
  <preference name="DisallowOverscroll" value="true" />
  <preference name="StatusBarOverlaysWebView" value="false" />
  <preference name="StatusBarBackgroundColor" value="#000000" />
  <preference name="phonegap-version" value="cli-8.0.0" />
  <preference name="android-minSdkVersion" value="16" />
  <preference name="android-targetSdkVersion" value="26" />
  <preference name="cordova-ios" version="5.0.0" />
  <preference name="cordova-android" version="7.1.1" />
  <plugin name="cordova-plugin-splashscreen" onload="true" />
  <plugin name="cordova-plugin-whitelist" />
  <plugin name="cordova-plugin-ios-longpress-fix" />
  <plugin name="cordova-plugin-statusbar" onload="true" />
  <plugin name="phonegap-plugin-push" spec="2.1.2" />

  <platform name="android">
    <resource-file src="google-services.json" target="app/google-services.json" />
  </platform>
  <platform name="ios">
    <framework src="Firebase/Core" type="podspec" spec="~> 5.6"/>
    <resource-file src="GoogleService-Info.plist" />
  </platform>

  <plugin name ="cordova-support-google-services" />
  <plugin name ="cordova-plugin-firebase-analytics" />

  <plugin name="cordova-android-support-gradle-release" spec="^2.0.0">
    <variable name="PLAY_SERVICES_VERSION" value="+" />
  </plugin>
  <plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0">
    <variable name="FIREBASE_VERSION" value="+" />
  </plugin>
  <access origin="*" />
</widget>

有人知道如何解决此问题吗?

谢谢你,
萨拉

0 个答案:

没有答案