Skip to content

Instantly share code, notes, and snippets.

@fguchelaar
Last active April 16, 2021 16:51
Show Gist options
  • Save fguchelaar/ba654ec656591e0417ee2b3aafa5109f to your computer and use it in GitHub Desktop.
Save fguchelaar/ba654ec656591e0417ee2b3aafa5109f to your computer and use it in GitHub Desktop.
tvOS - Fastfile
default_platform(:tvos)
platform :tvos do
desc "Push a new build to TestFlight"
lane :beta do
changelog = File.read("../Changelog-tvOS.txt")
puts "Using changelog:"
puts "\n\n" + changelog
if prompt(text: "Is the changelog ok?", boolean: true)
# ensure we have a cert and profile
cert
sigh(platform: 'tvos')
build_number = latest_testflight_build_number(platform: 'appletvos') + 1
increment_build_number(build_number: build_number)
build_app(scheme: "tvOS Application", include_bitcode: true)
upload_to_testflight(
changelog: changelog,
app_platform: 'appletvos'
)
else
puts "Update Changelog.txt and try again!"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment