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

eas init still show me the wrong project #2152

Closed
SBRKH opened this issue Dec 13, 2023 · 7 comments
Closed

eas init still show me the wrong project #2152

SBRKH opened this issue Dec 13, 2023 · 7 comments
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@SBRKH
Copy link

SBRKH commented Dec 13, 2023

Build/Submit details page URL

No response

Summary

Hello,
I've got a RN project with 3 expo projects, each project have it's own app.json, credentials,...
I need to regenerate IOS certificate for one of those project (the 2nd) but when I try eas credentials, i've got :
EAS project not configured.
✔ Existing EAS project found for @expo_pseudo/first_project (id = id_project). Configure this project? … no
EAS project ID configuration canceled for @expo_pseudo/first_project. Run 'eas init' to configure.

When i try eas init, it's always show me the first project even when i put

"extra": {
      "env": "snd_project_name",
      "eas": {
        "projectId": "snd_project_id"
      }
    },

like the doc said
So i can't regen my ios cert.
I must have missed something, but I don't know what...

Thanks for the help

Managed or bare?

MANAGED

Environment

expo-env-info 1.0.5 environment info:
System:
OS: macOS 14.2
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.9.0 - /usr/local/bin/node
Yarn: 3.1.1 - /usr/local/bin/yarn
npm: 10.1.0 - /usr/local/bin/npm
IDEs:
Xcode: /undefined - /usr/bin/xcodebuild
npmPackages:
expo: ^49.0.11 => 49.0.11
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.72.6 => 0.72.6
react-native-web: ~0.19.9 => 0.19.9
npmGlobalPackages:
eas-cli: 5.9.1
expo-cli: 6.3.10
Expo Workflow: managed

Error output

No response

Reproducible demo or steps to reproduce from a blank project

idk what steps i can produce...

@SBRKH SBRKH added the needs review Issue is ready to be reviewed by a maintainer label Dec 13, 2023
@szdziedzic
Copy link
Member

szdziedzic commented Dec 14, 2023

Hi, do you have the correct name, slug, and owner fields value in your app config?

@SBRKH
Copy link
Author

SBRKH commented Dec 14, 2023

Hi, do you have the correct name, slug, and owner fields value in your app config?

Hello, thank you for the reply !
You can see the app.json of the project i'm trying to init :

{
  "expo": {
    "name": "My App",
    "icon": "assets/project_name/apple/icon.png",
    "version": "3.0.3",
    "splash": {
      "image": "assets/project_name/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#FFFFFF"
    },
    "slug": "project_name",
    "extra": {
      "env": "project_name",
      "eas": {
        "projectId": "projectId"
      }
    },
    "ios": {
      "icon": "assets/project_name/apple/icon.png",
      "bundleIdentifier": "fr.my.package",
      "buildNumber": "490030003",
      "supportsTablet": true,
      "infoPlist": {
        "NSCameraUsageDescription": "aa",
        "NSPhotoLibraryUsageDescription": "aa",
        "NSPhotoLibraryAddUsageDescription": "aa"
      }
    },
    "android": {
      "icon": "assets/project_name/android/icon.png",
      "package": "fr.my.package",
      "versionCode": 490030003,
      "permissions": [
        "READ_EXTERNAL_STORAGE",
        "WRITE_EXTERNAL_STORAGE",
        "CAMERA",
        "ACCESS_MEDIA_LOCATION"
      ]
    }
  }
}

Did i miss something ?

@szdziedzic
Copy link
Member

Can you try to add the owner field to your app config? It's the name of the account to which the project is linked on EAS

@szdziedzic
Copy link
Member

@SBRKH
Copy link
Author

SBRKH commented Dec 14, 2023

@szdziedzic I try to add the owner field to the app.json but the result it's the same => eas init and eas credentials show me the wrong project.

@SBRKH
Copy link
Author

SBRKH commented Dec 18, 2023

I'm still blocked by this issue, can anyone help me ?

@SBRKH SBRKH closed this as completed Dec 21, 2023
@nitai-b
Copy link

nitai-b commented Nov 15, 2024

I am blocked by this issue as well. Not sure what to do. I've reached this point in my search to bring back notifications to my production android apps. I want to test with another eas project and I'm here. I can't link my local expo project to another eas project (remote).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants