Comments (14)
so since there's been no action or response to this issue, I managed to work around it by updating my flow to use the App Store Connect API to use as authentication.
Not sure if it's helpful as a solution for everyone else, but its worked for me for now. :)This is absolutely the fix for this. I would vote to close this issue, as there is a path forward, and fast lane can't likely change apple's policy on 2FA.
This solution will not work for enterprise account, since it does not have iTunes Connect
from fastlane.
Hello folks, any solution for enterprise accounts?
from fastlane.
Hi @joshdholtz !
Apologies for tagging you directly here, but I just wonder if you might be able to give your thoughts about the issue I might be facing here?
I see the last release had some changes with regards to the Apple 2FA and just wondering if you think maybe there's some relation here.
Or if you might be able to suggest what I could do to work around this for now? As my workflow is now blocked by this issue and unsure how to progress further.
Thanks! Appreciate your thoughts on this 😊
from fastlane.
so since there's been no action or response to this issue, I managed to work around it by updating my flow to use the App Store Connect API to use as authentication.
Not sure if it's helpful as a solution for everyone else, but its worked for me for now. :)
from fastlane.
Hello all, I also have this issue and it is blocking my workflow as well, I am very much interested in this subject too. Thanks.
from fastlane.
so since there's been no action or response to this issue, I managed to work around it by updating my flow to use the App Store Connect API to use as authentication.
Not sure if it's helpful as a solution for everyone else, but its worked for me for now. :)
This is absolutely the fix for this. I would vote to close this issue, as there is a path forward, and fast lane can't likely change apple's policy on 2FA.
from fastlane.
Turns out this does not set up the appstore_connect_api_key for further fastlane commands
fastlane run app_store_connect_api_key key_id:'REDACTED' issuer_id:'REDACTED' key_content:'REDACTED'
After further rtfm, I set the appstore_connect_api_key in match as mentioned here and was able to get past the 2FA 🎉
lane :"myLane" do
app_store_connect_api_key(
key_id: 'REDACTED'
issuer_id: 'REDACTED'
key_content: 'REDACTED'
)
app = "com.test.myApp"
match(
app_identifier: "#{app}",
git_branch: "#{app}",
force_for_new_devices: false,
type: "developer_id",
platform: "macos",
generate_apple_certs: false
)
end
from fastlane.
Its been a week and Im still appear to be stuck here and cant make builds via Fastlane anymore.
Is there any word on whether this is a wider issue? And any possible work arounds in the meantime?
thanks!
from fastlane.
Same issue on github action, any fix? :3
from fastlane.
Same issue on Bitrise with Deploy to App Store Connect with Deliver step lib.
from fastlane.
I was able to setup App Store Connect API for authentication successfully. But still getting the Unautorized access
on match
.
I haven't changed the password on the user. last I know it never had 2FA enabled. Do I need to now enable 2FA for my user (now) for appstore_connect_api_key to work?
SPACESHIP_SKIP_2FA_UPGRADE=1
is set in my configuration.
If you have any pointers, pls share. Thank you.
The below should setup up appstore connection via API key for further fastlane commands.
19:22:54 [06:52:53]: $ bundle exec fastlane run app_store_connect_api_key key_id:'REDACTED' issuer_id:'REDACTED' key_content:'REDACTED'
19:22:54 [06:52:53]:
19:22:54 [06:52:53]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
19:22:55 [06:52:54]: Sending anonymous analytics information
19:22:55 [06:52:54]: Learn more at https://docs.fastlane.tools/#metrics
19:22:55 [06:52:54]: No personal or sensitive data is sent.
19:22:55 [06:52:54]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
19:22:55 [06:52:54]: ---------------------------------------
19:22:55 [06:52:54]: --- Step: app_store_connect_api_key ---
19:22:55 [06:52:54]: ---------------------------------------
19:22:55 [06:52:54]: Result: {:key_id=>"REDACTED", :issuer_id=>"REDACTED", :key=>"REDACTED", :is_key_content_base64=>false, :duration=>500, :in_house=>false}
(Although not needed) I also did an explicit setting of api_key
for match
lane :"myLane" do
app = "com.test.myApp"
api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
match(
app_identifier: "#{app}",
git_branch: "#{app}",
force_for_new_devices: false,
type: "developer_id",
platform: "macos",
generate_apple_certs: false,
api_key: api_key
)
end
But still ending up with Unauthorized
error when match
runs
19:23:09 [06:53:07]: Checking out branch com.test.myApp...
19:23:09 [06:53:07]: 🔓 Successfully decrypted certificates repo
19:23:09 [06:53:07]: Verifying that the certificate and profile are still valid on the Dev Portal...
19:23:09 This account is being prompted to upgrade to 2FA
19:23:09 Attempting to automatically bypass the upgrade until a later date
19:23:09 To disable this, remove SPACESHIP_SKIP_2FA_UPGRADE=1 environment variable
19:23:13 +------------------+------------------------+
19:23:13 | Lane Context |
19:23:13 +------------------+------------------------+
19:23:13 | DEFAULT_PLATFORM | ios |
19:23:13 | PLATFORM_NAME | macos |
19:23:13 | LANE_NAME | macos myApp |
19:23:13 +------------------+------------------------+
19:23:13 [06:53:11]: Unauthorized Access
19:23:13
19:23:13 +------+------------------+-------------+
19:23:13 | fastlane summary |
19:23:13 +------+------------------+-------------+
19:23:13 | Step | Action | Time (in s) |
19:23:13 +------+------------------+-------------+
19:23:13 | 1 | default_platform | 0 |
19:23:13 | 💥 | match | 15 |
19:23:13 +------+------------------+-------------+
19:23:13
19:23:13 [06:53:11]: fastlane finished with errors
from fastlane.
The same issue persists! Even when entering the Apple API key, it keeps returning the 2FA.
from fastlane.
Turns out this does not set up the appstore_connect_api_key for further fastlane commands
fastlane run app_store_connect_api_key key_id:'REDACTED' issuer_id:'REDACTED' key_content:'REDACTED'
After further rtfm, I set the appstore_connect_api_key in match as mentioned here and was able to get past the 2FA 🎉
lane :"myLane" do app_store_connect_api_key( key_id: 'REDACTED' issuer_id: 'REDACTED' key_content: 'REDACTED' ) app = "com.test.myApp" match( app_identifier: "#{app}", git_branch: "#{app}", force_for_new_devices: false, type: "developer_id", platform: "macos", generate_apple_certs: false ) end
this suggestion worked for me but I had to change app_identifier: to ["my-app-id"]
otherwise got some error while building
from fastlane.
does it already solved?
I got the same issue here
Requesting session...
+------------------------------------+
| Lane Context |
+------------------+-----------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios reg_devices |
+------------------+-----------------+
[18:58:59]: Unauthorized Access
+---------------------------------------+
| fastlane summary |
+------+------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------+-------------+
| 1 | default_platform | 0 |
| 💥 | register_devices | 36 |
+------+------------------+-------------+
[18:58:59]: fastlane finished with errors
from fastlane.
Related Issues (20)
- upload_to_app_store does not upload release_notes.txt. No error thrown. All other metadata files are uploaded HOT 1
- Unable to upload to app store " Could not find action, lane or variable 'id'" HOT 1
- No ipa or pkg file given while uploading to app store HOT 7
- [spaceship] incomplete support for tvOS platform HOT 2
- Fastlane could not find action or lane 'get_certificates' HOT 1
- The version number has been previously used.
- `fastlane build_app` is trying to access Development provisioning profiles when run for `appstore` only with Github Actions HOT 5
- Fastlane run_tests fails when attempting to get runtimes
- Generated error ENV HOT 2
- Fastlane `2.219.0` was published without changes. HOT 2
- "ar-SA - Invalid request" when uploading metadata to Play Store with a locale it does not support HOT 1
- gym export_options : {method} resolves into empty string HOT 2
- Documentation for iOS screenshots on Xcode is outdated.
- TestFairy Action Fails with NoMethodError for key? Method on String
- Unable to ^C in response to 'Could not find fastlane ... Would you like to set fastlane up?'
- Match CLI Doc wrong? HOT 1
- [Sigh] Creating tvos provisioning profile fails when fetching devices.
- `fastlane build_app` does not apply Flutter Flavor / Xcode Scheme HOT 1
- `fastlane match appstore` fails when generating tvOS profile
- cert blocks sig 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlane.