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. before_all do
    17. cocoapods # pod install
    18. end
    19. desc "POP MART Global lane"
    20. lane :pop_development do
    21. # 开发环境
    22. gym(
    23. scheme: "DevPOPXXX",
    24. workspace: "POPXXX.xcworkspace",
    25. export_method: "development", #app-store, package, ad-hoc, enterprise, development
    26. silent:true,
    27. configuration: "Debug",
    28. output_directory:"./development_debug",
    29. output_name:"development_debug.ipa"
    30. )
    31. fir_cli api_token: "xxxxxxxxxxxxxx", changelog: "开发环境"
    32. end
    33. lane :pop_test_release do
    34. #测试环境
    35. gym(
    36. scheme: "DevPOPXXX",
    37. workspace: "POPXXX.xcworkspace",
    38. export_method: "ad-hoc",
    39. silent:true,
    40. include_bitcode: true,
    41. configuration: "Release",
    42. output_directory:"./test_adhoc_release",
    43. output_name:"test_adhoc_release.ipa"
    44. )
    45. fir_cli api_token: "xxxxxxxxxxxxxx", changelog: "测试环境"
    46. end
    47. lane :pop_product_release do
    48. #线上环境
    49. gym(
    50. scheme: "POPXXX",
    51. workspace: "POPXXX.xcworkspace",
    52. export_method: "ad-hoc",
    53. silent:true,
    54. configuration: "Release",
    55. include_bitcode: true,
    56. output_directory:"./product_adhoc_release",
    57. output_name:"product_adhoc_release.ipa",
    58. export_options: { # 指定对应证书,不指定,有时候会导出ipa包出问题
    59. provisioningProfiles: {
    60. "com.xxxx.global": "adhoc-global",
    61. }
    62. }
    63. )
    64. fir_cli api_token: "xxxxxxxxxxxxxx", changelog: "线上环境"
    65. end
    66. lane :pq_appstore do
    67. gym(
    68. scheme: "POPXXX",
    69. workspace: "POPXXX.xcworkspace",
    70. export_method: "app-store",
    71. silent:true,
    72. configuration: "Release",
    73. output_directory:"./appstore",
    74. output_name:"Appstore.ipa"
    75. )
    76. deliver(
    77. force: true, #是否跳过HTML验证报告,默认false
    78. skip_metadata: true, #是否跳过上传metadata,默认false
    79. skip_screenshots: true #是否跳过上传屏幕截图,默认false
    80. )
    81. end
    82. end