fastlane: Error running Fastlane swift

Issue Description

Error while executing one of the lanes

screen shot 2018-01-18 at 2 03 43 pm

Environment

🚫 fastlane environment 🚫

Stack

Key Value
OS 10.12.6
Ruby 2.2.4
Bundler? false
Git git version 2.14.3 (Apple Git-98)
Installation Source /usr/local/lib/fastlane_lib/bundle/bin/fastlane
Host Mac OS X 10.12.6 (16G1114)
Ruby Lib Dir /usr/local/lib/fastlane_lib/bundle/lib
OpenSSL Version OpenSSL 1.0.2g 1 Mar 2016
Is contained false
Is homebrew false
Is installed via Fabric.app true
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 9.2

System Locale

Variable Value
LANG en_US.UTF-8 βœ…
LC_ALL en_US.UTF-8 βœ…
LANGUAGE en_US.UTF-8 βœ…

fastlane files:

`./fastlane/Fastfile.swift`
// Customize this file, documentation can be found here:
// https://docs.fastlane.tools/
// All available actions: https://docs.fastlane.tools/actions
// can also be listed using the `fastlane actions` command

// Change the syntax highlighting to Swift
// All lines starting with // are ignored when running `fastlane`

// If you want to automatically update fastlane if a new version is available:
// updateFastlane()

import Foundation

class Fastfile: LaneFile {
    // This is the minimum version number required.
    // Update this, if you use features of a newer version
    var fastlaneVersion: String { return "2.76.0" }
    var xcodeproj: String { return "OMRecordApp/OMRecordApp.xcodeproj" }

    func beforeAll() {
        // environmentVariables["SLACK_URL"] = "https://hooks.slack.com/services/..."
        // cocoapods()
        // carthage()
    }

    func testLane() {
        desc("Runs all the tests")
        runTests()
    }

    func betaLane() {
        desc("Submit a new Beta Build to Apple TestFlight. This will also make sure the profile is up to date")

        // syncCodeSigning(gitUrl: "gitUrl", appIdentifier: [appIdentifier], username: appleID)
        buildApp(scheme: "Alamofire") // more options available
        uploadToTestflight(username: appleID)
        // You can also use other beta testing services here (run `fastlane actions`)
    }

    func releaseLane() {
        desc("Deploy a new version to the App Store")

        // syncCodeSigning(gitUrl: "gitUrl", type: "appstore", appIdentifier: [appIdentifier], username: appleID)
        captureScreenshots()
        buildApp(scheme: "Alamofire") // more options available
        uploadToAppStore(username: appleID, app: appIdentifier, force: true)
        // frameScreenshots()
    }
    
    func prepareNextVersionLane() {
        desc("Prepare next version")
        
        let currentVersion = getVersionNumber(xcodeproj: xcodeproj)
        let nextVersion = prompt(text: "version now: \(currentVersion), next version? (like '2.4.0' not 'v2.4.0'))")
        
        let nextSnapshotVersion = nextVersion + "-SNAPSHOT"
        incrementVersionNumber(bumpType: "nextVersion", versionNumber: nextSnapshotVersion, xcodeproj: xcodeproj)
        incrementBuildNumber(buildNumber: "1", xcodeproj: xcodeproj)
        
        commitVersionBump(message: "[fastlane][prepare-next-version] Version set to #{next_snapshot_version} with build number set to 1", xcodeproj: xcodeproj)
        pushToGitRemote()
    }
    
    func bumpBuildNumberLane() {
        desc("Bump build number")
        
        incrementBuildNumber(buildNumber: nil, xcodeproj: xcodeproj)
        commitVersionBump(message: "[fastlane][bump-build-number] Build number set to \(getBuildNumber())", xcodeproj: xcodeproj)
        pushToGitRemote()
    }
    
    func tagCurrentVersionLane() {
        desc("Tag version current version (will be removing '-SNAPSHOT'")
        
        let currentVersion = getVersionNumber(xcodeproj: xcodeproj)
        let versionToTag = String(describing: currentVersion.split(separator: "-").first)
        incrementVersionNumber(bumpType: "tagVersion", versionNumber: versionToTag, xcodeproj: xcodeproj)
        
        commitVersionBump(message: "[fastlane][tag-version] Version set to \(versionToTag) for upcoming release", xcodeproj: xcodeproj)
        addGitTag(tag: "v\(versionToTag)", buildNumber: getBuildNumber())
        
//        pushToGitRemote()
//        pushGitTags()
    }
    
    func bumpAndTagLane() {
        desc("Bump and Tag")
        
        let currentVersion = getVersionNumber()
        let nextVersion = prompt(text: "version now: \(currentVersion), next version? (like '2.4.0' not 'v2.4.0'))")
        
        incrementVersionNumber(bumpType: "nextVersion", versionNumber: nextVersion, xcodeproj: xcodeproj)
        incrementBuildNumber(buildNumber: nil, xcodeproj: xcodeproj)
        
        commitVersionBump(message: "Version bump with Fastlane to \(nextVersion)", xcodeproj: xcodeproj)
        addGitTag(tag: "v\(nextVersion)", buildNumber: getBuildNumber())
    }
    
    func buildAndDeployToFabricLane() {
        desc("Build & Deploy to Fabric")
        
        let notes = prompt(text: "release notes?")
        
        bumpBuildNumberLane()
        
        let projectVersion = getVersionNumber(xcodeproj: xcodeproj)
        let qaVersion = "\(projectVersion)-qa"
        
        incrementVersionNumber(bumpType: "qa", versionNumber: qaVersion, xcodeproj: xcodeproj)
        
        buildApp(scheme: "WomensHealthProjectApp", configuration: "QA")
        crashlytics(apiToken: "c25b0e87f2722bcf99aabfe96ebee2ff7fead4a0",
                    buildSecret: "3a8061ebe748faceeb8818267dd5f0a079e0769831d96dcbc4e373c6f7f715a5",
                    notes: notes)
        
        uploadSymbolsToCrashlytics()
        
        cleanBuildArtifacts()
    }
    
    func bumpPodspecVersionLane() {
        bumpAndTagLane()
        bumpPodspecVersionLane()
        
        podLibLint()
        podPush(repo: "https://github.com/CocoaPods/Specs.git,https://github.com/OMsignal/CocoaPodsSpecs.git", allowWarnings: "true")
    }

    // You can define as many lanes as you want

    func afterAll(currentLane: String) {
        // This block is called, only if the executed lane was successful
        // slack(
        //     message: "Successfully deployed new App Update.",
        //     slackUrl: "slackURL"
        // )
    }

    func onError(currentLane: String, errorInfo: String) {
        // slack(
        //     message: errorInfo,
        //     slackUrl: "slackUrl",
        //     success: false
        // )
    }

    // All available actions: https://docs.fastlane.tools/actions

    // fastlane reports which actions are used. No personal data is recorded.
    // Learn more at https://github.com/fastlane/fastlane/#metrics
}

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.76.0 🚫 Update available

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
slack-notifier 2.3.2
CFPropertyList 2.3.6
claide 1.0.2
colored2 3.1.2
nanaimo 0.2.3
xcodeproj 1.5.4
rouge 2.0.7
xcpretty 0.2.8
terminal-notifier 1.8.0
unicode-display_width 1.3.0
terminal-table 1.8.0
plist 3.4.0
public_suffix 2.0.5
addressable 2.5.2
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.6.4
tty-cursor 0.5.0
tty-spinner 0.8.0
babosa 1.0.2
colored 1.2
highline 1.7.10
commander-fastlane 4.4.5
excon 0.60.0
faraday 0.13.1
unf_ext 0.0.7.4
unf 0.1.4
domain_name 0.5.20170404
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
fastimage 2.1.1
gh_inspector 1.0.3
json 1.8.1
mini_magick 4.5.1
multi_json 1.13.1
multi_xml 0.6.0
rubyzip 1.2.1
security 0.1.3
xcpretty-travis-formatter 1.0.0
dotenv 2.2.1
bundler 1.16.1
faraday_middleware 0.12.2
uber 0.1.0
declarative 0.0.10
declarative-option 0.1.0
representable 3.0.4
retriable 3.1.1
mime-types-data 3.2016.0521
mime-types 3.1
little-plugger 1.1.4
logging 2.2.2
jwt 2.1.0
memoist 0.16.0
os 0.9.6
signet 0.8.1
googleauth 0.6.2
httpclient 2.8.3
google-api-client 0.13.6
libxml-ruby 3.0.0

generated on: 2018-01-18

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Yep, we’re working on it πŸ˜ƒ https://github.com/fastlane/fastlane/issues/11586

Ooof, yeah, it looks like the runner upgrader has a bug. I’ll have to take a look at that. For now, you can also use --disable_runner_upgrades and that should skip the upgrade check

Oh, that’s super weird you don’t have any changes, when you run fastlane, add --verbose to it. The upgrade checker has a ton of verbose logging, so that will help me understand why it thinks there are changes yet nothing is getting written.

@acegreen could you do another run and paste the output again?