{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/5341","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/5341/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/5341/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/5341/events","html_url":"https://github.com/fastlane/fastlane/issues/5341","id":164139880,"number":5341,"title":"Custom project path with agvtool & increment_build_number.","user":{"login":"cartfisk","id":8764375,"avatar_url":"https://avatars.githubusercontent.com/u/8764375?v=3","gravatar_id":"","url":"https://api.github.com/users/cartfisk","html_url":"https://github.com/cartfisk","followers_url":"https://api.github.com/users/cartfisk/followers","following_url":"https://api.github.com/users/cartfisk/following{/other_user}","gists_url":"https://api.github.com/users/cartfisk/gists{/gist_id}","starred_url":"https://api.github.com/users/cartfisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartfisk/subscriptions","organizations_url":"https://api.github.com/users/cartfisk/orgs","repos_url":"https://api.github.com/users/cartfisk/repos","events_url":"https://api.github.com/users/cartfisk/events{/privacy}","received_events_url":"https://api.github.com/users/cartfisk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/action","name":"action","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-06T18:13:43Z","updated_at":"2016-09-29T14:04:07Z","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\nAttempting to use fastlane with an Ionic framework Cordova project. I have my fastlane config directory at `../..` relative to my Xcode project located in `platforms/ios` however agvtool is not recognizing this and is looking for the project in the working directory rather than the path I gave fastlane during init (`platforms/ios`).\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\nmobile-build-server git:81e7e33 ❯ fastlane dev                                                                                                                        ⏎ ✹ ✭\r\n[10:51:09]: -------------------------------------------------\r\n[10:51:09]: --- Step: Verifying required fastlane version ---\r\n[10:51:09]: -------------------------------------------------\r\n[10:51:09]: fastlane version valid\r\n[10:51:09]: ------------------------------\r\n[10:51:09]: --- Step: default_platform ---\r\n[10:51:09]: ------------------------------\r\n[10:51:09]: Driving the lane 'ios dev' 🚀\r\n[10:51:09]: --------------------------------------------\r\n[10:51:09]: --- Step: latest_testflight_build_number ---\r\n[10:51:09]: --------------------------------------------\r\n[10:51:14]: Fetching the latest build number for version 0.0.1\r\n[10:51:15]: Latest upload is build number: 5\r\n[10:51:15]: ------------------------------------\r\n[10:51:15]: --- Step: increment_build_number ---\r\n[10:51:15]: ------------------------------------\r\n[10:51:15]: $ cd /Users/build/Jenkins/workspace/mobile-build-server && agvtool new-version -all 6 && cd -\r\n[10:51:15]: ▸ There are no Xcode project files in this directory.  agvtool needs a project to operate.\r\n[10:51:15]: Make sure to follow the steps to setup your Xcode project: https://developer.apple.com/library/ios/qa/qa1827/_index.html\r\n[10:51:15]: Variable Dump:\r\n[10:51:15]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>\"ios dev\", :LATEST_TESTFLIGHT_BUILD_NUMBER=>5}\r\n[10:51:15]: Exit status of command 'cd /Users/build/Jenkins/workspace/mobile-build-server && agvtool new-version -all 6 && cd -' was 3 instead of 0.\r\nThere are no Xcode project files in this directory.  agvtool needs a project to operate.\r\n\r\n\r\n+------+-------------------------------------+-------------+\r\n|                     fastlane summary                     |\r\n+------+-------------------------------------+-------------+\r\n| Step | Action                              | Time (in s) |\r\n+------+-------------------------------------+-------------+\r\n| 1    | Verifying required fastlane version | 0           |\r\n| 2    | default_platform                    | 0           |\r\n| 3    | latest_testflight_build_number      | 5           |\r\n| 4    | increment_build_number              | 0           |\r\n+------+-------------------------------------+-------------+\r\n\r\n[10:51:15]: fastlane finished with errors\r\n\r\nLooking for related GitHub issues on fastlane/fastlane...\r\n\r\nFound no similar issues. To create a new issue, please visit:\r\nhttps://github.com/fastlane/fastlane/issues/new\r\n\r\n[!] Exit status of command 'cd /Users/build/Jenkins/workspace/mobile-build-server && agvtool new-version -all 6 && cd -' was 3 instead of 0.\r\nThere are no Xcode project files in this directory.  agvtool needs a project to operate.\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\nfastlane_version \"1.97.2\"\r\n\r\ndefault_platform :ios\r\n\r\nplatform :ios do\r\n  before_all do\r\n    ENV[\"SLACK_URL\"] = \"https://hooks.slack.com/services/xxxxxxxxxxx\"\r\n  end\r\n\r\n  desc \"Submit a new Beta Build to Apple TestFlight\"\r\n  desc \"This will also make sure the profile is up to date\"\r\n  lane :dev do\r\n    increment_build_number({\r\n      build_number: latest_testflight_build_number(\r\n        app_identifier: \"com.xxxxx.xxxxx\"\r\n      ) + 1\r\n    })\r\n\r\n    gym(\r\n      scheme: \"Mobile\"\r\n    )\r\n    # Upload to Testflight\r\n    pilot(\r\n      app_identifier: \"com.xxxxx.xxxxx\",\r\n      skip_waiting_for_build_processing: true\r\n    )\r\n\r\n  end\r\n\r\n  # You can define as many lanes as you want\r\n\r\n  after_all do |lane|\r\n    # This block is called, only if the executed lane was successful\r\n\r\n    # slack(\r\n    #   message: \"Successfully deployed new App Update.\"\r\n    # )\r\n  end\r\n\r\n  error do |lane, exception|\r\n    # slack(\r\n    #   message: exception.message,\r\n    #   success: false\r\n    # )\r\n  end\r\nend\r\n```\r\n\r\n### Environment\r\nOS X 10.11.5\r\n\r\nfastlane version (run `fastlane -v`): 1.97.2\r\n\r\n- [ ] Do you use bundler to execute fastlane (i.e. `bundle exec fastlane`)?\r\n- [x] Do you use a Ruby environment manager (e.g. `chruby`, `rbenv`, `rvm`)? – `rbenv`\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/250475213","html_url":"https://github.com/fastlane/fastlane/issues/5341#issuecomment-250475213","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/5341","id":250475213,"user":{"login":"fotiDim","id":2326415,"avatar_url":"https://avatars.githubusercontent.com/u/2326415?v=3","gravatar_id":"","url":"https://api.github.com/users/fotiDim","html_url":"https://github.com/fotiDim","followers_url":"https://api.github.com/users/fotiDim/followers","following_url":"https://api.github.com/users/fotiDim/following{/other_user}","gists_url":"https://api.github.com/users/fotiDim/gists{/gist_id}","starred_url":"https://api.github.com/users/fotiDim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fotiDim/subscriptions","organizations_url":"https://api.github.com/users/fotiDim/orgs","repos_url":"https://api.github.com/users/fotiDim/repos","events_url":"https://api.github.com/users/fotiDim/events{/privacy}","received_events_url":"https://api.github.com/users/fotiDim/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T14:04:07Z","updated_at":"2016-09-29T14:04:07Z","body":"I have the same issue. My `fastlane` folder is on the same level as my `.xcworkspace`. Didn't try locally..."}}
{"actor":{"display_login":"fotiDim"}}