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

init a project with ios as selection and no xcode throws unhelpfull error #3139

Closed
ykethan opened this issue Aug 11, 2023 · 6 comments
Closed
Assignees
Labels
core Amplify Core components feature-request Request a new feature improvement Code quality, testing, etc.

Comments

@ykethan
Copy link
Member

ykethan commented Aug 11, 2023

Describe the bug

related to aws-amplify/amplify-cli#13104

creating a new applications without xcode being installed in your project throws

Updating Xcode project:
🚫 xcodeProject: 
-- Caused by: notFound(path: "/Users/ykethan/Documents/ampapps/adminqu/iostes")
🛑 Command failed with exit code 1: /Users/ykethan/.amplify/lib/aws-amplify-amplify-frontend-ios/resources/amplify-xcode import-config --path=/Users/ykethan/Documents/ampapps/adminqu/iostes

Resolution: Please report this issue at https://github.com/aws-amplify/amplify-cli/issues and include the project identifier from: 'amplify diagnose --send-report'
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

Session Identifier: 798761f3-615a-4b06-9ab2-25d51d7f4c2e

appears due to

further testing, on 11.0.5

image

Steps To Reproduce

1. make sure you dont have xcode installed
2. `amplify init` with following selections

? 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 · ios
Using default provider  awscloudformation
? Select the authentication method you want to use: AWS profile

3. observe error when the deploy finishes.

Expected behavior

a better error: xcode not found, please install xcode.

Amplify Framework Version

n/a

Amplify Categories

API

Dependency manager

Swift PM

Swift version

n/a

CLI version

12.2.4

Xcode version

n/a

Relevant log output

<details>
<summary>Log Messages</summary>


INSERT LOG MESSAGES HERE
```

Is this a regression?

No

Regression additional context

No response

Platforms

No response

OS Version

13.5 ventura

Device

mac

Specific to simulators

No response

Additional context

No response

@josefaidt
Copy link

related aws-amplify/amplify-cli#13064

@atierian atierian added core Amplify Core components improvement Code quality, testing, etc. labels Aug 15, 2023
@atierian
Copy link
Member

Thanks for opening this @ykethan. As you mentioned, you're seeing this because Xcode is not installed on your machine, which is a requirement for init'ing an iOS application using Amplify CLI.

I agree that the error message could be clearer. We'll keep this open to track improving the error message.

Copy link
Contributor

github-actions bot commented Jan 8, 2024

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

@harsh62
Copy link
Member

harsh62 commented Feb 26, 2024

Quick update: The fix has been merged in amplify-swift and is awaiting amplify-cli teams review.

@harsh62
Copy link
Member

harsh62 commented Apr 29, 2024

The issue has been released. Please update amplify cli using amplify upgrade.

@harsh62 harsh62 closed this as completed 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
core Amplify Core components feature-request Request a new feature improvement Code quality, testing, etc.
Projects
None yet
Development

No branches or pull requests

4 participants