I had setup fast lane and everything works fine and the app gets uploaded to test flight using the following fast file. I want to auto increment the build number based on the previous build number in TestFlight and upload new build with that incremented build number. Please advice how to do this
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")
}
}
After execution it again asks to select the team from list of teams. I want to increment the build number and upload the build directly to test flight