aws-amplify / aws-amplify/amplify-cli

amplify pull can no longer update Xcode project

Open
#12,998 9 comments 0 reactions 0 assignees View on GitHub
bug p4 platform-pull
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### How did you install the Amplify CLI?

npm

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

_No response_

### Amplify CLI Version

12.2.0

### 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

Until today, I could `amplify pull --appId xxxxxxxxxxxxxx --envName staging` and the everything worked as expected. Today I did the same thing, but when it gets to "Updating Xcode project:" (everything prior was same/as expected) I now get the following error:

Caused by: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "productType", intValue: nil)], debugDescription: "Cannot initialize PBXProductType from invalid String value com.apple.product-type.extensionkit-extension", underlyingError: nil))

### Expected behavior

What has happened in the past; the Xcode project files are correctly/successfully updated

### Reproduction steps

Ran `amplify pull --appId xxxxxxxxxxxxxx --envName staging` as described above.

### Project Identifier

5137c53213167be43ee873e08d26404d

### Log output

```
# Put your logs below this line

```

### Additional information

_No response_

### Before submitting, please confirm:

- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

Contributor guide

Open the contributing guide

Research direction

Run `amplify pull --appId ... --envName staging` and focus on the “Updating Xcode project” step. Trace how the `productType` value `com.apple.product-type.extensionkit-extension` is handled, then verify that the Xcode project updates successfully without the decoding error.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift, typescript
Domain
build-system, cli, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.