You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have fastlane setup with my CI/CD pipeline (CircleCI) where every month, the fastlane session will expire every 30 days or so where I don't need to enter any sort of 2FA. When it fails, I could simply run
fastlane spaceauth -u USERNAME
In my team I have 3 users/phone numbers to send 2FA to. I select my number then enter the 6 digit code, copy the value, replace the FASTLANE_SESSION env variable on CircleCI, and it should work until the next 30 days.
However, recently, I've tried doing the same and am met with this error:
> fastlane spaceauth -u USERNAME
[✔] 🚀
[22:10:39]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
Logging into to App Store Connect (USERNAME)...
Available session is not valid anymore. Continuing with normal login.
Two-factor Authentication (6 digits code) is enabled for account 'USERNAME'
More information about Two-factor Authentication: https://support.apple.com/en-us/HT204915
If you're running this in a non-interactive session (e.g. server or CI)
check out https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification
Please select a trusted phone number to send code to:
1. +1 (•••) •••-••34
2. +1 (•••) •••-••39
3. +1 (•••) •••-••21
? 2
Could not login to App Store Connect
Please check your credentials and try again.
This could be an issue with App Store Connect,
Please try unsetting the FASTLANE_SESSION environment variable by calling 'unset FASTLANE_SESSION'
(if it is set) and re-run `fastlane spaceauth`
Exception type: Spaceship::Tunes::Error
Looking for related GitHub issues on 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
[!] The request could not be completed because:
{"code"=>"-28248", "title"=>"Verification Failed", "message"=>"Verification codes can’t be sent to this phone number at this time. Please try again later.", "suppressDismissal"=>false}
I've never ran into this error before and I couldn't find anything on google. Could anyone help me? Is this an App Store Connect specific thing?
Interestingly, since this is a shared team account, when trying to log into it, I'm met with this:
Whereas my regular account doesn't get this.
My fastlane env looks like this:
✅ fastlane environment ✅
Stack
Key
Value
OS
13.2
Ruby
3.0.0
Bundler?
false
Git
git version 2.40.0
Installation Source
~/.rvm/gems/ruby-3.0.0/bin/fastlane
Host
macOS 13.2 (22D49)
Ruby Lib Dir
~/.rvm/rubies/ruby-3.0.0/lib
OpenSSL Version
OpenSSL 1.1.1t 7 Feb 2023
Is contained
false
Is homebrew
false
Is installed via Fabric.app
false
Xcode Path
~/Downloads/Xcode.app/Contents/Developer/
Xcode Version
14.3
Swift Version
5.8
System Locale
Variable
Value
LANG
en_US.UTF-8
✅
LC_ALL
LANGUAGE
fastlane files:
`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration# You can find the documentation at https://docs.fastlane.tools## For a list of all available actions, check out## https://docs.fastlane.tools/actions## For a list of all available plugins, check out## https://docs.fastlane.tools/plugins/available-plugins## Uncomment the line if you want fastlane to automatically update itself# update_fastlanedefault_platform(:ios)before_alldo |_lane,options|
setup_circle_ciendplatform:iosdodesc"Deploy a new Production build to Testflight"lane:pre_releasedo |options|
build_number=options[:build_number]beginmatch(type: "appstore",app_identifier: ["com.recorahealth.members1"],readonly: true)Dir.chdir"../.."dosh("flutter","clean")sh("flutter","build","ipa","--flavor=prod","--export-options-plist=ExportOptions.plist","--build-number=#{build_number}","-t","lib/main_prod.dart")endupload_to_testflight(ipa: "../build/ios/ipa/Recora.ipa",api_key_path: "key_file.json",skip_waiting_for_build_processing: true,skip_submission: true,itc_provider: "CSG64FXZRP",team_id: "122211503")on_success("Successfully released iOS Prod build to TestFlight")rescue=>exceptionon_error(exception)raiseendenddesc"Deploy a new Staging build to Testflight"lane:staging_releasedo |options|
build_number=options[:build_number]beginmatch(type: "appstore",app_identifier: ["com.recorahealth.members1.staging"],readonly: true)add_badge(dark: true)Dir.chdir"../.."dosh("flutter","clean")sh("flutter","build","ipa","--flavor=staging","--export-options-plist=ExportOptions_staging.plist","--build-number=#{build_number}","-t","lib/main_staging.dart")endupload_to_testflight(ipa: "../build/ios/ipa/Recora Staging.ipa",skip_waiting_for_build_processing: true,skip_submission: true,itc_provider: "CSG64FXZRP",team_id: "122211503")on_success("Successfully released iOS Staging build to TestFlight")rescue=>exceptionon_error(exception)raiseendendenddefon_success(message)slack(message: "#{message}",success: true,slack_url: "https://hooks.slack.com/services/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",)enddefon_error(exception)slack(message: "Lane failed with exception : #{exception}",success: false,slack_url: "https://hooks.slack.com/services/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",)end
`./fastlane/Appfile`
app_identifier("com.recorahealth.members1")# The bundle identifier of your appapple_id("engineering@recorahealth.com")# Your Apple email addressitc_team_id("122211503")# App Store Connect Team IDteam_id("CSG64FXZRP")# Developer Portal Team IDfor_lane:staging_releasedoapp_identifier'com.recorahealth.members1.staging'end
fastlane gems
Gem
Version
Update-Status
fastlane
2.220.0
✅ Up-To-Date
Loaded fastlane plugins:
Plugin
Version
Update-Status
fastlane-plugin-badge
1.5.0
✅ Up-To-Date
Loaded gems
Gem
Version
did_you_mean
1.5.0
artifactory
3.0.15
babosa
1.0.4
bundler
2.2.3
CFPropertyList
3.0.6
colored
1.2
highline
2.0.3
commander
4.6.0
dotenv
2.8.1
emoji_regex
3.2.3
faraday-em_http
1.0.0
faraday-em_synchrony
1.0.0
faraday-excon
1.1.0
faraday-httpclient
1.0.1
faraday-multipart
1.0.4
faraday-net_http
1.0.1
faraday-net_http_persistent
1.2.0
faraday-patron
1.0.0
faraday-rack
1.0.0
faraday-retry
1.0.3
ruby2_keywords
0.0.5
faraday
1.10.3
faraday_middleware
1.2.0
http-cookie
1.0.5
faraday-cookie_jar
0.0.7
gh_inspector
1.1.3
google-cloud-env
1.6.0
mini_magick
4.12.0
naturally
2.2.1
optparse
0.1.1
rubyzip
2.3.2
security
0.1.5
simctl
1.6.10
terminal-notifier
2.0.0
unicode-display_width
1.8.0
terminal-table
3.0.2
tty-cursor
0.7.1
tty-spinner
0.9.3
word_wrap
1.0.0
rouge
2.0.7
xcpretty
0.3.0
xcpretty-travis-formatter
1.0.1
tsort
0.1.0
set
1.0.1
uri
0.10.1
public_suffix
4.0.7
addressable
2.8.6
aws-eventstream
1.3.0
aws-sigv4
1.8.0
aws-partitions
1.883.0
jmespath
1.6.2
aws-sdk-core
3.190.3
aws-sdk-kms
1.76.0
aws-sdk-s3
1.142.0
rexml
3.2.6
excon
0.109.0
multipart-post
2.3.0
domain_name
0.6.20240107
fastimage
2.3.0
webrick
1.8.1
httpclient
2.8.3
multi_json
1.15.0
jwt
2.7.1
signet
0.18.0
os
1.1.4
memoist
0.16.2
googleauth
1.5.0
mini_mime
1.1.5
retriable
3.1.2
trailblazer-option
0.1.2
declarative
0.0.20
uber
0.1.0
representable
3.2.0
google-apis-core
0.11.0
google-apis-androidpublisher_v3
0.37.0
google-apis-playcustomapp_v1
0.13.0
rake
13.1.0
digest-crc
0.6.5
google-apis-storage_v1
0.31.0
google-apis-iamcredentials_v1
0.17.0
google-cloud-errors
1.3.1
google-cloud-core
1.6.1
google-cloud-storage
1.47.0
json
2.7.1
plist
3.7.1
tty-screen
0.8.2
nanaimo
0.3.0
colored2
3.1.2
claide
1.1.0
atomos
0.1.3
xcodeproj
1.23.0
forwardable
1.3.2
logger
1.4.3
pathname
0.1.0
shellwords
0.1.0
cgi
0.2.0
date
3.1.0
timeout
0.1.1
stringio
3.0.0
securerandom
0.1.0
openssl
2.2.0
io-nonblock
0.1.0
ipaddr
1.2.2
io-wait
0.1.0
zlib
1.1.0
resolv
0.2.0
digest
3.0.0
time
0.1.0
open-uri
0.1.0
mutex_m
0.2.0
net-protocol
0.1.0
net-smtp
0.2.1
ostruct
0.3.1
english
0.7.1
erb
2.2.0
strscan
3.0.0
abbrev
0.1.0
io-console
0.5.6
tempfile
0.1.1
delegate
0.2.0
fileutils
1.5.0
tmpdir
0.1.1
base64
0.2.0
singleton
0.1.1
open3
0.1.1
nkf
0.1.0
prettyprint
0.1.0
pp
0.1.0
find
0.1.0
yaml
0.1.1
psych
3.3.0
badge
0.13.0
fastlane-plugin-badge
1.5.0
generated on:2024-04-29
The text was updated successfully, but these errors were encountered:
We've had a similar thing happen to us on multiple occasions in the past couple of weeks/months. It appears that Apple have changed something around their 2FA / phone number validation where they have introduced a limit on the amount of times a given phone number / account can be sent a 2FA code.
Interestingly, since this is a shared team account, when trying to log into it, I'm met with this:
That's exactly it - I suggest syncing up with everybody who actively uses this account and ask them to not log-in for the next 24h or so - and then to try again. I'm having the same exact issue, where my team and I have to be really considerate of every time we try to authenticate with App Store Connect - either via the command line, fastlane or just their website - it's way to easy to lock yourself out for a full day now if you don't 👎
I have fastlane setup with my CI/CD pipeline (CircleCI) where every month, the fastlane session will expire every 30 days or so where I don't need to enter any sort of 2FA. When it fails, I could simply run
In my team I have 3 users/phone numbers to send 2FA to. I select my number then enter the 6 digit code, copy the value, replace the
FASTLANE_SESSION
env variable on CircleCI, and it should work until the next 30 days.However, recently, I've tried doing the same and am met with this error:
I've never ran into this error before and I couldn't find anything on google. Could anyone help me? Is this an App Store Connect specific thing?
Interestingly, since this is a shared team account, when trying to log into it, I'm met with this:
Whereas my regular account doesn't get this.
My
fastlane env
looks like this:✅ fastlane environment ✅
Stack
System Locale
fastlane files:
`./fastlane/Fastfile`
`./fastlane/Appfile`
fastlane gems
Loaded fastlane plugins:
Loaded gems
generated on: 2024-04-29
The text was updated successfully, but these errors were encountered: