Skip to content

Releasing an Update

Philip Dow edited this page Jun 4, 2020 · 5 revisions

Bump Versions and Update Pod

Update the s.version in the TensorIO.podspec and re-install the pods in all the example projects:

  • Example
  • SwiftExample
  • TensorFlowExample
  • SwiftTensorFlowExample

In each of those directories in turn, run:

$ rm -rf Pods
$ rm Podfile.lock
$ pod install

If pod install gives you trouble use pod update instead.

For each of those example projects also bump the application target version in Xcode.

Run Tests

You can run tests individually from each project, or you can run them all at the same time from the root directory with the following script:

$ ./run-tests.sh

When TensorIOTensorFlow is in Development

If you are testing a development branch of TensorIOTensorFlow prior to its release you will need to refer to its Podspec directly. Modify the TensorFlowExample and SwiftTensorFlowExample podfiles so that they look something like:

target 'TensorFlowExample' do

  pod 'TensorIOTensorFlow', podspec: 'https://raw.githubusercontent.com/doc-ai/tensorio-tensorflow-ios/r1.15/TensorIOTensorFlow.podspec'

  pod 'TensorIO', :path => '../'
  pod 'TensorIO/TensorFlow', :path => '../'

end

Make all changes to Tensor/IO code that are needed for compatibility with those TensorIOTensorFlow changes, then release the update to TensorIOTensorFlow to cocoapods first, remove that pod/podspec dependencies altogether, clear the cocoapods cache, and run pod install or pod update again in the TensorFlowExample and SwiftTensorFlowExample directories.

Clearing the Cocoapods Cache

From https://gist.github.com/mbinna/4202236:

$ rm -rf "${HOME}/Library/Caches/CocoaPods"

Submit to Cocoapods

Ensure you have updated the s.version in the TensorIO.podspec and have tagged a release matching that version on master. Make sure your master branch is up to date then run:

$ pod lib lint --allow-warnings
$ pod trunk push TensorIO.podspec --allow-warnings

In some cases it may be necessary for you reset the cocoapods cache or sync with trunk in order to see your update. Some or all of the following may be required:

$ rm -rf "${HOME}/Library/Caches/CocoaPods"
$ pod cache clean --all
$ pod repo update

~

Last Updated 6/4/20