{"action":"opened","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/3602","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/3602/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/3602/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/3602/events","html_url":"https://github.com/fastlane/fastlane/issues/3602","id":139194331,"number":3602,"title":"\"increment_build_number\" and \"increment_version_number\" fail to update main info.plist file.","user":{"login":"siburb","id":1744275,"avatar_url":"https://avatars.githubusercontent.com/u/1744275?v=3","gravatar_id":"","url":"https://api.github.com/users/siburb","html_url":"https://github.com/siburb","followers_url":"https://api.github.com/users/siburb/followers","following_url":"https://api.github.com/users/siburb/following{/other_user}","gists_url":"https://api.github.com/users/siburb/gists{/gist_id}","starred_url":"https://api.github.com/users/siburb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siburb/subscriptions","organizations_url":"https://api.github.com/users/siburb/orgs","repos_url":"https://api.github.com/users/siburb/repos","events_url":"https://api.github.com/users/siburb/events{/privacy}","received_events_url":"https://api.github.com/users/siburb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-08T06:44:47Z","updated_at":"2016-03-08T06:44:47Z","closed_at":null,"body":"### New Issue Checklist\r\n\r\n- [ X ] Updated fastlane to the latest version\r\n- [ X ] I have read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n\r\n### Issue Description\r\n\r\nRunning the \"increment_build_number\" and \"increment_version_number\" actions correctly increments the values everywhere apart from the main info.plist file for the app. The \"Current Project Version\" value is incremented successfully for both the Project, and the two targets (app and tests). The plist for the tests target is also incremented successfully, however only the main plist for the app is left out. This of course means that the builds uploaded to Hockey have incorrect build and version numbers.\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\nSBB-MacBook-Pro:Rec.IT sbb.moko$ fastlane hockey\r\n[14:25:33]: -------------------------------------------------\r\n[14:25:33]: --- Step: Verifying required fastlane version ---\r\n[14:25:33]: -------------------------------------------------\r\n[14:25:33]: fastlane version valid\r\n[14:25:33]: ------------------------------\r\n[14:25:33]: --- Step: default_platform ---\r\n[14:25:33]: ------------------------------\r\n[14:25:33]: Driving the lane 'ios hockey' 🚀\r\n[14:25:33]: ------------------------------------\r\n[14:25:33]: --- Step: increment_build_number ---\r\n[14:25:33]: ------------------------------------\r\n[14:25:33]: $ cd /Users/sbb.moko/Documents/Rec.IT && agvtool next-version -all\r\n[14:25:33]: ▸ Setting version of project REC.IT to:\r\n[14:25:33]: ▸ 550.\r\n[14:25:33]: ▸ Also setting CFBundleVersion key (assuming it exists)\r\n[14:25:33]: ▸ Updating CFBundleVersion in Info.plist(s)...\r\n[14:25:33]: ▸ Updated CFBundleVersion in \"REC.IT.xcodeproj/../REC.ITUITests/UITestInfo.plist\" to 550\r\n[14:25:33]: ▸ Updated CFBundleVersion in \"REC.IT.xcodeproj/../Rec.IT/REC.IT-Info.plist\" to 550\r\n[14:25:34]: ------------------\r\n[14:25:34]: --- Step: sigh ---\r\n[14:25:34]: ------------------\r\n\r\n+-------------------------------------+---------------------------------+\r\n|                        Summary for sigh 1.4.0                         |\r\n+-------------------------------------+---------------------------------+\r\n| adhoc                               | true                            |\r\n| force                               | true                            |\r\n| skip_install                        | false                           |\r\n| development                         | false                           |\r\n| app_identifier                      | com.mokosocialmedia.Rec-IT      |\r\n| username                            | xxxxxxxxxxx@xxxxxxxxxxx.com |\r\n| ignore_profiles_with_different_name | false                           |\r\n| skip_fetch_profiles                 | false                           |\r\n| skip_certificate_verification       | false                           |\r\n+-------------------------------------+---------------------------------+\r\n\r\n[14:25:34]: Starting login with user 'xxxxxxxxxx@xxxxxxxxxxx.com'\r\n[14:25:38]: Successfully logged in\r\n[14:25:38]: Fetching profiles...\r\n[14:25:49]: Found 3 matching profile(s)\r\n[14:25:49]: Updating the profile to include all devices\r\n[14:25:55]: Downloading provisioning profile...\r\n[14:25:56]: Successfully downloaded provisioning profile...\r\n[14:25:56]: Installing provisioning profile...\r\n/Users/sbb.moko/Documents/Rec.IT/fastlane/provisioning/AdHoc_com.mokosocialmedia.Rec-IT.mobileprovision\r\n[14:25:56]: Setting Provisioning Profile type to 'ad-hoc'\r\n[14:25:56]: --------------------------------------\r\n[14:25:56]: --- Step: increment_version_number ---\r\n[14:25:56]: --------------------------------------\r\n[14:25:57]: $ cd /Users/sbb.moko/Documents/Rec.IT && agvtool new-marketing-version 2.6.2\r\n[14:25:57]: ▸ Setting CFBundleShortVersionString of project REC.IT to:\r\n[14:25:57]: ▸ 2.6.2.\r\n[14:25:57]: ▸ Updating CFBundleShortVersionString in Info.plist(s)...\r\n[14:25:57]: ▸ Updated CFBundleShortVersionString in \"REC.IT.xcodeproj/../REC.ITUITests/UITestInfo.plist\" to 2.6.2\r\n[14:25:57]: ▸ Updated CFBundleShortVersionString in \"REC.IT.xcodeproj/../Rec.IT/REC.IT-Info.plist\" to 2.6.2\r\n```\r\n\r\n### Configuration Files\r\n\r\nPlease copy the complete content of your `Fastfile` and any other configuration files you use below:\r\n\r\nFastfile:\r\n```ruby\r\n# This is the minimum version number required.\r\n# Update this, if you use features of a newer version\r\nfastlane_version \"1.37.0\"\r\n\r\ndefault_platform :ios\r\n\r\nplatform :ios do\r\n  before_all do\r\n  end\r\n  \r\n  desc \"Bump build number, commit & push to remote\"\r\n  lane :incrementBuild do\r\n    \r\n    # Bump build number\r\n    increment_build_number\r\n  \r\n    # Commit and push to remote\r\n    commit_version_bump(\r\n      message: 'Build number bump by fastlane - buildnumber lane',\r\n      force: true\r\n    )\r\n    push_to_git_remote\r\n  end\r\n\r\n  desc \"Deploy a new build via HockeyApp\"\r\n  lane :hockey do\r\n  \r\n    # Bump build number\r\n    increment_build_number\r\n    \r\n    # Download and install the latest AdHoc profile\r\n    sigh(\r\n      adhoc: true,\r\n      force: true,\r\n      output_path: \"./fastlane/provisioning\"\r\n    )\r\n    \r\n    # Set version number to the one at the top of the CHANGELOG\r\n    readme = File.read(\"../CHANGELOG.md\")\r\n    latest_version = readme.split(\"\\n## \").first\r\n    first_line = latest_version.split(\"\\n\").first\r\n    version_number = first_line.split(\" \")[1]\r\n    \r\n    increment_version_number(\r\n        version_number: version_number\r\n    )\r\n\r\n    # Generate release notes from CHANGELOG\r\n    release_notes = latest_version.split(\"\\n\")[1..-1].join(\"\\n\")\r\n    puts release_notes\r\n    \r\n    # Create the IPA file - save in Temp folder\r\n    profileUDID = lane_context[SharedValues::SIGH_UDID]\r\n    puts \"Profile UUID: #{profileUDID}\"\r\n    gym(\r\n      xcargs: \"PROVISIONING_PROFILE=#{profileUDID}\",\r\n      scheme: \"xxxxxxx\",\r\n      silent: true\r\n    )\r\n    \r\n    # Deploy via HockeyApp\r\n    markdown_type = '1'\r\n    hockey(\r\n      api_token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',\r\n      notes_type: markdown_type,\r\n      notes: release_notes\r\n    )\r\n    \r\n    # Make sure our directory is clean, except for changes Fastlane has made\r\n    clean_build_artifacts\r\n    \r\n    # Commit and push to remote\r\n    commit_version_bump(\r\n      message: 'Build number bump by fastlane - hockey lane',\r\n      force: true\r\n    )\r\n    push_to_git_remote\r\n  end\r\n  \r\n  desc \"Upload a new build to iTunesConnect\"\r\n  lane :itunes do\r\n  \r\n    # Bump build number\r\n    increment_build_number\r\n    \r\n    # Make sure everything is committed\r\n    ensure_git_status_clean\r\n    \r\n    # Download and install the latest App Store profile\r\n    sigh(\r\n      output_path: \"~/Documents/Temp\"\r\n    )\r\n    \r\n    # Create the IPA file - save in Temp folder\r\n    gym(\r\n      scheme: 'xxxxxx',\r\n      silent: true,\r\n      output_directory: \"~/Documents/Temp/\"\r\n    )\r\n    \r\n    # Just upload the build - do nothing else\r\n    deliver(\r\n      skip_screenshots: true,\r\n      skip_metadata: true,\r\n      automatic_release: false,\r\n      submit_for_review: false\r\n    )\r\n    \r\n    # Make sure our directory is clean, except for changes Fastlane has made\r\n    clean_build_artifacts\r\n    \r\n    # Commit and push to remote\r\n    commit_version_bump(\r\n      message: 'Build Version Bump by fastlane',\r\n      force: true\r\n    )\r\n    push_to_git_remote\r\n  end\r\n\r\n  after_all do |lane|\r\n    # This block is called, only if the executed lane was successful\r\n  end\r\n\r\n  error do |lane, exception|\r\n  end\r\nend\r\n```\r\n\r\n### Environment\r\n\r\nfastlane version (fastlane -v): v1.66.0\r\nDo you use bundler, rbenv or rvm? NO\r\n"}}