Fastfile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 "测试环境上传到蒲公英"
  17. # 打包时候用的名称 例如 fastlane app
  18. lane :dev do
  19. # add actions here: https://docs.fastlane.tools/actions
  20. gym(
  21. # 每次打包之前clean一下
  22. clean: true,
  23. # 打包出 ipa 文件的路径,我放到了桌面文件夹,你自行更改文件夹
  24. output_directory: '/Volumes/Data/IPA/TestIPA/'++ Time.new.strftime("%Y-%m-%d %H-%M-%S"),
  25. # 打包的名称,可任意取
  26. output_name: 'FulltimeEmployer',
  27. # 项目包含iCloud指定环境 Development 或者 Production
  28. #export_options:{
  29. # "iCloudContainerEnvironment":"Development"
  30. #},
  31. # 项目的 scheme,自己项目名 target名称
  32. scheme: "Runner",
  33. # 默认 Release,Release or Debug
  34. configuration: 'Release',
  35. # 是否包含 bitcode
  36. include_bitcode: false,
  37. # 是否包含 symbols
  38. include_symbols: true,
  39. # 打包导出方式,包含 app-store, validation, ad-hoc, package, enterprise, development, developer-id and mac-application
  40. export_method: 'development',
  41. # 这个设置是为了设置 xcode 自动配置证书和配置文件,当然也可以手动配置,可以参考文档
  42. export_xcargs: '-allowProvisioningUpdates'
  43. )
  44. #配置上传蒲公英账号 蒲公英的 api_key和 user_key
  45. pgyer(api_key:'12345678', update_description: "fastlane自动打包")
  46. # mac上的通知弹窗,通知打包完毕
  47. notification(app_icon: "./fastlane/icon.png", title: "manager", subtitle: "测试环境打包成功,已导出安装包", message: "")
  48. end
  49. end