fastlane: "Invalid screen size" error for iPad due to invalid screen size in device_types.rb
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
Framed iPad 10.2 inch screenshots are 1620 x 2160 because of this line in device_types.rb
. But according to this page Apple expects 1668 x 2224. The discrepancy is causing the screenshot upload to fail.
(Fastlane’s error message says: Invalid screen size (Actual size is 1620x2160...)
.)
Command executed
The error is created by frameit
and detected by upload_to_app_store
.
Complete output when running fastlane, including the stack trace and command used
... [19:52:13]: --- Step: upload_to_app_store --- [19:52:13]: --------------------------------- [19:52:13]: Successfully loaded '/Users/.../fastlane/Deliverfile' 📄±----------------------------±-------------------------------------+ | Detected Values from ‘./fastlane/Deliverfile’ | ±----------------------------±-------------------------------------+ … ±----------------------------±-------------------------------------+
[19:52:13]: Login to App Store Connect (…) [19:52:14]: Login successful
±-------------------------------------±-------------------------------------+ | deliver 2.174.0 Summary | ±-------------------------------------±-------------------------------------+ | app_version | … | | skip_screenshots | false | | screenshots_path | ./fastlane/screenshots | | metadata_path | ./fastlane/metadata | | username | … | | app_identifier | … | | platform | ios | | edit_live | false | | use_live_version | false | | skip_binary_upload | true | | skip_metadata | true | | skip_app_version_update | false | | force | false | | overwrite_screenshots | true | | submit_for_review | false | | reject_if_possible | false | | phased_release | false | | reset_ratings | false | | app_rating_config_path | ./fastlane/metadata/app_rating_conf | | | ig.json | | submission_information.add_id_info_ | false | | serves_ads | | | submission_information.add_id_info_ | false | | uses_idfa | | | submission_information.content_righ | false | | ts_contains_third_party_content | | | submission_information.export_compl | false | | iance_uses_encryption | | | team_id | … | | dev_portal_team_id | … | | run_precheck_before_submit | true | | precheck_default_rule_level | error | | copyright | … | | name.default | … | | ignore_language_directory_validatio | false | | n | | | precheck_include_in_app_purchases | true | ±-------------------------------------±-------------------------------------+ … [19:52:19]: 🚫 Invalid screenshots were detected! Here are the reasons: [19:52:19]: 🚫 Error: ./fastlane/screenshots/en-US/iPad (8th generation)-1-Overview_framed.png - Invalid screen size (Actual size is 1620x2160. See the specifications to fix https://help.apple.com/app-store-connect/#/devd274dd925) [19:52:19]: 🚫 Error: ./fastlane/screenshots/en-US/iPad (8th generation)-2-Ready_framed.png - Invalid screen size (Actual size is 1620x2160. See the specifications to fix https://help.apple.com/app-store-connect/#/devd274dd925) …
Environment
🚫 fastlane environment 🚫
Stack
Key | Value |
---|---|
OS | 11.2.1 |
Ruby | 2.6.3 |
Bundler? | true |
Git | git version 2.30.0 |
Installation Source | /usr/local/bin/fastlane |
Host | macOS 11.2.1 (20D74) |
Ruby Lib Dir | /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib |
OpenSSL Version | LibreSSL 2.8.3 |
Is contained | false |
Is homebrew | false |
Is installed via Fabric.app | false |
Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
Xcode Version | 12.4 |
System Locale
Variable | Value | |
---|---|---|
LANG | en_CA.UTF-8 | ✅ |
LC_ALL | ||
LANGUAGE |
fastlane files:
`./fastlane/Fastfile`
...
`./fastlane/Appfile`
...
fastlane gems
Gem | Version | Update-Status |
---|---|---|
fastlane | 2.174.0 | 🚫 Update available |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
Gem | Version |
---|---|
did_you_mean | 1.3.0 |
bundler | 1.17.2 |
etc | 1.0.1 |
forwardable | 1.2.0 |
rake | 13.0.3 |
CFPropertyList | 3.0.3 |
public_suffix | 4.0.6 |
addressable | 2.7.0 |
artifactory | 3.0.15 |
atomos | 0.1.3 |
aws-eventstream | 1.1.0 |
aws-partitions | 1.427.0 |
aws-sigv4 | 1.2.2 |
jmespath | 1.4.0 |
aws-sdk-core | 3.112.0 |
aws-sdk-kms | 1.42.0 |
aws-sdk-s3 | 1.88.1 |
babosa | 1.0.4 |
claide | 1.0.3 |
colored | 1.2 |
colored2 | 3.1.2 |
highline | 1.7.10 |
commander-fastlane | 4.4.6 |
declarative | 0.0.20 |
declarative-option | 0.1.0 |
digest-crc | 0.6.3 |
unf_ext | 0.0.7.7 |
unf | 0.1.4 |
domain_name | 0.5.20190701 |
dotenv | 2.7.6 |
emoji_regex | 3.2.1 |
excon | 0.79.0 |
faraday-net_http | 1.0.1 |
multipart-post | 2.0.0 |
ruby2_keywords | 0.0.4 |
faraday | 1.3.0 |
http-cookie | 1.0.3 |
faraday-cookie_jar | 0.0.7 |
faraday_middleware | 1.0.0 |
fastimage | 2.2.2 |
gh_inspector | 1.1.3 |
jwt | 2.2.2 |
memoist | 0.16.2 |
multi_json | 1.15.0 |
os | 1.1.1 |
signet | 0.14.1 |
googleauth | 0.15.1 |
httpclient | 2.8.3 |
mini_mime | 1.0.2 |
uber | 0.1.0 |
representable | 3.0.4 |
retriable | 3.1.2 |
google-api-client | 0.38.0 |
rexml | 3.2.4 |
webrick | 1.7.0 |
google-apis-core | 0.2.1 |
google-apis-iamcredentials_v1 | 0.1.0 |
google-apis-storage_v1 | 0.2.0 |
google-cloud-env | 1.4.0 |
google-cloud-errors | 1.0.1 |
google-cloud-core | 1.5.0 |
google-cloud-storage | 1.30.0 |
json | 2.5.1 |
mini_magick | 4.11.0 |
plist | 3.6.0 |
rubyzip | 2.3.0 |
security | 0.1.3 |
naturally | 2.2.1 |
simctl | 1.6.8 |
slack-notifier | 2.3.2 |
terminal-notifier | 2.0.0 |
unicode-display_width | 1.7.0 |
terminal-table | 1.8.0 |
tty-screen | 0.8.1 |
tty-cursor | 0.7.1 |
tty-spinner | 0.9.3 |
word_wrap | 1.0.0 |
nanaimo | 0.3.0 |
xcodeproj | 1.19.0 |
rouge | 2.0.7 |
xcpretty | 0.3.0 |
xcpretty-travis-formatter | 1.0.1 |
generated on: 2021-02-19
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (7 by maintainers)
Yes, there’s a JSON file (
~/.fastlane/frameit/latest/offsets.json
) that has infoframeit
needs. I think the correct way to get the latest frames is to use: