自动打测试包并上传至pgyer
1.终端: cd到工程目录
2.终端: fastlane init
然后会出现
选择4 稍等片刻会提示点击enter键 多点击几次 之后工程目录下会出现 fastlane文件夹(包含Appfile、Fastfile)、Gemfile、Gemfile.lock
3.编辑Appfile
app_identifier("com.xxx.xxx") # The bundle identifier of your app
apple_id("xxx@xxx.com") # Your Apple email address
4.编辑Fastflie
eg: 工程名:AAA
default_platform(:ios)
platform :ios do
desc "Submit a new adhoc Beta Build to [https://www.pgyer.com/](https://www.pgyer.com/)"
lane :adhoc do
gym(scheme: “AAA",
workspace: “AAA.xcworkspace",
include_bitcode: true,
configuration: "Release",
export_method: "ad-hoc”, //什么种类的包
output_directory: "/Users/xxx/Desktop/ipa”, //导出到的文件夹 随意创建的文件夹
output_name: “xxx.ipa”, //包名 xxx可以随意代替
silent: false,
include_symbols: true,
)
#pgyer(api_key: “xxx", user_key: “xxx")
end
end
5.终端: bundle exec fastlane adhoc (adhoc 是Fastfile 里的lane名)
... (等待打包结果)