Fastfile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # This file contains the fastlane.tools configuration
  2. # You can find the documentation at https://docs.fastlane.tools
  3. #
  4. # For a list of all available actions, check out
  5. #
  6. # https://docs.fastlane.tools/actions
  7. #
  8. # For a list of all available plugins, check out
  9. #
  10. # https://docs.fastlane.tools/plugins/available-plugins
  11. #
  12. # Uncomment the line if you want fastlane to automatically update itself
  13. # update_fastlane
  14. default_platform(:ios)
  15. platform :ios do
  16. desc "Description of what the lane does"
  17. lane :custom_lane do
  18. # add actions here: https://docs.fastlane.tools/actions
  19. end
  20. desc "development"
  21. lane :build_dev do |options|
  22. update_info_plist
  23. update_code_signing_settings
  24. increment_version_number
  25. build_app(
  26. scheme: "hola",
  27. workspace: "hola.xcworkspace",
  28. export_method: "development",
  29. configuration: "Debug",
  30. clean: true,
  31. xcargs: "GCC_PREPROCESSOR_DEFINITIONS='$(inherited) DEBUG=1'",
  32. export_options: {
  33. method: "development",
  34. compileBitcode: false
  35. }
  36. )
  37. end
  38. desc "release"
  39. lane :build_release do |options|
  40. update_info_plist
  41. update_code_signing_settings
  42. increment_version_number
  43. increment_build_number
  44. build_app(
  45. scheme: "hola",
  46. # clean: true,
  47. workspace: "hola.xcworkspace"
  48. )
  49. end
  50. end