-
Notifications
You must be signed in to change notification settings - Fork 10
Releasing an Update
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.
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
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"
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