Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benbahrenburg/709940d43389dc70703ab2a44fdd9265 to your computer and use it in GitHub Desktop.
Save benbahrenburg/709940d43389dc70703ab2a44fdd9265 to your computer and use it in GitHub Desktop.
Fastlane method for updating extension CFBundleVersion
def setBuildNumberOnExtension(build_number)
raise if build_number.nil?
puts "Setting Extension to build number #{build_number}"
sh("/usr/libexec/PlistBuddy -c 'Set CFBundleVersion #{build_number}' ../myWatchApp/Info.plist")
sh("/usr/libexec/PlistBuddy -c 'Set CFBundleVersion #{build_number}' ../myWatchAppExtension/Info.plist")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment