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

ApolloSQLite doesn't compile on Xcode 16 due to Expression symbol clash with new Foundation.Expression #3394

Closed
cameroncooke opened this issue Jun 11, 2024 · 10 comments
Labels
bug Generally incorrect behavior needs investigation

Comments

@cameroncooke
Copy link

Summary

When compiling on Xcode 16 the following error 'Expression' is ambiguous for type lookup in this context is raised.

Screenshot 2024-06-11 at 13 50 02

Version

1.12.2

Steps to reproduce the behavior

Build Apollo for iOS on Xcode 16

Logs

Showing Recent Issues
.../SourcePackages/checkouts/apollo-ios/Sources/ApolloSQLite/SQLiteDotSwiftDatabase.swift:11:26: 'Expression' is ambiguous for type lookup in this context

Anything else?

No response

@cameroncooke cameroncooke added bug Generally incorrect behavior needs investigation labels Jun 11, 2024
@cameroncooke
Copy link
Author

Is see this is already fixed on Main branch 🎉

@calvincestari
Copy link
Member

Hi @cameroncooke - this was fixed yesterday with PR apollographql/apollo-ios-dev#386. It's only in main for now as it has not gone out in a release yet though.

@calvincestari calvincestari closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
Copy link
Contributor

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.

@lexuanquynh
Copy link

@calvincestari Is there a way to quickly use the branch you fixed without waiting for the release?

@AndyBettisLush
Copy link

I'm still seeing this problem with release 1.15.1. Is there a fix? Xcode 16.0 running on Sequoia 15.0

@lexuanquynh
Copy link

@AndyBettisLush thank you. I have updated it to 1.15.1 and fixed it.

@AndyBettisLush
Copy link

AndyBettisLush commented Sep 17, 2024

@lexuanquynh I'm still seeing it. I've tried changing to 1.15.0 and back to 1.15.1, reloading the packages, quitting & restarting Xcode, still no joy. Any suggestions?

Update: fixed now. FYI it required me setting up a new SSH key for a local repo so I don't think it was an issue with Apollo.

@calvincestari
Copy link
Member

Glad you both have it working, let us know if you have any more issues with this error.

@lexuanquynh
Copy link

@AndyBettisLush
I set it to 1.15.1 as shown in the image. Then I used the clear cache feature of the Swift package and it updated the exact version as shown in the second image.

Screenshot 2024-09-18 at 21 40 16 Screenshot 2024-09-18 at 21 41 45

@lexuanquynh
Copy link

@AndyBettisLush A

Also I had to completely remove Xcode 15 from my machine. Then download Xcode 16 from Apple's website.
Otherwise you won't be able to download the new Swift package.
The problem is solved by my comment at the following links:
https://developer.apple.com/forums/thread/763844?answerId=804073022#804073022
https://developer.apple.com/forums/thread/763458?answerId=804057022#804057022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Generally incorrect behavior needs investigation
Projects
None yet
Development

No branches or pull requests

4 participants