我有设置快车道,一切都很好,应用程序被上传到试飞使用下面的快速文件。我想要根据TestFlight中的上一个版本号自动增加版本号,然后用这个递增的生成号上传新的生成。请建议如何做这件事。
class Fastfile: LaneFile {
func customLane() {
let buildNumber = latestTestflightBuildNumber(appIdentifier: "com.softence.DemoApp", username: "iosapp@dreamapps.com")
incrementBuildNumber(buildNumber: String(describing: buildNumber + 1))
buildIosApp(scheme: "DemoApp")
uploadToTestflight(username: "iosapp@dreamapps.com", teamId: "39941891")
}
}执行后,它再次要求从团队列表中选择团队。我想增加构建号,然后直接上传到试飞中。
发布于 2022-05-16 23:41:02
在fastlane (2.205.2)上,我成功地获得并设置了测试飞行中的最后一个构建:
current_build_number = app_store_build_number(live: false) //live false means Testflight, true would take the current production build
increment_build_number(xcodeproj: 'path/toyour/project', build_number: current_build_number + 1)发布于 2020-08-08 21:34:35
我试图做同样的事情,但是没有找到任何关于如何在Swift Fastfile中实现递增的版本号的方法。不过,我在附近找到了一份工作。
注意事项:我只想增加构建数,然后推到TestFlight。
工作:
fastlane run increment_build_number以获得先增加的版本号。fastlane beta。这只是当您在Fastfile中的车道/函数被称为betaLane()时,相应地更改它。如果它被称为helloLane(),那么使用fastlane hello。,你完了!
然而,这是两个命令,让我们把它变成一个(可选的,但很好):
vim name_of_script.sh。fastlane run increment_build_number; fastlane beta;如果您得到了这个错误:Apple Generic Versioning is not enabled in this project,那么按照这里的指示来启用它。很简单,只要读一读就可以了。
在所有这些之后,您应该能够使用一个递增的生成号,只需一个命令就可以推送到TestFlight!
https://stackoverflow.com/questions/51283702
复制相似问题