-1

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

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

我已经有一个mobile-config.js,其中包括流星的所有典型配置,例如App.info, App.icons, App.launchScreens, App.appendToConfig。另外,我已经REVERSED_CLIENT_ID包含在文件中。一切正常,直到我添加任何科尔多瓦插件(meteor add plugin cordova:

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

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

4

1 回答 1

0

Thanks to this Github post, which pointed out that

"This problem exists since 1.2.x. It sometimes happens if a Cordova package references another Cordova package as a dependency. I had this problems a lot with the cordova-plugin-compat package which is referenced by some others."

The solution ended up being to simply remove the cordova build:

rm -rf .meteor/local/cordova-build    

I also removed and added the iOS platform again for good measure:

meteor remove-platform ios                 
meteor add-platform ios      
于 2020-08-04T19:56:33.687 回答