{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/1261","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/1261/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/1261/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/1261/events","html_url":"https://github.com/fastlane/fastlane/issues/1261","id":130669020,"number":1261,"title":"Can't build the project using gym. Exit status: 1","user":{"login":"Quarezz","id":2493841,"avatar_url":"https://avatars.githubusercontent.com/u/2493841?v=3","gravatar_id":"","url":"https://api.github.com/users/Quarezz","html_url":"https://github.com/Quarezz","followers_url":"https://api.github.com/users/Quarezz/followers","following_url":"https://api.github.com/users/Quarezz/following{/other_user}","gists_url":"https://api.github.com/users/Quarezz/gists{/gist_id}","starred_url":"https://api.github.com/users/Quarezz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quarezz/subscriptions","organizations_url":"https://api.github.com/users/Quarezz/orgs","repos_url":"https://api.github.com/users/Quarezz/repos","events_url":"https://api.github.com/users/Quarezz/events{/privacy}","received_events_url":"https://api.github.com/users/Quarezz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-02T12:27:17Z","updated_at":"2016-05-26T21:34:08Z","closed_at":"2016-02-03T12:38:19Z","body":"Hi, \r\n\r\nfor some reasons, when I run gym separately - I get this result:\r\n```\r\n▸ Archive Succeeded\r\nERROR [2016-02-02 13:59:09.17]: Exit status: 1\r\n/Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane_core-0.36.1/lib/fastlane_core/ui/interface.rb:132:in `user_error!': [!] Error building the application - see the log above (FastlaneCore::Interface::FastlaneError)\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane_core-0.36.1/lib/fastlane_core/ui/ui.rb:14:in `method_missing'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/gym-1.4.0/lib/gym/error_handler.rb:52:in `handle_build_error'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/gym-1.4.0/lib/gym/runner.rb:86:in `block in build_app'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane_core-0.36.1/lib/fastlane_core/command_executor.rb:82:in `call'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane_core-0.36.1/lib/fastlane_core/command_executor.rb:82:in `execute'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/gym-1.4.0/lib/gym/runner.rb:82:in `build_app'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/gym-1.4.0/lib/gym/runner.rb:15:in `run'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/gym-1.4.0/lib/gym/manager.rb:10:in `work'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/gym-1.4.0/lib/gym/commands_generator.rb:41:in `block (2 levels) in run'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane_core-0.36.1/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/gym-1.4.0/lib/gym/commands_generator.rb:60:in `run'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/gym-1.4.0/lib/gym/commands_generator.rb:14:in `start'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/gym-1.4.0/bin/gym:6:in `<top (required)>'\r\n    from /Users/quarezz/.rvm/rubies/ruby-2.2.1/bin/gym:23:in `load'\r\n    from /Users/quarezz/.rvm/rubies/ruby-2.2.1/bin/gym:23:in `<main>'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'\r\n    from /Users/quarezz/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'\r\n```\r\nThis Exit status 1 doesn't provide any info about what is actually wrong.\r\nParams of the gym setup are following:\r\n```\r\n+---------------------------+----------------------------------------------------------------------------------------------+\r\n|                                                  Summary for gym 1.4.0                                                   |\r\n+---------------------------+----------------------------------------------------------------------------------------------+\r\n| project                   | ./Prj.xcodeproj                                                                             |\r\n| scheme                    | ****                                                                                         |\r\n| clean                     | true                                                                                         |\r\n| output_directory          | .                                                                                            |\r\n| output_name               | ****                                                                                         |\r\n| configuration             | AdHoc                                                                                        |\r\n| silent                    | false                                                                                        |\r\n| include_symbols           | true                                                                                         |\r\n| include_bitcode           | false                                                                                        |\r\n| use_legacy_build_api      | true                                                                                         |\r\n| export_method             | ad-hoc                                                                                       |\r\n| buildlog_path             | ~/Library/Logs/gym                                                                           |\r\n| provisioning_profile_path | /Users/quarezz/Documents/Job/**** |\r\n| destination               | generic/platform=iOS                                                                         |\r\n+---------------------------+----------------------------------------------------------------------------------------------+\r\n\r\n```\r\n\r\nAnd if I try and use it in fastlane - I receive error:\r\n```\r\n▸ Archive Succeeded\r\n[14:14:55]: Exit status: 1\r\n[14:14:55]: Variable Dump:\r\n[14:14:55]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>\"ios dev\"}\r\n[14:14:55]: Error building the application - see the log above\r\nSuccessfully submitted a crash report. If this is a problem with one of the tools specifically,\r\nplease submit an issue on GitHub and attach the following number to it: 'fc4086bd6fc4c43fc343b940ed916f20'\r\nThe crash report has been stored locally '/tmp/sentry_fc4086bd6fc4c43fc343b940ed916f20.json'\r\n/Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane-1.56.0/lib/fastlane/documentation/docs_generator.rb:39:in `write': [!] Permission denied @ rb_sysopen - ./fastlane/README.md (Errno::EACCES)\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane-1.56.0/lib/fastlane/documentation/docs_generator.rb:39:in `run'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane-1.56.0/lib/fastlane/lane_manager.rb:55:in `cruise_lane'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane-1.56.0/lib/fastlane/command_line_handler.rb:30:in `handle'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane-1.56.0/bin/fastlane:38:in `block (2 levels) in run'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane_core-0.36.1/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane-1.56.0/bin/fastlane:150:in `run'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1@global/gems/fastlane-1.56.0/bin/fastlane:156:in `<top (required)>'\r\n\tfrom /Users/quarezz/.rvm/rubies/ruby-2.2.1/bin/fastlane:23:in `load'\r\n\tfrom /Users/quarezz/.rvm/rubies/ruby-2.2.1/bin/fastlane:23:in `<main>'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'\r\n\tfrom /Users/quarezz/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'\r\n\r\n```\r\n\r\nI must say, that xcodebuild runs flawlessly and gives me result:\r\n```\r\n** ARCHIVE SUCCEEDED **\r\n\r\nSigning Identity:     \"iPhone Distribution: **** (****)\"\r\nProvisioning Profile: \"**** AdHoc\"  (2c56bb99-3b78-4877-9e81-72f3f56f8a1c)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/222001500","html_url":"https://github.com/fastlane/fastlane/issues/1261#issuecomment-222001500","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/1261","id":222001500,"user":{"login":"ShadyElyaski","id":947681,"avatar_url":"https://avatars.githubusercontent.com/u/947681?v=3","gravatar_id":"","url":"https://api.github.com/users/ShadyElyaski","html_url":"https://github.com/ShadyElyaski","followers_url":"https://api.github.com/users/ShadyElyaski/followers","following_url":"https://api.github.com/users/ShadyElyaski/following{/other_user}","gists_url":"https://api.github.com/users/ShadyElyaski/gists{/gist_id}","starred_url":"https://api.github.com/users/ShadyElyaski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShadyElyaski/subscriptions","organizations_url":"https://api.github.com/users/ShadyElyaski/orgs","repos_url":"https://api.github.com/users/ShadyElyaski/repos","events_url":"https://api.github.com/users/ShadyElyaski/events{/privacy}","received_events_url":"https://api.github.com/users/ShadyElyaski/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T21:34:08Z","updated_at":"2016-05-26T21:34:08Z","body":"I'm running into the same issue trying to run fastlane from Jenkins. I think it's because when Jenkins creates the workspace, all files are set to read-only. @Quarezz How did you fix this error?"}}
{"actor":{"display_login":"ShadyElyaski"}}