Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cookie not in this host's domain. Cookie:developer-mdn.apple.com Request:developer.apple.com #1672

Closed
izakfilmalter opened this issue Feb 4, 2023 · 142 comments

Comments

@izakfilmalter
Copy link

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/[email protected]/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/[email protected]/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.

@izakfilmalter izakfilmalter added the needs review Issue is ready to be reviewed by a maintainer label Feb 4, 2023
@tomasikp
Copy link

tomasikp commented Feb 4, 2023

I was about to file the same thing.

@Lamonarch87
Copy link

Lamonarch87 commented Feb 4, 2023

+1

same issue for cloud builds, no solution at the moment even if building without apple auth with expo stored data.

@neypalma79
Copy link

Hi, there´s any solution to this error? Greetings

@hasanfd
Copy link

hasanfd commented Feb 4, 2023

Same error, also a stackoverflow question here

@hasanfd
Copy link

hasanfd commented Feb 4, 2023

@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 login question

Update: run npm install -g eas-cli for the definitive solution.

@nickreese
Copy link

+1

@atakansavas
Copy link

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.

@davram88
Copy link

davram88 commented Feb 4, 2023

+1

@assada
Copy link

assada commented Feb 4, 2023

image

@feRpicoral
Copy link

I'm having the same issue

@kollinmurphy
Copy link

happening to me too

@levimann24
Copy link

I am also having the same issue.

@vitor-js
Copy link

vitor-js commented Feb 4, 2023

I'm having the same issue

@feRpicoral
Copy link

The solution I'm using is selecting 'no' when prompted to login to the Apple account, and then uploading the build manually with xcrun altool --upload-app -f <PathToFile>.ipa -u <Username> -p <Password>.

@guillaumegaluz
Copy link

guillaumegaluz commented Feb 4, 2023

i'm having the same issue when running eas device:create and eas build --profile development --platform ios

@RyoIto
Copy link

RyoIto commented Feb 4, 2023

+1

@omaribanez10
Copy link

Hi, I'm having the same problem a few hours ago it was working fine and now I get an error Error: Cookie not in this host's domain. Cookie:developer-mdn.apple.com Request:developer.apple.com

@RationalChestnut
Copy link

+1

1 similar comment
@mehmet-boz
Copy link

+1

@sidsarasvati
Copy link

same issue
image

@audieleon
Copy link

I'm also getting this error. The option to check no for logging in is no help while debugging something that only happens on physical devices. Any word on this?

@audieleon
Copy link

audieleon commented Feb 5, 2023

Deleting the cookie and running through Apple login again also fails.

Also, earlier I tried to restart my mac after deleting the cookie. No dice. How hard down are we?

@ruegreen
Copy link

ruegreen commented Feb 5, 2023

Said no to login, download the ipa file, use transporter to upload the file, seems to work.

@minakian
Copy link

minakian commented Feb 5, 2023

anyone on a mac can use local credentials
https://docs.expo.dev/app-signing/local-credentials/

Edit: Removed error, this is working for others.

@audieleon
Copy link

Said no to login, download the ipa file, use transporter to upload the file, seems to work.

Tried this, but I get:
` ** ARCHIVE FAILED **
** ARCHIVE FAILED **

Exit status: 65`

Which means code signing isn't working (on the EAS hosted build and the local build).

@ruegreen
Copy link

ruegreen commented Feb 5, 2023

Interesting wonder why my build in EAS went fine if code signing isnt working ?

@douglasld2
Copy link

Eu estou com o mesmo erro!

@audieleon
Copy link

anyone on a mac can use local credentials https://docs.expo.dev/app-signing/local-credentials/

Edit: This is also getting "ARCHIVE FAILED" as commented below.

Thanks for the suggestion. Had high hopes for this. Set up the certs exactly as specified, and I got this result:
Screenshot 2023-02-04 at 6 48 28 PM

The contents of my credentials.json are

{
  "ios": {
    "provisioningProfilePath": "ios/certs/AudieSheridanZeroProvisioning.mobileprovision",
    "distributionCertificate": {
      "path": "ios/certs/AudieSheridanZeroDev.p12",
      "keyPassword": "<password>"
    }
  }
}

Anyone seen this before?

@Ansh09-chawla
Copy link

+1

@Mykyta-Chernenko
Copy link

same here

@ghost
Copy link

ghost commented Feb 10, 2024

Same issue here.

eas-cli/7.1.3 darwin-arm64 node-v18.17.1

@danielgolan
Copy link

+1

1 similar comment
@eirikhanasand
Copy link

+1

@bharathanand012
Copy link

bharathanand012 commented Feb 10, 2024

+1 same issue

@guillaumegaluz
Copy link

+1

1 similar comment
@rgomezp
Copy link

rgomezp commented Feb 10, 2024

+1

@KYZNCODE-Sebastian-Roese

+1 same issue

@smeitei
Copy link

smeitei commented Feb 11, 2024

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 [email protected]

@ugur-akin
Copy link

Same issue on eas-cli/7.1.3 wsl-x64 node-v18.17.1

@gustavoelizalde
Copy link

Same issue here

VERSION
eas-cli/7.1.3 darwin-x64 node-v18.18.2

@jackfriks
Copy link

Issue is back, npm install -g eas-cli@latest not helping.

version: eas-cli/7.1.3 darwin-arm64 node-v20.9.0

same issue, back one year later. npm i -g eas-cli not fixing.

@htcdang
Copy link

htcdang commented Feb 11, 2024

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 [email protected]

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.

@eckslol
Copy link

eckslol commented Feb 11, 2024

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 [email protected]

Make sure to update to eas.json file "version": "3.7.2", too. It was causing my errors.

@zubko
Copy link

zubko commented Feb 11, 2024

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. 😔

@FranklysG
Copy link

+1

1 similar comment
@zandvakiliramin
Copy link

+1

@bharathanand012
Copy link

bharathanand012 commented Feb 11, 2024

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 [email protected]

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.

@joshuadunning
Copy link

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 [email protected]

Great temporary solution for me as well

@FranklysG
Copy link

FranklysG commented Feb 11, 2024

Eu também tenho encontrado o mesmo problema com o mais recente. A solução temporária é voltar para a versão mais antiga. Desinstale a versão mais recente e instale esta versão. npm instalar -g [email protected]

Boa, resolveu aqui pra mim também!

meu eas.json tá assim

"cli": {
    "version": ">= 0.56.0"
  }

@rgomezp
Copy link

rgomezp commented Feb 11, 2024

@eirikhanasand There are two occurrences, be sure to replace them both and save the file!

ignoreerrortrue

I did, unfortunately having no luck with this..

I use environment variables, so I can't revert to the old version. But...

This worked!!

@MariuzM
Copy link

MariuzM commented Feb 11, 2024

Same for me started having this issue where before was working fine even using old CLI

@rei-shaholli
Copy link

same here, i'm also getting this email from apple when submitting the app with the 3.7.2 eas-cli:

ITMS-90725: SDK version issue - This app was built with the iOS 16.4 SDK. Starting April 29, 2024, all iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution.

Apple Developer Relations

@MariuzM
Copy link

MariuzM commented Feb 11, 2024

Just fixed the issue by switching to [email protected]. I realized that I was using both yarn and npm to manage global packages and that was causing some problems, so i just deleted yarn.lock and ran npm install -g [email protected].

I also updated eas.json to have:

"cli": {
    "version": "7.1.3",
},

I dont understand how it worked for you, for me same issue still

@brentvatne brentvatne reopened this Feb 11, 2024
@MariuzM
Copy link

MariuzM commented Feb 11, 2024

#2224

@brentvatne
Copy link
Member

let's consolidate discussion in #2224 then

@expo expo locked and limited conversation to collaborators Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests