简体   繁体   English

从终端添加按需资源

[英]Addition of On-Demand Resources from terminal

I am currently able to use On-Demand Resources in my iOS App but I have to perform a series of manual steps:我目前能够在我的 iOS 应用程序中使用按需资源,但我必须执行一系列手动步骤:

  • Add ODR resources manually in XCode在 XCode 中手动添加 ODR 资源
  • Manually tag them in XCode在 XCode 中手动标记它们
  • Archive the App in order to generate the bundles that will be submitted to Apple and temporarily push them on a webserver that we use to test ODR on non-prod Apps.归档应用程序以生成将提交给 Apple 的捆绑包,并将它们临时推送到我们用来测试非产品应用程序的 ODR 的网络服务器上。


Is there some command-line utility that I can use for this?是否有一些我可以使用的命令行实用程序?

Is any automation possible for any of those steps?这些步骤中的任何一个都可以实现自动化吗? Is there some command-line utility that I can use for this?是否有一些我可以使用的命令行实用程序?


In my case I'm using Cordova so this (still) open PR is all I found so far: https://github.com/apache/cordova-node-xcode/pull/87在我的情况下,我使用的是 Cordova 所以这个(仍然)开放的 PR 是我迄今为止发现的全部: https://github.com/apache/cordova-node-xcode/pull/87

Solution I went with:我选择的解决方案:

  • Forked cordova plugin https://github.com/apache/cordova-node-xcode/pull/87 to add ODR and tag them in the build pipeline分叉 cordova 插件https://github.com/apache/cordova-node-xcode/pull/87添加 ODR 并在构建管道中标记它们
  • A before_build Cordova hook to simply add the value of the external URL for ODR in the App.xcodeproj/project.pbxproj file (like XCode does)一个 before_build Cordova 钩子,用于在 App.xcodeproj/project.pbxproj 文件中简单地为 ODR 添加外部 URL 的值(如 Z146184A44F3817CC13C5409A52728)
  • Fastlane and archive_options to set the ODR external URL during the archiving step Fastlane 和archive_options在归档步骤中设置 ODR 外部 URL
  • Github API to push the ODR into the remote repo that is used by the (non-prod) Apps to fetch the ODR Github API 将 ODR 推送到(非产品)应用程序用于获取 ODR 的远程存储库中

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM