1.9 KiB
1.9 KiB
iOS AI Setup (Quick Start)
You are here: AI Docs Home > iOS Setup
Which Path Should I Choose?
- Use Xcode if you want the most integrated Apple experience for Swift/SwiftUI and UI design.
- Use VS Code if you want automation, Copilot Chat agent workflows, or work on cross-platform code.
- You can use both! Many developers do.
Xcode: Copilot Setup Steps
- Install Xcode from the Mac App Store and open it once.
- Install the GitHub Copilot for Xcode plugin and enable it in Xcode’s Extensions.
- Sign in with your GitHub account (Copilot access required).
- Open a Swift file and type
//to trigger a suggestion. - Open Copilot Chat and try a simple prompt (e.g., “Write a Swift function to reverse a string”).
VS Code: Copilot Setup Steps
- Follow the VS Code Initial Setup to install VS Code, Copilot, and sign in.
- Open a Swift file and type
//to trigger a suggestion. - Open Copilot Chat and try a simple prompt.
Add MCP Automation (Optional, Advanced)
- For general MCP usage in VS Code: See MCP for iOS in VS Code
- For Xcode’s built-in MCP: See XcodeBuildMCP (Xcode)
- For XcodeBuildMCP in VS Code: See XcodeBuildMCP for iOS in VS Code
Troubleshooting
- If suggestions are missing, confirm you’re signed in and Copilot is enabled.
- If the plugin/extension is not visible, check compatibility and restart the app.
- If responses are blocked, check your network or company policy.
- If you have multiple AI plugins, disable all but Copilot.
Next Steps
- For cross-platform patterns, read Cross-Platform AI Usage
- For automation, see the MCP guides above
- For safety rules, read Governance, Privacy, and Policy