{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/5261","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/5261/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/5261/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/5261/events","html_url":"https://github.com/fastlane/fastlane/issues/5261","id":162884645,"number":5261,"title":"Can `deliver` detect when an app is pending developer release?","user":{"login":"marcomorain","id":448001,"avatar_url":"https://avatars.githubusercontent.com/u/448001?v=3","gravatar_id":"","url":"https://api.github.com/users/marcomorain","html_url":"https://github.com/marcomorain","followers_url":"https://api.github.com/users/marcomorain/followers","following_url":"https://api.github.com/users/marcomorain/following{/other_user}","gists_url":"https://api.github.com/users/marcomorain/gists{/gist_id}","starred_url":"https://api.github.com/users/marcomorain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcomorain/subscriptions","organizations_url":"https://api.github.com/users/marcomorain/orgs","repos_url":"https://api.github.com/users/marcomorain/repos","events_url":"https://api.github.com/users/marcomorain/events{/privacy}","received_events_url":"https://api.github.com/users/marcomorain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/deliver","name":"deliver","color":"e11d21"},{"url":"https://api.github.com/repos/fastlane/fastlane/labels/feature","name":"feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-29T09:50:44Z","updated_at":"2016-06-29T21:38:38Z","closed_at":null,"body":"### New Issue Checklist\r\n\r\n- :x: Updated fastlane to the latest version - **nope, using 1.92.0**.\r\n- [x] I have read the [Contribution Guidelines]\r\n\r\n### Issue Description\r\n\r\nThanks for Fastlane! 🚀 \r\n\r\nWe are using deliver to submit to the app store for review, but we just had a case where we had a previous build of our app pending developer release, and deliver failed to submit the new build.\r\n\r\nIt was difficult to detect what went wrong. The error messages were:\r\n\r\n```\r\n[!] The request could not be completed because:\r\n\tUnexpected Error\r\n``` \r\n\r\nand\r\n\r\n```\r\n[09:00:11]: Unexpected Error\r\n```\r\n\r\nThe following line was printed in the Fastlane output twice: `ITC.apps.devReject.message.and.link.pendingDevRelease.canReject`.\r\n\r\nIs there a way that `deliver` could detect this case and print a more detailed error message?\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\n[08:58:57]: Successfully exported and compressed dSYM file\r\n[08:58:57]: Successfully exported and signed the ipa file:\r\n[08:58:57]: /Users/travis/build/flipdish/ios/flipdish-ios.ipa\r\n[08:58:57]: ---------------------\r\n[08:58:57]: --- Step: deliver ---\r\n[08:58:57]: ---------------------\r\n[08:58:57]: Login to iTunes Connect (*redacted*)\r\n[09:00:04]: Login successful\r\n+--------------------------------------------------------------------+-----------------------------+\r\n|                                      deliver 1.13.1 Summary                                      |\r\n+--------------------------------------------------------------------+-----------------------------+\r\n| ipa                                                                | /Users/travis/build/flip... |\r\n| force                                                              | true                        |\r\n| price_tier                                                         | 0                           |\r\n| automatic_release                                                  | true                        |\r\n| metadata_path                                                      | appstoreconfig/metadata     |\r\n| app_icon                                                           | appstoreconfig/appicon.png  |\r\n| app_rating_config_path                                             | appstoreconfig/metadata/... |\r\n| screenshots_path                                                   | appstoreconfig/screenshots  |\r\n| submit_for_review                                                  | true                        |\r\n| submission_information.add_id_info_uses_idfa                       | true                        |\r\n| submission_information.add_id_info_serves_ads                      | false                       |\r\n| submission_information.add_id_info_limits_tracking                 | true                        |\r\n| submission_information.add_id_info_tracks_action                   | true                        |\r\n| submission_information.add_id_info_tracks_install                  | true                        |\r\n| submission_information.content_rights_contains_third_party_content | false                       |\r\n| submission_information.export_compliance_encryption_updated        | false                       |\r\n| submission_information.export_compliance_uses_encryption           | false                       |\r\n| app_review_information.first_name                                  | *redacted*                       |\r\n| app_review_information.last_name                                   | *redacted*                    |\r\n| app_review_information.phone_number                                | *redacted*              |\r\n| app_review_information.email_address                               | *redacted*            |\r\n| app_review_information.demo_user                                   | Please use any mobile ph... |\r\n| app_review_information.demo_password                               | *redacted*                    |\r\n| app_review_information.notes                                       | Please note that this ap... |\r\n| app_version                                                        | 1.1.2377                    |\r\n| username                                                           | *redacted*            |\r\n| app_identifier                                                     | *redacted*    |\r\n| skip_binary_upload                                                 | false                       |\r\n| skip_screenshots                                                   | false                       |\r\n| skip_metadata                                                      | false                       |\r\n| dev_portal_team_id                                                 | *redacted*                  |\r\n+--------------------------------------------------------------------+-----------------------------+\r\n[09:00:05]: Making sure the latest version on iTunes Connect matches '1.1.2377' from the ipa file...\r\nITC.apps.devReject.message.and.link.pendingDevRelease.canReject\r\n[09:00:07]: Successfully set the version to '1.1.2377'\r\n[09:00:07]: Loading 'appstoreconfig/metadata/en-US/description.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/en-US/keywords.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/en-US/release_notes.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/en-US/support_url.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/en-US/marketing_url.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/en-US/name.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/en-US/privacy_url.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/copyright.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/primary_category.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/secondary_category.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/primary_first_sub_category.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/primary_second_sub_category.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/secondary_first_sub_category.txt'...\r\n[09:00:07]: Loading 'appstoreconfig/metadata/secondary_second_sub_category.txt'...\r\n[09:00:08]: Activating language en-US...\r\nITC.apps.devReject.message.and.link.pendingDevRelease.canReject\r\n[09:00:09]: Uploading metadata to iTunes Connect\r\n[09:00:10]: -------------------\r\n[09:00:10]: --- Step: slack ---\r\n[09:00:10]: -------------------\r\n[09:00:11]: Successfully sent Slack notification\r\n[09:00:11]: Variable Dump:\r\n[09:00:11]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>\"ios ci\", :WL_CONFIG=>#<Fastlane::Actions::WhitelabelConfigAction::Production:0x007f9e441bba68 @name=\"*redacted*\", @id=82, @appnameid=\"*redacted*\">, :WL_SUBMIT_FOR_REVIEW=>true, :APP_GROUP_IDENTIFIERS=>[\"*redacted*\"], :PRODUCE_APPLE_ID=>\"*redacted*\", :SIGH_PROFILE_PATH=>\"/Users/travis/build/*redacted*\", :SIGH_PROFILE_PATHS=>[\"/Users/travis/build*redacted*\"], :SIGH_UDID=>\"*redacted*\", :SIGH_PROFILE_TYPE=>\"app-store\", :IPA_OUTPUT_PATH=>\"/Users/travis/build/flipdish/ios/flipdish-ios.ipa\", :DSYM_OUTPUT_PATH=>\"/Users/travis/build/flipdish/ios/flipdish-ios.app.dSYM.zip\", :XCODEBUILD_ARCHIVE=>\"/Users/travis/Library/Developer/Xcode/Archives/2016-06-29/flipdish-ios 2016-06-29 08.48.00.xcarchive\"}\r\n[09:00:11]: Unexpected Error\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    | Switch to ios certificates lane                               | 0           |\r\n| 4    | delete_keychain                                               | 0           |\r\n| 5    | create_keychain                                               | 0           |\r\n| 6    | import_certificate                                            | 0           |\r\n| 7    | import_certificate                                            | 0           |\r\n| 8    | import_certificate                                            | 0           |\r\n| 9    | import_certificate                                            | 0           |\r\n| 10   | import_certificate                                            | 0           |\r\n| 11   | import_certificate                                            | 0           |\r\n| 12   | version_from_ci                                               | 4           |\r\n| 13   | Switch to ios store lane                                      | 0           |\r\n| 14   | Switch to ios whitelabel lane                                 | 0           |\r\n| 15   | whitelabel_config                                             | 11          |\r\n| 16   | update_app_identifier                                         | 1           |\r\n| 17   | update_app_group_identifiers                                  | 0           |\r\n| 18   | update_info_plist                                             | 0           |\r\n| 19   | update_info_plist                                             | 0           |\r\n| 20   | update_info_plist                                             | 0           |\r\n| 21   | update_info_plist                                             | 0           |\r\n| 22   | produce                                                       | 7           |\r\n| 23   | bundle exec produce enable_services --app-group               | 5           |\r\n| 24   | bundle exec produce associate_group *redacted* | 6           |\r\n| 25   | sigh                                                          | 74          |\r\n| 26   | pem                                                           | 2           |\r\n| 27   | gym                                                           | 669         |\r\n| 28   | deliver                                                       | 73          |\r\n| 29   | slack                                                         | 0           |\r\n+------+---------------------------------------------------------------+-------------+\r\n[09:00:11]: fastlane finished with errors\r\nLooking for related GitHub issues on fastlane/fastlane...\r\n➡️  Test failed. Exit status: 65\r\n   https://github.com/fastlane/fastlane/issues/1679 [closed] 30 💬\r\n   3 weeks ago\r\n[!] The request could not be completed because:\r\n\tUnexpected Error\r\n#######################################################################\r\n# fastlane 1.96.0 is available. You are on 1.92.0.\r\n# It is recommended to use the latest version.\r\n# Update using 'sudo gem update fastlane'.\r\n#######################################################################\r\n```\r\n\r\n### Environment\r\n\r\nfastlane version (run `fastlane -v`): 1.92..0\r\n\r\nDo you use bundler to execute fastlane (i.e. `bundle exec fastlane`)? yes\r\n\r\nDo you use a Ruby environment manager (e.g. `chruby`, `rbenv`, `rvm`)? rvm on Travis CI\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/229497131","html_url":"https://github.com/fastlane/fastlane/issues/5261#issuecomment-229497131","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/5261","id":229497131,"user":{"login":"marcomorain","id":448001,"avatar_url":"https://avatars.githubusercontent.com/u/448001?v=3","gravatar_id":"","url":"https://api.github.com/users/marcomorain","html_url":"https://github.com/marcomorain","followers_url":"https://api.github.com/users/marcomorain/followers","following_url":"https://api.github.com/users/marcomorain/following{/other_user}","gists_url":"https://api.github.com/users/marcomorain/gists{/gist_id}","starred_url":"https://api.github.com/users/marcomorain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcomorain/subscriptions","organizations_url":"https://api.github.com/users/marcomorain/orgs","repos_url":"https://api.github.com/users/marcomorain/repos","events_url":"https://api.github.com/users/marcomorain/events{/privacy}","received_events_url":"https://api.github.com/users/marcomorain/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T21:38:38Z","updated_at":"2016-06-29T21:38:38Z","body":"Thanks Val. I don't have an easy method to reproduce since it requires submitting a app the App Store, getting approval, and then submitting again. "}}
{"actor":{"display_login":"marcomorain"}}