Advertisement
Guest User

Untitled

a guest
Dec 21st, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. desc "Build and submit to TestFlight"
  2. lane :submit_testflight do
  3.  
  4. # 1) Create a keychain
  5.  
  6. keychain_name = "certs"
  7. create_keychain(
  8. name: keychain_name,
  9. default_keychain: false,
  10. timeout: 3600,
  11. password: SecureRandom.base64,
  12. unlock: true
  13. )
  14.  
  15. # 2) Import distribution certificate
  16.  
  17. import_certificate(
  18. certificate_path: "/path/to/your/certificate",
  19. certificate_password: ENV["KEY_PASSWORD"],
  20. keychain_name: keychain_name
  21. )
  22.  
  23. # 3) Download provisioning profile
  24.  
  25. sigh(
  26. username: "your_apple_id_username",
  27. provisioning_name: "your_provisioning_profile_name",
  28. team_id: "your_team_id",
  29. cert_id: "your_cert_id"
  30. )
  31.  
  32. # 4) Increment the build number
  33.  
  34. increment_build_number(
  35. build_number: Time.now.to_i
  36. )
  37.  
  38. # 5) Build the app
  39.  
  40. gym(
  41. clean: true,
  42. workspace: "/path/to/your/workspace",
  43. output_name: "VTS.ipa",
  44. scheme: "VTS App Store",
  45. codesigning_identity: "your_codesigning_identity",
  46. xcargs: "PROVISIONING_PROFILE_SPECIFIER='your_provisioning_prof'"
  47. )
  48.  
  49. # 6) Release to TestFlight
  50.  
  51. pilot(username: "your_app_id_username")
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement