【问题标题】:Whenever I add a new cordova package to Meteor I get "Error: Variable(s) missing: REVERSED_CLIENT_ID"每当我向 Meteor 添加新的 cordova 包时,我都会收到“错误:缺少变量:REVERSED_CLIENT_ID”
【发布时间】:2020-11-23 20:30:59
【问题描述】:

从现有的 Meteor 包构建 ios 应用程序。为了让应用程序成为Xcode 项目,我一直在运行以下命令:

meteor build ../example-output --mobile-settings settings-staging.json --server https://example-staging.meteorapp.com:443  

我已经有一个mobile-config.js,其中包括所有typical configurations for meteor,例如App.infoApp.iconsApp.launchScreensApp.appendToConfig。此外,我在文件中包含REVERSED_CLIENT_ID。一切正常,直到我添加任何cordova插件(meteor add plugin cordova:etc。)

App.configurePlugin("cordova-plugin-googleplus", {
  REVERSED_CLIENT_ID: "com.googleusercontent.apps.010101010-bexamples123"
});

该应用程序构建为.xcworkspace,但随后出现了我认为这些cordova插件将解决的问题。如何配置/修复 REVERSED_CLIENT_ID 和/或配置问题并添加 cordova 插件,以便该项目可以编译为 Xcode .xcworkspace

【问题讨论】:

    标签: javascript xcode cordova meteor mobile-config


    【解决方案1】:

    感谢this Github post指出

    “这个问题从 1.2.x 开始就存在。如果 Cordova 有时会发生 package 引用另一个 Cordova 包作为依赖项。我有这个 cordova-plugin-compat 包有很多问题,它是 被其他人引用。”

    最终的解决方案是简单地删除 cordova 构建:

    rm -rf .meteor/local/cordova-build    
    

    我还删除并再次添加了 iOS 平台,以取得良好的效果:

    meteor remove-platform ios                 
    meteor add-platform ios      
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-20
      • 1970-01-01
      • 2013-03-22
      • 1970-01-01
      • 2021-04-26
      • 1970-01-01
      • 2021-10-18
      • 1970-01-01
      相关资源
      最近更新 更多