2

I am currently able to use On-Demand Resources in my iOS App but I have to perform a series of manual steps:

  • Add ODR resources manually in XCode
  • Manually tag them in 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.


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

Gabe
  • 5,997
  • 5
  • 46
  • 92
  • I've used https://github.com/CocoaPods/Xcodeproj for automating the adding and tagging of resources. – James P Apr 24 '20 at 09:06
  • Have you considered using TestFlight? Apple will host the assets like they would on the App Store. – James P Apr 27 '20 at 21:03
  • @JamesP that could be an option, thanks. How do I upload the ODR into TF though? I currently promote them into TF from AppCenter (ex HockeyApp). – Gabe Apr 27 '20 at 21:23
  • Looks like it can be solved as archive_options with FastLane – Gabe Apr 29 '20 at 19:52

1 Answers1

0

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
  • 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)
  • Fastlane and archive_options to set the ODR external URL during the archiving step
  • Github API to push the ODR into the remote repo that is used by the (non-prod) Apps to fetch the ODR
Gabe
  • 5,997
  • 5
  • 46
  • 92