fastlane: deliver fails to save screenshots with "must be a .jpeg, .jpg, or .png (...)"

New Issue Checklist

Issue Description

Complete output when running fastlane, including the stack trace and command used

Using snapshot and deliver to upload screenshots fails with comments about wrong screenshot sizes. I’ve checked that the sized are correct.

[11:29:27]: Login to iTunes Connect (andreas@domain.com)
[11:29:29]: Login successful

+--------------------------------------+------------------------+
|                    deliver 1.14.0 Summary                     |
+--------------------------------------+------------------------+
| app_review_information.first_name    | Andreas                |
| app_review_information.last_name     | Skielboe               |
| app_review_information.phone_number  | +45 00000000           |
| app_review_information.email_address | andreas@domain.com     |
| app_identifier                       | com.domain.app         |
| username                             | andreas@domain.com     |
| screenshots_path                     | ./fastlane/screenshots |
| metadata_path                        | ./fastlane/metadata    |
| app_version                          | 1.2.3                  |
| ipa                                  | AppName.ipa            |
| skip_binary_upload                   | false                  |
| skip_screenshots                     | false                  |
| skip_metadata                        | false                  |
| force                                | false                  |
| submit_for_review                    | false                  |
| automatic_release                    | false                  |
+--------------------------------------+------------------------+

[11:29:29]: Making sure the latest version on iTunes Connect matches '1.2.3' from the ipa file...
[11:29:30]: '1.2.3' is the latest version on iTunes Connect
[11:29:30]: Loading './fastlane/metadata/en-US/description.txt'...
[11:29:30]: Loading './fastlane/metadata/en-US/keywords.txt'...
[11:29:30]: Loading './fastlane/metadata/en-US/release_notes.txt'...
[11:29:30]: Loading './fastlane/metadata/en-US/support_url.txt'...
[11:29:30]: Loading './fastlane/metadata/en-US/marketing_url.txt'...
[11:29:30]: Loading './fastlane/metadata/en-US/name.txt'...
[11:29:30]: Loading './fastlane/metadata/en-US/privacy_url.txt'...
[11:29:30]: Loading './fastlane/metadata/copyright.txt'...
[11:29:30]: Loading './fastlane/metadata/primary_category.txt'...
[11:29:30]: Loading './fastlane/metadata/secondary_category.txt'...
[11:29:30]: Loading './fastlane/metadata/primary_first_sub_category.txt'...
[11:29:30]: Loading './fastlane/metadata/primary_second_sub_category.txt'...
[11:29:30]: Loading './fastlane/metadata/secondary_first_sub_category.txt'...
[11:29:30]: Loading './fastlane/metadata/secondary_second_sub_category.txt'...
[11:29:30]: Verifying the upload via the HTML file can be disabled by either adding
[11:29:30]: `force true` to your Deliverfile or using `deliver --force`
Does the Preview on path './Preview.html' look okay for you? (y/n)
y
[11:29:37]: HTML file confirmed...
[11:29:38]: Activating language en-US...
[11:29:41]: Uploading metadata to iTunes Connect
[11:29:43]: Successfully uploaded initial set of metadata to iTunes Connect
[11:29:44]: Starting with the upload of screenshots...
[11:29:44]: Uploading 15 screenshots for language en-US
[11:29:44]: Uploading './fastlane/screenshots/en-US/iPhone7-0.png'...
[11:29:47]: Uploading './fastlane/screenshots/en-US/iPhone7-1.png'...
[11:29:50]: Uploading './fastlane/screenshots/en-US/iPhone7-2.png'...
[11:29:52]: Uploading './fastlane/screenshots/en-US/iPhone7-3.png'...
[11:29:54]: Uploading './fastlane/screenshots/en-US/iPhone7-4.png'...
[11:29:58]: Uploading './fastlane/screenshots/en-US/iPhone7Plus-0.png'...
[11:30:04]: Uploading './fastlane/screenshots/en-US/iPhone7Plus-1.png'...
[11:30:07]: Uploading './fastlane/screenshots/en-US/iPhone7Plus-2.png'...
[11:30:12]: Uploading './fastlane/screenshots/en-US/iPhone7Plus-3.png'...
[11:30:17]: Uploading './fastlane/screenshots/en-US/iPhone7Plus-4.png'...
[11:30:19]: Uploading './fastlane/screenshots/en-US/iPhoneSE-0.png'...
[11:30:22]: Uploading './fastlane/screenshots/en-US/iPhoneSE-1.png'...
[11:30:24]: Uploading './fastlane/screenshots/en-US/iPhoneSE-2.png'...
[11:30:26]: Uploading './fastlane/screenshots/en-US/iPhoneSE-3.png'...
[11:30:29]: Uploading './fastlane/screenshots/en-US/iPhoneSE-4.png'...
[11:30:31]: Saving changes

Looking for related GitHub issues on fastlane/fastlane...

[11:30:35]: Error finding relevant GitHub issues: undefined method `map' for nil:NilClass
Did you mean?  tap

[!] The request could not be completed because:
    In order to save your changes, all Screenshots for 4.7-Inchs must be a .jpeg, .jpg, or .png file that is 1334x750 or 750x1334 pixels, at least 72 DPI, and in the RGB color space. In order to save your changes, all Screenshots for 4.7-Inchs must be a .jpeg, .jpg, or .png file that is 1334x750 or 750x1334 pixels, at least 72 DPI, and in the RGB color space. In order to save your changes, all Screenshots for 4.7-Inchs must be a .jpeg, .jpg, or .png file that is 1334x750 or 750x1334 pixels, at least 72 DPI, and in the RGB color space. In order to save your changes, all Screenshots for 4.7-Inchs must be a .jpeg, .jpg, or .png file that is 1334x750 or 750x1334 pixels, at least 72 DPI, and in the RGB color space. In order to save your changes, all Screenshots for 4.7-Inchs must be a .jpeg, .jpg, or .png file that is 1334x750 or 750x1334 pixels, at least 72 DPI, and in the RGB color space. Screenshots for 4-inch iPhone 5 and iPod touch (5th generation) Retina display must be 1136x640, 1136x600, 640x1136 or 640x1096 pixels, at least 72 DPI, in the RGB color space, and in the JPG or PNG format. Screenshots for 4-inch iPhone 5 and iPod touch (5th generation) Retina display must be 1136x640, 1136x600, 640x1136 or 640x1096 pixels, at least 72 DPI, in the RGB color space, and in the JPG or PNG format. Screenshots for 4-inch iPhone 5 and iPod touch (5th generation) Retina display must be 1136x640, 1136x600, 640x1136 or 640x1096 pixels, at least 72 DPI, in the RGB color space, and in the JPG or PNG format. Screenshots for 4-inch iPhone 5 and iPod touch (5th generation) Retina display must be 1136x640, 1136x600, 640x1136 or 640x1096 pixels, at least 72 DPI, in the RGB color space, and in the JPG or PNG format. Screenshots for 4-inch iPhone 5 and iPod touch (5th generation) Retina display must be 1136x640, 1136x600, 640x1136 or 640x1096 pixels, at least 72 DPI, in the RGB color space, and in the JPG or PNG format. In order to save your changes, all Screenshots for 5.5-Inchs must be a .jpeg, .jpg, or .png file that is 2208x1242 or 1242x2208 pixels, at least 72 DPI, and in the RGB color space. In order to save your changes, all Screenshots for 5.5-Inchs must be a .jpeg, .jpg, or .png file that is 2208x1242 or 1242x2208 pixels, at least 72 DPI, and in the RGB color space. In order to save your changes, all Screenshots for 5.5-Inchs must be a .jpeg, .jpg, or .png file that is 2208x1242 or 1242x2208 pixels, at least 72 DPI, and in the RGB color space. In order to save your changes, all Screenshots for 5.5-Inchs must be a .jpeg, .jpg, or .png file that is 2208x1242 or 1242x2208 pixels, at least 72 DPI, and in the RGB color space. In order to save your changes, all Screenshots for 5.5-Inchs must be a .jpeg, .jpg, or .png file that is 2208x1242 or 1242x2208 pixels, at least 72 DPI, and in the RGB color space. In order to save your changes, all Screenshots for 4.7-Inchs must be a .jpeg, .jpg, or .png file that is 1334x750 or 750x1334 pixels, at least 72 DPI, and in the RGB color space. Screenshots for 4-inch iPhone 5 and iPod touch (5th generation) Retina display must be 1136x640, 1136x600, 640x1136 or 640x1096 pixels, at least 72 DPI, in the RGB color space, and in the JPG or PNG format. In order to save your changes, all Screenshots for 5.5-Inchs must be a .jpeg, .jpg, or .png file that is 2208x1242 or 1242x2208 pixels, at least 72 DPI, and in the RGB color space.

Configuration Files

Please copy the complete content of your Fastfile and any other configuration files you use below:

Snapfile:

# A list of devices you want to take the screenshots from
devices([
    "iPhone SE",
    "iPhone 7",
    "iPhone 7 Plus",
])

languages([
  "en-US",
])

# The name of the scheme which contains the UI Tests
scheme "UITests"

# Where should the resulting screenshots be stored?
output_directory "./fastlane/screenshots"

Environment

fastlane version: fastlane 1.105.0 snapshot version: snapshot 1.16.1 deliver version: deliver 1.14.0

Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? no

Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? rbenv

Xcode 8.0 macOS Sierra 10.12

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 5
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Hey everyone, thanks for reporting this. Last night I thought that something must be wrong with my screenshots, or with my account, when I wasn’t able to upload any screenshots any more. I looked close into the issue, prepared the pull request https://github.com/fastlane/fastlane/pull/6423 and went to sleep. Thanks @asfalcone for taking this over this morning and pushing the new release 🚀

Thanks all for the comments and confirming the fixes in #6423. We’ll get a release out very soon! 👍

Confirmed, it’s all about the pending pull request. I fixed it temporarily by replacing the file content from /usr/local/lib/ruby/gems/2.3.0/gems/spaceship-0.34.2/lib/spaceship/tunes/app_version.rb with the new app_version.rb file from the commit i previously mentioned. I guess it’s just a matter of time until they release the fix.

@flafuente, Thanks It’s working…