{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/12707","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/12707/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/12707/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/12707/events","html_url":"https://github.com/fastlane/fastlane/issues/12707","id":330201780,"node_id":"MDU6SXNzdWUzMzAyMDE3ODA=","number":12707,"title":"gym ignores Dir.chdir","user":{"login":"the4thfloor","id":1191649,"node_id":"MDQ6VXNlcjExOTE2NDk=","avatar_url":"https://avatars1.githubusercontent.com/u/1191649?v=4","gravatar_id":"","url":"https://api.github.com/users/the4thfloor","html_url":"https://github.com/the4thfloor","followers_url":"https://api.github.com/users/the4thfloor/followers","following_url":"https://api.github.com/users/the4thfloor/following{/other_user}","gists_url":"https://api.github.com/users/the4thfloor/gists{/gist_id}","starred_url":"https://api.github.com/users/the4thfloor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the4thfloor/subscriptions","organizations_url":"https://api.github.com/users/the4thfloor/orgs","repos_url":"https://api.github.com/users/the4thfloor/repos","events_url":"https://api.github.com/users/the4thfloor/events{/privacy}","received_events_url":"https://api.github.com/users/the4thfloor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-07T10:00:07Z","updated_at":"2018-06-08T14:31:32Z","closed_at":null,"author_association":"NONE","body":"<!-- Thanks for helping _fastlane_! Before you submit your issue, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->\r\n\r\n### New Issue Checklist\r\n\r\n- [x] Updated fastlane to the latest version\r\n- [x] I read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n- [x] I read [docs.fastlane.tools](https://docs.fastlane.tools)\r\n- [x] I searched for [existing GitHub issues](https://github.com/fastlane/fastlane/issues)\r\n\r\n### Issue Description\r\nI change the working directory with `Dir.chdir` but `gym` can't find the workspace file :-(\r\nAfter `Dir.chdir` I added `sh(\"pwd\")` and it prints the right directory path like:\r\n```\r\n[11:46:54]: $ pwd\r\n[11:46:54]: ▸ /Users/ralphbergmann/development/flutter/foo/store\r\n```\r\nBut `gym` fails with:\r\n```\r\n[11:47:38]: Workspace file not found at path '/Users/ralphbergmann/development/flutter/foo/ios/Runner.xcworkspace'\r\n```\r\n\r\n### Environment\r\n\r\n<details><summary>✅ fastlane environment ✅</summary>\r\n\r\n### Stack\r\n\r\n| Key                         | Value                                                          |\r\n| --------------------------- | -------------------------------------------------------------- |\r\n| OS                          | 10.13.4                                                        |\r\n| Ruby                        | 2.3.3                                                          |\r\n| Bundler?                    | false                                                          |\r\n| Git                         | git version 2.15.1 (Apple Git-101)                             |\r\n| Installation Source         | /usr/local/bin/fastlane                                        |\r\n| Host                        | Mac OS X 10.13.4 (17E202)                                      |\r\n| Ruby Lib Dir                | /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib |\r\n| OpenSSL Version             | LibreSSL 2.2.7                                                 |\r\n| Is contained                | false                                                          |\r\n| Is homebrew                 | false                                                          |\r\n| Is installed via Fabric.app | false                                                          |\r\n| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/                    |\r\n| Xcode Version               | 9.4                                                            |\r\n\r\n\r\n### System Locale\r\n\r\n| Variable | Value       |   |\r\n| -------- | ----------- | - |\r\n| LANG     | en_US.UTF-8 | ✅ |\r\n| LC_ALL   | en_US.UTF-8 | ✅ |\r\n| LANGUAGE |             |   |\r\n\r\n\r\n### fastlane files:\r\n\r\n<details><summary>`./fastlane/Fastfile`</summary>\r\n\r\n```ruby\r\nfastlane_version \"2.33.0\"\r\n\r\n\r\nplatform :flutter do\r\n\r\n\r\n    lane :alphaBuild do\r\n\r\n        # Return the number of commits in current git branch\r\n        build_number = number_of_commits()\r\n\r\n\r\n        Dir.chdir \"../core\" do\r\n            sh(\"pwd\")\r\n            sh(\"flutter\", \"packages\", \"get\")\r\n            sh(\"flutter\", \"clean\")\r\n        end\r\n\r\n        Dir.chdir \"../store\" do\r\n\r\n            sh(\"pwd\")\r\n            sh(\"flutter\", \"packages\", \"get\")\r\n            sh(\"flutter\", \"clean\")\r\n            sh(\"flutter\", \"build\", \"ios\", \"--release\", \"--no-codesign\", \"--build-number=#{build_number}\")\r\n\r\n            # Easily sync your certificates and profiles across your team using git\r\n            match(\r\n                type: \"enterprise\",\r\n                team_id: \"foobar\",\r\n                git_branch: \"foobar\",\r\n                app_identifier: \"foobar\"\r\n            )\r\n\r\n            # Easily build and sign your app using gym\r\n            gym(\r\n                workspace: \"ios/Runner.xcworkspace\",\r\n                scheme: \"Jenkins\",\r\n                silent: true,\r\n                clean: true,\r\n                configuration: \"Release\",\r\n                export_method: 'enterprise'\r\n            )\r\n\r\n        end\r\n\r\n    end\r\n\r\nend\r\n\r\n```\r\n</details>\r\n\r\n<details><summary>`./fastlane/Appfile`</summary>\r\n\r\n```ruby\r\napple_id \"bergmann@foobar.com\" # Your Apple email address\r\n\r\n```\r\n</details>\r\n\r\n### fastlane gems\r\n\r\n| Gem      | Version | Update-Status |\r\n| -------- | ------- | ------------- |\r\n| fastlane | 2.97.0  | ✅ Up-To-Date  |\r\n\r\n\r\n### Loaded fastlane plugins:\r\n\r\n**No plugins Loaded**\r\n\r\n\r\n<details><summary><b>Loaded gems</b></summary>\r\n\r\n| Gem                       | Version      |\r\n| ------------------------- | ------------ |\r\n| did_you_mean              | 1.0.0        |\r\n| slack-notifier            | 2.3.2        |\r\n| atomos                    | 0.1.2        |\r\n| claide                    | 1.0.2        |\r\n| colored2                  | 3.1.2        |\r\n| nanaimo                   | 0.2.4        |\r\n| xcodeproj                 | 1.5.7        |\r\n| rouge                     | 2.0.7        |\r\n| xcpretty                  | 0.2.8        |\r\n| terminal-notifier         | 1.8.0        |\r\n| unicode-display_width     | 1.3.0        |\r\n| terminal-table            | 1.8.0        |\r\n| plist                     | 3.4.0        |\r\n| addressable               | 2.5.2        |\r\n| multipart-post            | 2.0.0        |\r\n| word_wrap                 | 1.0.0        |\r\n| public_suffix             | 2.0.5        |\r\n| tty-screen                | 0.6.4        |\r\n| tty-cursor                | 0.5.0        |\r\n| tty-spinner               | 0.8.0        |\r\n| babosa                    | 1.0.2        |\r\n| colored                   | 1.2          |\r\n| highline                  | 1.7.10       |\r\n| commander-fastlane        | 4.4.6        |\r\n| faraday                   | 0.14.0       |\r\n| unf_ext                   | 0.0.7.5      |\r\n| unf                       | 0.1.4        |\r\n| domain_name               | 0.5.20170404 |\r\n| http-cookie               | 1.0.3        |\r\n| faraday-cookie_jar        | 0.0.6        |\r\n| fastimage                 | 2.1.1        |\r\n| mini_magick               | 4.5.1        |\r\n| multi_json                | 1.13.1       |\r\n| multi_xml                 | 0.6.0        |\r\n| rubyzip                   | 1.2.1        |\r\n| security                  | 0.1.3        |\r\n| xcpretty-travis-formatter | 1.0.0        |\r\n| bundler                   | 1.16.1       |\r\n| faraday_middleware        | 0.12.2       |\r\n| naturally                 | 2.1.0        |\r\n| simctl                    | 1.6.3        |\r\n| uber                      | 0.1.0        |\r\n| declarative               | 0.0.10       |\r\n| declarative-option        | 0.1.0        |\r\n| representable             | 3.0.4        |\r\n| retriable                 | 3.1.1        |\r\n| mime-types-data           | 3.2016.0521  |\r\n| mime-types                | 3.1          |\r\n| little-plugger            | 1.1.4        |\r\n| logging                   | 2.2.2        |\r\n| jwt                       | 2.1.0        |\r\n| memoist                   | 0.16.0       |\r\n| os                        | 0.9.6        |\r\n| signet                    | 0.8.1        |\r\n| googleauth                | 0.6.2        |\r\n| httpclient                | 2.8.3        |\r\n| google-api-client         | 0.21.2       |\r\n| emoji_regex               | 0.1.1        |\r\n| io-console                | 0.4.6        |\r\n| excon                     | 0.62.0       |\r\n| CFPropertyList            | 3.0.0        |\r\n| libxml-ruby               | 2.9.0        |\r\n| json                      | 2.1.0        |\r\n</details>\r\n\r\n\r\n*generated on:* **2018-06-07**\r\n</details>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/395779247","html_url":"https://github.com/fastlane/fastlane/issues/12707#issuecomment-395779247","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/12707","id":395779247,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTc3OTI0Nw==","user":{"login":"johnknapprs","id":16902323,"node_id":"MDQ6VXNlcjE2OTAyMzIz","avatar_url":"https://avatars1.githubusercontent.com/u/16902323?v=4","gravatar_id":"","url":"https://api.github.com/users/johnknapprs","html_url":"https://github.com/johnknapprs","followers_url":"https://api.github.com/users/johnknapprs/followers","following_url":"https://api.github.com/users/johnknapprs/following{/other_user}","gists_url":"https://api.github.com/users/johnknapprs/gists{/gist_id}","starred_url":"https://api.github.com/users/johnknapprs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnknapprs/subscriptions","organizations_url":"https://api.github.com/users/johnknapprs/orgs","repos_url":"https://api.github.com/users/johnknapprs/repos","events_url":"https://api.github.com/users/johnknapprs/events{/privacy}","received_events_url":"https://api.github.com/users/johnknapprs/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T14:31:32Z","updated_at":"2018-06-08T14:31:32Z","author_association":"NONE","body":"https://docs.fastlane.tools/advanced/#directory-behavior"}}
{"actor":{"display_login":"johnknapprs"}}