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 16 Support #13929

Open
2 tasks done
mindgrub-rkoch opened this issue Sep 17, 2024 · 4 comments
Open
2 tasks done

Xcode 16 Support #13929

mindgrub-rkoch opened this issue Sep 17, 2024 · 4 comments
Labels
bug Something isn't working platform-init Issues related to initializing a new Amplify project

Comments

@mindgrub-rkoch
Copy link

mindgrub-rkoch commented Sep 17, 2024

How did you install the Amplify CLI?

npm

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

v20.17.0

Amplify CLI Version

12.12.6

What operating system are you using?

macOS 14.6.1 (23G93)

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 attempting to run codegen models with a project created with Xcode 16, the generation succeeds, but updating the Xcode project is failing with the following error:

Updating Xcode project:
🚫 xcodeProject:
-- Caused by: The element PBXFileSystemSynchronizedRootGroup is not supported.
🛑 Command failed with exit code 1: /Users/{redacted}/.amplify/lib/aws-amplify-amplify-frontend-ios/resources/amplify-xcode import-models --path=/Users/{redacted}

Expected behavior

Codegen successfully generates the models and modifies the Xcode project appropriately.

Reproduction steps

  1. Open up an iOS application that uses the AWSDataStorePlugin and GraphQL that was created using Xcode 16
  2. Run amplify pull if needed
  3. Run amplify codegen models

Note the codegen fails with the included error.

Project Identifier

704bf3f4b979261c925b5cb99d13f5b2

Log output

2024-09-17T15:26:35.586Z|info : amplify version core  
2024-09-17T15:26:37.079Z|info : amplify pull core  
2024-09-17T15:26:37.136Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-09-17T15:26:40.039Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2024-09-17T15:26:40.041Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]sthenics-[***]ev-[***]26-[***]ment"}])
2024-09-17T15:26:46.821Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]sthenics-[***]ev-[***]26"}])
2024-09-17T15:26:47.507Z|info : amplify-provider-awscloudformation.aws-cfn.updateamplifyMetaFileWithStackOutputs.cfn.listStackResources([{"StackName":"[***]ify-[***]sthenics-[***]ev-[***]26"}])
2024-09-17T15:26:47.859Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]ify-[***]sthenics-[***]ev-[***]26"}])
2024-09-17T15:26:47.998Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]sthenics-[***]ev-[***]26-[***]uthStack-[***]Q4NS5Q/[***]5a40-[***]01-[***]ee-[***]1f-[***]ac293"}])
2024-09-17T15:26:48.002Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]sthenics-[***]ev-[***]26-[***]isthenics-[***]C57CFT/[***]6830-[***]bb-[***]ee-[***]c6-[***]c70c5"}])
2024-09-17T15:26:48.007Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]sthenics-[***]ev-[***]26-[***]iptions-[***]4RCCH5/[***]05a0-[***]01-[***]ee-[***]92-[***]6362f"}])
2024-09-17T15:26:48.012Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]sthenics-[***]ev-[***]26-[***]nics60664a22-[***]785TY/[***]40a0-[***]b8-[***]ee-[***]58-[***]411d7"}])
2024-09-17T15:26:48.017Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]sthenics-[***]ev-[***]26-[***]eSubscription-[***]4KFLE/[***]1870-[***]be-[***]ee-[***]35-[***]2e0d7"}])
2024-09-17T15:26:48.023Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]sthenics-[***]ev-[***]26-[***]bscriptionData-[***]UE5ZKE/[***]20d0-[***]be-[***]ee-[***]01-[***]b4bf1"}])
2024-09-17T15:26:48.029Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]sthenics-[***]ev-[***]26-[***]idPublisherApi-[***]UQR481/[***]fc20-[***]01-[***]ee-[***]73-[***]174bd"}])
2024-09-17T15:26:48.036Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]sthenics-[***]ev-[***]26-[***]eUserData-[***]1EIKY/[***]5200-[***]a8-[***]ee-[***]5d-[***]88df3"}])
2024-09-17T15:26:48.041Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]sthenics-[***]ev-[***]26-[***]BackTime-[***]ZTGLZZ/[***]d950-[***]a1-[***]ee-[***]29-[***]511ed"}])
2024-09-17T15:26:48.045Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]sthenics-[***]ev-[***]26-[***]storage-[***]D7UXK/[***]dd60-[***]7c-[***]ee-[***]66-[***]f188f"}])
2024-09-17T15:26:48.204Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]sthenics-[***]ev-[***]26-[***]ment"}])
2024-09-17T15:27:00.639Z|error : Command failed with exit code 1: /Users/{redacted}/.amplify/lib/aws-amplify-amplify-frontend-ios/resources/amplify-xcode import-config --path=/Users/{redacted}
UnknownFault: Command failed with exit code 1: /Users/{redacted}/.amplify/lib/aws-amplify-amplify-frontend-ios/resources/amplify-xcode import-config --path=/Users/{redacted}
2024-09-17T15:28:15.577Z|info : amplify models codegen  
2024-09-17T15:28:15.649Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-09-17T15:28:19.340Z|error : Command failed with exit code 1: /Users/{redacted}/.amplify/lib/aws-amplify-amplify-frontend-ios/resources/amplify-xcode import-models --path=/Users/{redacted}
UnknownFault: Command failed with exit code 1: /Users/{redacted}/.amplify/lib/aws-amplify-amplify-frontend-ios/resources/amplify-xcode import-models --path=/Users/{redacted}
2024-09-17T15:29:16.958Z|info : amplify diagnose core  {"send-report":true,"yes":false}
2024-09-17T15:29:17.034Z|info : @aws-amplify/amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2024-09-17T15:46:21.243Z|info : amplify version core  
2024-09-17T15:47:04.509Z|info : amplify version core  

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.
@mindgrub-rkoch mindgrub-rkoch added the pending-triage Issue is pending triage label Sep 17, 2024
@ykethan
Copy link
Member

ykethan commented Sep 17, 2024

Hey, thanks for raising this! I'm going to transfer this over to our swift repository for better assistance.

@ykethan ykethan transferred this issue from aws-amplify/amplify-cli Sep 17, 2024
@ykethan ykethan added the transferred This issue was transferred from another Amplify project label Sep 17, 2024
@phantumcode
Copy link
Member

@mindgrub-rkoch Thanks for submitting the issue. We'll try to reproduce the issue and investigate further.

@phantumcode phantumcode added the bug Something isn't working label Sep 17, 2024
@phantumcode
Copy link
Member

phantumcode commented Sep 18, 2024

Transferring this issue back to the Amplify CLI team to added support for XCode 16.

  1. Running the command Gen1 command amplify init --quickstart --frontend ios to initialize a new project fails with the following error:
Updating Xcode project:
🚫 xcodeProject:
-- Caused by: keyNotFound(CodingKeys(stringValue: "compatibilityVersion", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: \"compatibilityVersion\", intValue: nil) (\"compatibilityVersion\").", underlyingError: nil))
  1. A new element PBXFileSystemSynchronizedRootGroup is introduced in the project.pbxproj file created by Xcode 16 is not recognized by the cli.
/* Begin PBXFileSystemSynchronizedRootGroup section */
		737AC85F2C9B32E500B4F698 /* xcode16test */ = {
			isa = PBXFileSystemSynchronizedRootGroup;
			path = xcode16test;
			sourceTree = "<group>";
		};
		737AC8702C9B32E600B4F698 /* xcode16testTests */ = {
			isa = PBXFileSystemSynchronizedRootGroup;
			path = xcode16testTests;
			sourceTree = "<group>";
		};
		737AC87A2C9B32E600B4F698 /* xcode16testUITests */ = {
			isa = PBXFileSystemSynchronizedRootGroup;
			path = xcode16testUITests;
			sourceTree = "<group>";
		};
/* End PBXFileSystemSynchronizedRootGroup section */

@phantumcode phantumcode transferred this issue from aws-amplify/amplify-swift Sep 18, 2024
@ykethan
Copy link
Member

ykethan commented Sep 18, 2024

@phantumcode thanks for the verification. Marking this as bug.

@ykethan ykethan added platform-init Issues related to initializing a new Amplify project and removed pending-triage Issue is pending triage transferred This issue was transferred from another Amplify project labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform-init Issues related to initializing a new Amplify project
Projects
None yet
Development

No branches or pull requests

3 participants