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

xcode project not updating on pull stating path not found #3590

Closed
2 tasks done
SpottyAerospaceJess opened this issue Mar 31, 2024 · 5 comments
Closed
2 tasks done

xcode project not updating on pull stating path not found #3590

SpottyAerospaceJess opened this issue Mar 31, 2024 · 5 comments
Assignees
Labels
dev tools Issues related to developer tools question General question transferred This issue was transferred from another Amplify project

Comments

@SpottyAerospaceJess
Copy link

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

20.11.1

Amplify CLI Version

12.10.3

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No manual changes made

Describe the bug

When running Amplify pull the Xcode project cannot be updated. The error states that the path is not found. This is for an ios app using react native and amplify. The Xcode file is in the ios folder within the project root directory. I have tried manually updating the path but it did not resolve the issue.

Expected behavior

Successful pull incl. updating the Xcode project.

Reproduction steps

  1. Create react project.
  2. Navigate to react project root directory and initiate amplify.
  3. Input access keys from amplify studio app.
  4. Experience error: Updating Xcode project:
    🚫 xcodeProject:
    -- Caused by: notFound(path: "")
    🛑 Command failed with exit code 1: /

Project Identifier

a79cf338859ac519db799d321ca10ffb

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.
@SpottyAerospaceJess SpottyAerospaceJess added the pending-triage Issue is pending triage label Mar 31, 2024
@ykethan
Copy link
Member

ykethan commented Apr 1, 2024

Hey👋 thanks for raising this! The issue appears to be similar to #3139.
I'm going to transfer this over to our swift repository for better assistance.
While the team dives into the issue, could you add --debug to the Amplify command and provide us the full stack trace.

@ykethan ykethan transferred this issue from aws-amplify/amplify-cli Apr 1, 2024
@ykethan ykethan added the transferred This issue was transferred from another Amplify project label Apr 1, 2024
@harsh62 harsh62 self-assigned this Apr 1, 2024
@harsh62 harsh62 added dev tools Issues related to developer tools and removed pending-triage Issue is pending triage labels Apr 1, 2024
@harsh62
Copy link
Member

harsh62 commented Apr 1, 2024

A fix was recently made, validating why it did not make it in the Amplify CLI release.

@harsh62
Copy link
Member

harsh62 commented Apr 1, 2024

@SpottyAerospaceJess

I believe since its a react native project, you should be using the following configuration, right? This is when you initialize amplify init

? Initialize the project with the above configuration? No
? Enter a name for the environment dev
? Choose your default editor: Visual Studio Code
✔ Choose the type of app that you're building · javascript
Please tell us about your project
? What javascript framework are you using react-native
? Source Directory Path:  src

You are facing this error, because the project thinks its a native iOS project and hence it tries to find the xcode project file in directory, which is not there and hence the command fails. Hope this information helps.

@harsh62
Copy link
Member

harsh62 commented Apr 1, 2024

If you already have a project setup, you could simply use amplify configure project to change these.

@harsh62 harsh62 added the question General question label Apr 1, 2024
@sebaland sebaland added the pending-community-response Issue is pending response from the issue requestor label Apr 4, 2024
@harsh62 harsh62 closed this as completed Apr 29, 2024
@github-actions github-actions bot removed the pending-community-response Issue is pending response from the issue requestor label Apr 29, 2024
Copy link
Contributor

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev tools Issues related to developer tools question General question transferred This issue was transferred from another Amplify project
Projects
None yet
Development

No branches or pull requests

4 participants