Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[AI] Fix no member 'autoFunctionDeclaration' compile error#16037

Merged
andrewheard merged 4 commits into
mainfirebase/firebase-ios-sdk:mainfrom
mc/if-importfirebase/firebase-ios-sdk:mc/if-importCopy head branch name to clipboard
Apr 6, 2026
Merged

[AI] Fix no member 'autoFunctionDeclaration' compile error#16037
andrewheard merged 4 commits into
mainfirebase/firebase-ios-sdk:mainfrom
mc/if-importfirebase/firebase-ios-sdk:mc/if-importCopy head branch name to clipboard

Conversation

@morganchen12

@morganchen12 morganchen12 commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

The API referenced here can be conditionally unavailable in situations where FoundationModels is available, causing a build failure.

The build failure has the message Type 'Tool' has no member 'autoFunctionDeclaration', which doesn't provide any hints that developers need to update their Xcode version to 26.2+ if they haven't read the release notes.

@morganchen12
morganchen12 requested a review from a team as a code owner April 3, 2026 18:27
@gemini-code-assist

Copy link
Copy Markdown
Contributor
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@andrewheard

Copy link
Copy Markdown
Contributor

@morganchen12 Are you using Xcode 26.2+?

@morganchen12

Copy link
Copy Markdown
Contributor Author

No, but I could just update Xcode and this error would go away as well. I'll update my Xcode.

@andrewheard andrewheard reopened this Apr 6, 2026
@andrewheard andrewheard changed the title match conditional with api dependency [AI] Fix no member 'autoFunctionDeclaration' compile error Apr 6, 2026
@andrewheard andrewheard added this to the 12.12.1 - M179.1 milestone Apr 6, 2026
@andrewheard
andrewheard requested a review from paulb777 April 6, 2026 17:14
@andrewheard

Copy link
Copy Markdown
Contributor

@morganchen12 I re-opened this because the error doesn't make it clear that Xcode 26.2+ is required and, given that you ran into it, I think others will too.

@andrewheard
andrewheard merged commit f2cc141 into main Apr 6, 2026
87 checks passed
@andrewheard
andrewheard deleted the mc/if-import branch April 6, 2026 22:16
leojaygoogle pushed a commit that referenced this pull request Jun 29, 2026
Co-authored-by: Andrew Heard <andrewheard@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.