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 build error "Missing argument label 'value'" #600

Open
brandonroth opened this issue Jun 24, 2024 · 1 comment
Open

Xcode 16 build error "Missing argument label 'value'" #600

brandonroth opened this issue Jun 24, 2024 · 1 comment
Labels
bug Something isn't working build Issues related to build and CI/CD open-for-contribution Good for contributors

Comments

@brandonroth
Copy link

Describe the bug
iOS 18 and Xcode 16 adds a newExpression class to the standard library which conflicts with SQLite.Expression used in AppSync code. This causes a build failure `Missing argument label 'value:' because compiler assumes we are talking about Swift.Expression.

Adding a qualification to the affected files appears to fix the problem typealias Expression = SQLite.Expression.

To Reproduce
Steps to reproduce the behavior:
0: Using Xcode 16.0 Beta, start a new iOS app/project.

  1. Install app sync sdk via cocoapods or SPM
  2. Build project.
    3: Fails to build with error "Missing argument label 'value:' in call" anywhere Expression type is used.

Expected behavior
Should run without failure on Xcode 15 and 16.

Environment(please complete the following information):

  • Xcode 16.0 beta
  • AppSync SDK Version: 3.7.1
  • Dependency Manager: Cocoapods and SPM

Device Information (please complete the following information):
All devices

Additional context

@brandonroth brandonroth changed the title Compiler error Xcode 16 build error "Missing argument label 'value" Jun 24, 2024
@brandonroth brandonroth changed the title Xcode 16 build error "Missing argument label 'value" Xcode 16 build error "Missing argument label 'value'" Jun 24, 2024
@harsh62 harsh62 added the build Issues related to build and CI/CD label Jun 25, 2024
@harsh62
Copy link
Member

harsh62 commented Jun 25, 2024

@brandonroth Thank you for raising the issue. Our team will look into it and provide an update soon.

Also if you think, this is something you can contribute towards, feel free to open a PR and our team will be happy to look into it.

@harsh62 harsh62 added bug Something isn't working open-for-contribution Good for contributors and removed bug Something isn't working labels Jun 25, 2024
rnapier pushed a commit to rnapier/aws-mobile-appsync-sdk-ios that referenced this issue Jun 25, 2024
iOS 18 adds a new Expression type to Foundation which conflicts with SQLite. Explicitly import SQLite's.
@ruisebas ruisebas added the bug Something isn't working label Jun 28, 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 build Issues related to build and CI/CD open-for-contribution Good for contributors
Projects
None yet
Development

No branches or pull requests

3 participants