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

Does Not Build: Deploying to AWS Lambda using the Serverless Application Model (SAM) #247

Open
russwhite opened this issue Feb 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@russwhite
Copy link

Describe the bug

The instructions

To Reproduce

Steps to reproduce the behavior:

  1. Follow steps exactly as documented.
  2. sam build fails

Expected behavior

A functional build

Actual behavior

Error: PutItemFunction failed to build: The command '/bin/sh -c cd /build-lambda && swift package clean && swift build --static-swift-stdlib -c release' returned a non-zero code: 132

Screenshots

N/A

Environment details

Desktop (please complete the following information):

  • M1 Max 32GB MBP
  • Mac Ventura 13.3
  • Docker 4.16.2
  • SAM CLI 1.13.0
  • AWS CLI 2.10.1
  • Swift 5.7.2

Smartphone (please complete the following information):

  • N/A

If possible, minimal yet complete reproducer code (or link to code)

The builds will always fail because the generated Test files have a syntax error in XCTAssertEqual.

Remarks

Multiple Remarks: Incremental compilation has been disabled: it is not compatible with whole module optimization

Swift.org version/commit hash

Additional context

@russwhite russwhite added the bug Something isn't working label Feb 21, 2023
@0xTim
Copy link
Collaborator

0xTim commented Feb 21, 2023

@russwhite Does your project compile in Xcode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants