eas-cli: Error: Cookie not in this host's domain. Cookie:developer-mdn.apple.com Request:developer.apple.com
Build/Submit details page URL
No response
Summary
Building locally / trying to push a build to the cloud is throw the following auth error:
✔ Apple ID: … **********
› Restoring session /Users/izakfilmalter/.app-store/auth/izak@steeple.app/cookie
› Session expired Local session
› Using password for ********** from your local Keychain
Learn more: https://docs.expo.dev/distribution/security#keychain
✔ Logged in New session
Authentication with Apple Developer Portal failed!
Error: Cookie not in this host's domain. Cookie:developer-mdn.apple.com Request:developer.apple.com
Managed or bare?
Bare
Environment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.1
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
Yarn: 3.4.1 - ~/.nvm/versions/node/v16.19.0/bin/yarn
npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
IDEs:
Android Studio: Electric Eel 2022.1.1 Patch 1 Electric Eel 2022.1.1 Patch 1
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
npmGlobalPackages:
eas-cli: 3.3.2
expo-cli: 6.1.0
Expo Workflow: bare
Some dependencies are incompatible with the installed expo package version:
- @react-native-community/netinfo - expected version: 9.3.5 - actual version installed: 9.3.6
- expo-image-picker - expected version: ~14.0.2 - actual version installed: 14.1.0
- react - expected version: 18.1.0 - actual version installed: 18.2.0
- react-dom - expected version: 18.1.0 - actual version installed: 18.2.0
- react-native - expected version: 0.70.5 - actual version installed: 0.70.6
- react-native-gesture-handler - expected version: ~2.8.0 - actual version installed: 2.9.0
- react-native-pager-view - expected version: 6.0.1 - actual version installed: 6.1.1
- react-native-reanimated - expected version: ~2.12.0 - actual version installed: 2.14.4
- react-native-svg - expected version: 13.4.0 - actual version installed: 13.6.0
- react-native-webview - expected version: 11.23.1 - actual version installed: 11.24.0
Your project may not work correctly until you install the correct versions of the packages.
To install the correct versions of these packages, please run: expo doctor --fix-dependencies,
or install individual packages by running expo install [package-name ...]
Error output
✔ Apple ID: … **********
› Restoring session /Users/izakfilmalter/.app-store/auth/izak@steeple.app/cookie
› Session expired Local session
› Using password for ********** from your local Keychain
Learn more: https://docs.expo.dev/distribution/security#keychain
✔ Logged in New session
Authentication with Apple Developer Portal failed!
Error: Cookie not in this host's domain. Cookie:developer-mdn.apple.com Request:developer.apple.com
Reproducible demo or steps to reproduce from a blank project
Try and build a local iOS build.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 75
- Comments: 142 (4 by maintainers)
@Oskya from the discord channel gave me a hint that builds without login works, I tried and it is building now
Just try selecting no for the
Do you want to loginquestionUpdate: run
npm install -g eas-clifor the definitive solution.SUPER dirty workaround!
/usr/local/lib/node_modules/eas-cli)node_modules/@expo/apple-utils/build/index.jsignoreError:r.ignoreCookieErrorsand replace toignoreError:trueUpdating eas cli version fixed the problem
Updating my eas-cli to version 3.5.2 fixed the issue.
We are aware of the issue, and are currently investigating it. Keep an eye on our status page for updates: https://status.expo.dev/incidents/thkksr16ctcr?u=3m49hn47l584
Upgrading to eas-cli 3.5.2 fixed this for me.
npm install -g eas-cliafter updating eas cli to 3.5.2 build and submit worked
We’re monitoring the situation after the release of eas-cli@3.5.2. If you run into any new issues after installing the new eas-cli version, please report them here. Thank you for your patience!
Updating the eas-cli version fixed the problem for me. Just run the command:
npm install -g eas-cliand it supposed to work
I had the same issue
Updating my eas-cli version solved it for me.
npm install -g eas-cliHad same issue Upgrading to
3.5.2solved my issue as wellnpm install -g eas-cliMake sure to update to
eas.jsonfile"version": "3.7.2",too. It was causing my errors.I also have been hitting the same issue with the latest. Temporary workaround is to go back to older version. Uninstall the latest version and install this version. npm install -g eas-cli@3.7.2
eas-cli update fixed the problem.
Quick fix that worked for me
✔ Do you want to log in to your Apple account? … y/nJust hit No on this step.Issue is back,
npm install -g eas-cli@latestnot helping.version: eas-cli/7.1.3 darwin-arm64 node-v20.9.0
Im getting the same issue too. You can start build without the login option, but it continues if you try uploading your build to store.
I am also having the same issue. Installing latest CLI doesnt work and selecting no to logging in also does not work.
I am having his issue for the first time now too
@opeah solution worked for me!!
(remove)
yarn global remove eas-cli(re-install)
yarn add remove eas-cliMe too, I’m currently having this problem for the first time eas-cli@7.1.3 darwin-arm64 node-v20.9.0
✔ Logged in New session Authentication with Apple Developer Portal failed! Cookie not in this host’s domain. Cookie:developer-mdn.apple.com Request:developer.apple.com
I think I found a temporary solution to this problem.
Use the command ‘eas build --platform ios --clear-cache’
When it asks you ‘√ Do you want to log in to your Apple account?’ Press Y to log into your account.
When the error appears, enter the link of your files (The underlined with green in the image down), when you enter that file (cookie.json or something like that), delete everything that appears there, don’t worry, now we will solve that.
Now use again the command ‘eas build --platform ios --clear-cache’
When it asks you ‘√ Do you want to log in to your Apple account?’ Press N to not log into your account.
With the command like that it will automatically fill everything we deleted in the cookie.json file in an updated way.
Then will create the .ipa file normally, then use ‘eas submit -p ios --latest’ to upload it to AppStoreConnect.
It worked normal for me when I created it this way without any more problems. Until they resolve the issue it may be a temporary solution.
@audieleon try changing
keyPasswordtopasswordI was able to get it to build successfully using local credentials.
This fixed my case, too.
I’m still seeing the cookie error after updating to 3.5.2 when using the credential manager. I’ve tried just about all of the different options and they all seem to have the same results. I am trying to update a push notification cert that is expiring tomorrow.
The new version with the fix from @brentvatne,
3.5.2, was just released. Updated it and it’s now working as expected!The older 3.7.2 version passes the login but it doesn’t seem to support the ENV vars, I have a different APP ID for the staging version, so it doesn’t work for me. 😔
Worked for me, thank you! I was on eas-cli/7.1.3 darwin-arm64 node-v20.11.0 when it didnt work for me.
Same problem for me with exactly the same text as above. On eas-cli version 7.1.2.
Selecting no to login allowed the build to continue successfully in this case.
Seems there’s more going on that just this Cookie issue. Everyone just needs to upgrade to the latest version of
eas-cli- its that easy.See: #1714 And: https://status.expo.dev/incidents/lzbndzp3ql1z
Just upgrading for me didn’t work (even with 3.6.0). I had to remove it completely and reinstall, now it works.
Upgrading eas-cli version fixed the problem for me too
npm install -g eas-cliWe’re considering the issue resolved. Please open a new issue for any new issues you might encounter.
Just build your app without ios login. and add this your eas.json
then;
eas submit --platform iosAnd your submit is OK! That’s it!
Yes, its worked! My windows path:
C:\Users\User\AppData\Roaming\npm\node_modules\eas-cli\node_modules\@expo\apple-utils\buildThis worked for me after doing
eas build --platform iosyou get a link to your .ipa that you can get and downloadI also had to pass
--type iosalong with creating an app specific password https://appleid.apple.com/ .Said no to login, download the ipa file, use transporter to upload the file, seems to work.
https://github.com/expo/eas-cli/issues/2224
Boa, resolveu aqui pra mim também!
meu
eas.jsontá assimGreat temporary solution for me as well
Thanks you so much, worked for me too. Got my build on App store connect and about to submit app for review. This issue will probably get fixed in a day or two and update to the newest version will take care of it, but I am in a time crunch so I can’t wait. Thanks for the solution again, you saved me a good amount of stress.
Same issue +1
Worked for me!
updating to eas-cli worked.
I used this command: sudo npm install --global eas-cli --force sudo because of my permission/access on mac and force because it already existed so it threw an error. Then i tried building again and it worked at the log in step (which it didnt before updating eas-cli)
Works for me as well 👍🏼 Thanks
This let me go through the first step, but then when generating new app store connect api key it fails again.
This worked for me when running
eas build --platform ios, but not witheas submit --platform ios --latest. AddingascAppIdtoeas.jsonmadeeas submitwork for me. Guide for ascAppId hereHi, I am also following this issue right now, and I went to https://github.com/expo/eas-cli/issues/1672#issuecomment-1416940702 and was able to build, but I am having trouble submitting. I am having trouble submitting. Has anyone solved this problem?
After eas built the .ipa, I was similarly not able to use eas submit. So I used the command line
xcrun altool --upload-app -f ~/Downloads/application-xxxxx.ipa -t ios -u appleDevEmail@x.com -p aaaa-aaaa-aaaa-aaaaFor the password i went here and created an app specific password https://appleid.apple.com/account/manage
Build is going now. Thank you.
Thanks for the suggestion. Had high hopes for this. Set up the certs exactly as specified, and I got this result:
The contents of my credentials.json are
Anyone seen this before?
anyone on a mac can use local credentials https://docs.expo.dev/app-signing/local-credentials/
Edit: Removed error, this is working for others.
same issue