用 Foundation Models 框架在 Apple 平台上构建 Claude 智能应用
Building intelligent apps for Apple platforms with Claude in the Foundation Models framework
Claude support for Apple's Foundation Models framework | Claude
[](https://claude.com/)
* Meet Claude
Products
Features
Models
* Platform
* Solutions
Use cases
Company size
Departments
Industries
* Pricing
* Resources
Insights
Learn
Tools
Connect
- Contact sales Contact salesContact sales
- Try Claude Try ClaudeTry Claude
- Contact sales Contact salesContact sales
- Try Claude Try ClaudeTry Claude
[](https://claude.com/blog/claude-for-foundation-models#)
- Contact sales Contact salesContact sales
- Try Claude Try ClaudeTry Claude
- Contact sales Contact salesContact sales
- Try Claude Try ClaudeTry Claude
* Meet Claude
Products
Features
Models
* Platform
* Solutions
Use cases
Company size
Departments
Industries
* Pricing
* Resources
Insights
Learn
Tools
Connect
- Contact sales Contact salesContact sales
- Try Claude Try ClaudeTry Claude
- Contact sales Contact salesContact sales
- Try Claude Try ClaudeTry Claude
- Blog Blog /
- Building intelligent apps for Apple platforms with Claude in the Foundation Models framework
Explore here
Building
intelligent
apps
for
Apple
platforms
with
Claude
in
the
Foundation
Models
framework
[](https://claude.com/blog/claude-for-foundation-models#)
[](https://claude.com/blog/claude-for-foundation-models#)
- Category Product announcements
- Product Claude Platform Claude apps
- Date June 8, 2026
- Reading time 5 min
- Share Copy linkhttps://claude.com/blog/claude-for-foundation-models
Today we're releasing Foundation Models framework support for Claude through a new Swift package that lets Apple developers use Apple's Foundation Models framework to call Claude for more complex workflows.
Apple’s Foundation Models framework gives developers access to tap into models natively from Swift. It is very easy to use and can return typed Swift values through guided generation in as few as three lines of code. Developers can use this to tap into Apple’s on-device models for fast, local tasks like summarization or extraction.
Developers can now use Apple’s Foundation Models framework to hand off to Claude when a request calls for multi-step reasoning, code generation, and more. Claude can also search the web for current information and execute code for data analysis. Stream Claude's response back into the same view.
Because Apple's framework returns typed Swift values from @Generable annotations, developers arrive at the Claude API call with clean inputs instead of raw user text.
What this unlocks
The Foundation Models framework already powers a range of intelligent on-device features — journaling apps that surface personalized prompts, document apps that summarize contracts, learning apps that explain a concept at a student's level. Adding Claude extends each of those patterns.
A journaling app can generate daily prompts on-device, then ask Claude to find threads across months of entries. A study app can define a term on-device, then hand off to Claude when the student follows up with "why does this matter for everything else we've covered?"
It's one experience for the user, backed by the right model for each step.
Getting started
Claude support with the Foundation Models framework will be available tomorrow and works through Apple's Foundation Models framework on iOS 27, iPadOS 27, macOS 27, and visionOS 27, and watch OS 27. Add it to your project, sign in with an Anthropic API key, and pass typed outputs from Apple's on-device pass into a Claude request — the package handles streaming, tool calls, and structured responses back into your SwiftUI view.
No items found.
PrevPrev
0/5
NextNext
eBook
[](https://claude.com/blog/claude-for-foundation-models#)
FAQ
No items found.
[](https://claude.com/blog/claude-for-foundation-models#)
Related posts
Explore more product news and best practices for teams building with Claude.
Apr 14, 2026
Introducing routines in Claude Code
Product announcements
Introducing routines in Claude CodeIntroducing routines in Claude Code
Introducing routines in Claude CodeIntroducing routines in Claude Code
May 28, 2026
Introducing dynamic workflows in Claude Code
Product announcements
Introducing dynamic workflows in Claude CodeIntroducing dynamic workflows in Claude Code
Introducing dynamic workflows in Claude CodeIntroducing dynamic workflows in Claude Code
Jun 9, 2026
New in Claude Managed Agents: run agents on a schedule and store environment variables in vaults
Product announcements
New in Claude Managed Agents: run agents on a schedule and store environment variables in vaultsNew in Claude Managed Agents: run agents on a schedule and store environment variables in vaults
New in Claude Managed Agents: run agents on a schedule and store environment variables in vaultsNew in Claude Managed Agents: run agents on a schedule and store environment variables in vaults
Jun 8, 2026
Observability for developers building connectors
Product announcements
Observability for developers building connectorsObservability for developers building connectors
Observability for developers building connectorsObservability for developers building connectors
Transform how your organization operates with Claude
See pricing
See pricingSee pricing
Contact sales
Contact salesContact sales
Get the developer newsletter
Product updates, how-tos, community spotlights, and more. Delivered monthly to your inbox.
SubscribeSubscribe
Please provide your email address if you'd like to receive our monthly developer newsletter. You can unsubscribe at any time.
Thank you! You’re subscribed.
Sorry, there was a problem with your submission, please try again later.
HomepageHomepage
NextNext
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Write
Button TextButton Text
Learn
Button TextButton Text
Code
Button TextButton Text
Write
- Help me develop a unique voice for an audience [](https://claude.com/blog/claude-for-foundation-models#)
Hi Claude! Could you help me develop a unique voice for an audience? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
- Improve my writing style [](https://claude.com/blog/claude-for-foundation-models#)
Hi Claude! Could you improve my writing style? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
- Brainstorm creative ideas [](https://claude.com/blog/claude-for-foundation-models#)
Hi Claude! Could you brainstorm creative ideas? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Learn
- Explain a complex topic simply [](https://claude.com/blog/claude-for-foundation-models#)
Hi Claude! Could you explain a complex topic simply? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
- Help me make sense of these ideas [](https://claude.com/blog/claude-for-foundation-models#)
Hi Claude! Could you help me make sense of these ideas? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
- Prepare for an exam or interview [](https://claude.com/blog/claude-for-foundation-models#)
Hi Claude! Could you prepare for an exam or interview? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
Code
- Explain a programming concept [](https://claude.com/blog/claude-for-foundation-models#)
Hi Claude! Could you explain a programming concept? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
- Look over my code and give me tips [](https://claude.com/blog/claude-for-foundation-models#)
Hi Claude! Could you look over my code and give me tips? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
- Vibe code with me [](https://claude.com/blog/claude-for-foundation-models#)
Hi Claude! Could you vibe code with me? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to— like Google Drive, web search, etc.—if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can—an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
More
- Write case studies [](https://claude.com/blog/claude-for-foundation-models#)
This is another test
- Write grant proposals [](https://claude.com/blog/claude-for-foundation-models#)
Hi Claude! Could you write grant proposals? If you need more information from me, ask me 1-2 key questions right away. If you think I should upload any documents that would help you do a better job, let me know. You can use the tools you have access to — like Google Drive, web search, etc. — if they’ll help you better accomplish this task. Do not use analysis tool. Please keep your responses friendly, brief and conversational.
Please execute the task as soon as you can - an artifact would be great if it makes sense. If using an artifact, consider what kind of artifact (interactive, visual, checklist, etc.) might be most helpful for this specific task. Thanks for your help!
- Write video scripts [](https://claude.com/blog/claude-for-foundation-models#)
this is a test
AnthropicAnthropic
© 2026 Anthropic PBC
Products
- Claude ClaudeClaude
- Claude Code Claude CodeClaude Code
- Claude Code for Enterprise Claude Code for EnterpriseClaude Code for Enterprise
- Claude Cowork Claude CoworkClaude Cowork
- Claude Security Claude SecurityClaude Security
- Download app Download appDownload app
- Pricing PricingPricing
- Log in Log inLog in
Features
- Claude for Chrome Claude for ChromeClaude for Chrome
- Claude for Slack Claude for SlackClaude for Slack
- Claude for Microsoft 365 Claude for Microsoft 365Claude for Microsoft 365
- Skills SkillsSkills
Models
Solutions
- AI agents AI agentsAI agents
- Code modernization Code modernizationCode modernization
- Coding CodingCoding
- Customer support Customer supportCustomer support
- Education EducationEducation
- Enterprise EnterpriseEnterprise
- Financial services Financial servicesFinancial services
- Government GovernmentGovernment
- Healthcare HealthcareHealthcare
- Legal LegalLegal
- Life sciences Life sciencesLife sciences
- Nonprofits NonprofitsNonprofits
- Security SecuritySecurity
- Small business Small businessSmall business
- Startups StartupsStartups
Claude Platform
- Overview OverviewOverview
- Developer docs Developer docsDeveloper docs
- Pricing PricingPricing
- Marketplace MarketplaceMarketplace
- Claude on AWS Claude on AWSClaude on AWS
- Google Cloud Google CloudGoogle Cloud
- Microsoft Foundry Microsoft FoundryMicrosoft Foundry
- Regional compliance Regional complianceRegional compliance
- Console login Console loginConsole login
Resources
- Blog BlogBlog
- Claude partner network Claude partner networkClaude partner network
- Community CommunityCommunity
- Connectors ConnectorsConnectors
- Courses CoursesCourses
- Customer stories Customer storiesCustomer stories
- Engineering at Anthropic Engineering at AnthropicEngineering at Anthropic
- Events EventsEvents
- Plugins PluginsPlugins
- Powered by Claude Powered by ClaudePowered by Claude
- Service partners Service partnersService partners
- Tutorials TutorialsTutorials
- Use cases Use casesUse cases
Company
- Anthropic AnthropicAnthropic
- Careers CareersCareers
- Policy PolicyPolicy
- Economic Futures Economic FuturesEconomic Futures
- Research ResearchResearch
- News NewsNews
- Policy on the AI Exponential Policy on the AI ExponentialPolicy on the AI Exponential
- Responsible Scaling Policy Responsible Scaling PolicyResponsible Scaling Policy
- Security and compliance Security and complianceSecurity and compliance
- Transparency TransparencyTransparency
Help and security
- Availability AvailabilityAvailability
- Status StatusStatus
- Support center Support centerSupport center
Terms and policies
- Privacy choices ### Cookie settings
We use cookies to deliver and improve our services, analyze site usage, and if you agree, to customize or personalize your experience and market our services to you. You can read our Cookie Policy here.
Customize cookie settings Reject all cookies Accept all cookies ###### Necessary
Enables security and basic functionality. Required- [x] ###### Analytics
Enables tracking of site performance. Off- [x] ###### Marketing
Enables ads personalization and tracking. Off- [x] Save preferences
- Privacy policy Privacy policyPrivacy policy
- Responsible disclosure policy Responsible disclosure policyResponsible disclosure policy
- Terms of service: Commercial Terms of service: CommercialTerms of service: Commercial
- Terms of service: Consumer Terms of service: ConsumerTerms of service: Consumer
- Usage policy Usage policyUsage policy
x.comx.com
LinkedInLinkedIn
YouTubeYouTube
InstagramInstagram
English (US)
[](https://claude.com/blog-product/claude-platform)
Claude Platform
[](https://claude.com/blog-product/claude-apps)
Claude apps
×
这篇还没有中文全文
该条目暂未提供中文翻译。标题/摘要已自动中译;本系统只对人工挑选的内容生成全文翻译。
挑中后 → markitdown 取正文 → 精翻 → 此处切换为译文