# This file contains the fastlane.tools configuration # You can find the documentation at https://docs.fastlane.tools # # For a list of all available actions, check out # # https://docs.fastlane.tools/actions # # For a list of all available plugins, check out # # https://docs.fastlane.tools/plugins/available-plugins # # Uncomment the line if you want fastlane to automatically update itself # update_fastlane default_platform(:ios) platform :ios do lane :ad do |options| desc = options[:desc] scheme = "BreastFeedingDemo" currentTime = Time.new.strftime("%Y-%m-%d %H-%M") output_path = "/Users/jzhang/Desktop/BF_AiDemo" ipa_name = "BF_AiDemo_#{currentTime}" increment_build_number gym( # 如果是用workspace,就启用下面一行 # workspace: "BreastFeedingDemo.xcworkspace", scheme: "#{scheme}", output_name: "#{ipa_name}", clean: true, configuration: "Release", export_method: "ad-hoc", output_directory: "#{output_path}", ) pgyer( api_key: "1c1acff227f9dea3eafd531ba369680d", user_key: "02794c3c6f78cbfda696f807d4cb1da0", update_description: "#{desc}", ) end end