fastlane: undefined method `get_app_info_localizations' for nil

I get fastlane error, when using this command:

fastlane precheck -u mail@domain.com -a app_ident

Any suggestions to solve problem?

Log: INFO [2020-09-10 13:05:18.47]: Successfully logged in INFO [2020-09-10 13:05:18.47]: Checking app for precheck rule violations

Looking for related GitHub issues on fastlane/fastlane… Search query: undefined method `get_app_info_localizations’ for nil

URL: https://api.github.com/search/issues?q=undefined method `get_app_info_localizations’ for nil+repo:fastlane/fastlane Found no similar issues. To create a new issue, please visit: https://github.com/fastlane/fastlane/issues/new Run fastlane env to append the fastlane environment to your issue Traceback (most recent call last): 15: from /usr/local/bin/fastlane:23:in <main>' 14: from /usr/local/bin/fastlane:23:in load’ 13: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/bin/fastlane:23:in <top (required)>' 12: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in take_off’ 11: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/commands_generator.rb:19:in start' 10: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/commands_generator.rb:71:in run’ 9: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!' 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!’ 7: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command' 6: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run’ 5: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call' 4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/commands_generator.rb:41:in block (2 levels) in run’ 3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/runner.rb:34:in run' 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/runner.rb:102:in check_for_rule_violations’ 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/rule_processor.rb:47:in process_app_and_version' /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/rule_processor.rb:134:in generate_app_items_to_check’: undefined method get_app_info_localizations' for nil:NilClass (NoMethodError) 15: from /usr/local/bin/fastlane:23:in <main>’ 14: from /usr/local/bin/fastlane:23:in load' 13: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/bin/fastlane:23:in <top (required)>’ 12: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane/lib/fastlane/cli_tools_distributor.rb:111:in take_off' 11: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/commands_generator.rb:19:in start’ 10: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/commands_generator.rb:71:in run' 9: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in run!’ 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!' 7: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in run_active_command’ 6: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run' 5: from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in call’ 4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/commands_generator.rb:41:in block (2 levels) in run' 3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/runner.rb:34:in run’ 2: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/runner.rb:102:in check_for_rule_violations' 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/rule_processor.rb:47:in process_app_and_version’ /Library/Ruby/Gems/2.6.0/gems/fastlane-2.158.0/precheck/lib/precheck/rule_processor.rb:134:in generate_app_items_to_check': [!] undefined method get_app_info_localizations’ for nil:NilClass (NoMethodError)

Env:

✅ fastlane environment ✅

Stack

Key Value
OS 10.15.6
Ruby 2.6.3
Bundler? false
Git git version 2.24.3 (Apple Git-128)
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.15.6 (19G2021)
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 11.7

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE

fastlane files:

No Fastfile found

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.158.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.3.0
slack-notifier 2.3.2
atomos 0.1.3
CFPropertyList 2.3.6
claide 1.0.3
colored2 3.1.2
nanaimo 0.3.0
xcodeproj 1.18.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.7.0
terminal-table 1.8.0
plist 3.5.0
public_suffix 4.0.5
addressable 2.7.0
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
babosa 1.0.3
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
excon 0.76.0
faraday 1.0.1
unf_ext 0.0.7.7
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
faraday_middleware 1.0.0
fastimage 2.2.0
gh_inspector 1.1.3
json 2.1.0
mini_magick 4.10.1
rubyzip 2.3.0
security 0.1.3
xcpretty-travis-formatter 1.0.0
dotenv 2.7.6
bundler 1.17.2
naturally 2.2.0
simctl 1.6.8
jwt 2.2.2
uber 0.1.0
declarative 0.0.20
declarative-option 0.1.0
representable 3.0.4
retriable 3.1.2
mini_mime 1.0.2
multi_json 1.15.0
signet 0.14.0
memoist 0.16.2
os 1.1.1
googleauth 0.13.1
httpclient 2.8.3
google-api-client 0.38.0
google-cloud-env 1.3.3
google-cloud-errors 1.0.1
google-cloud-core 1.5.0
rake 13.0.1
digest-crc 0.6.1
google-cloud-storage 1.27.0
emoji_regex 3.0.0
jmespath 1.4.0
aws-partitions 1.358.0
aws-eventstream 1.1.0
aws-sigv4 1.2.2
aws-sdk-core 3.104.4
aws-sdk-kms 1.36.0
aws-sdk-s3 1.78.0
forwardable 1.2.0
logger 1.3.0
stringio 0.0.2
ipaddr 1.2.2
openssl 2.1.2
ostruct 0.1.0
strscan 1.0.0
date 2.0.0
fileutils 1.1.0
etc 1.0.1
io-console 0.4.7
zlib 1.0.0
libxml-ruby 3.1.0
rexml 3.1.9
psych 3.1.0
mutex_m 0.1.0
webrick 1.4.2

generated on: 2020-09-10

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 11
  • Comments: 16 (4 by maintainers)

Most upvoted comments

I’m facing the same problem. Any Idea why is this happening? Seems like Apple has changed some endpoint making the endpoint for localizations fail

Still getting this error

Would be great if you could test things and comment on the pull request. This would definitely speed things up in the future. PR will be shipped with the next release.

Thanks for the input, everyone.

The comments posted after my last message here confirmed my assumptions, where only “editable” app versions were able to be prechecked. However, based on the testimonials, this sounded like a regression. So I investigated further in precheck history, and looks like prior to Sep 4th 2020 precheck could be used to check metadata of both edit and live app versions.

As I don’t see any reason to limit it to only editable versions, I modified the code to allow live versions to be prechecked as well.

Here’s the PR: https://github.com/fastlane/fastlane/pull/17738

If you guys could help us test it, that’d be super helpful! 🎉 @MarMarIV @jacque006 @jcharr1

Thanks everyone who provided more info so this could be resolved ❤️

It seems to no longer be intermittent anymore, and now happens all the time since my last post.

After my last post it’s been intermittently happening to us too.

I don’t think this is yet using the new ConnectAPI and therefore fails. More than happy to look into any PR.