Platform Guides 7 min read
How to Install Clash on iPhone: Get an iOS Client from the App Store and Import a Config
Learn how to get an iOS client from the App Store, check regional availability, import a subscription, approve the VPN configuration, and connect for the first time.
Getting an App from the App Store: Check the Client and Account Region First
On iPhone, you need an iOS client that supports the configuration format you plan to use. You can't install Windows .exe files, macOS .dmg files, or Android .apk files directly. If you have Clash YAML or a subscription URL that returns Clash YAML, search the App Store for Stash, then verify the app name and developer against the product's official listing. An app with “Clash” in its name isn't necessarily able to import a full Clash config, so check the App Store listing and the client's documentation before buying.
Two Things to Check If You Can't Find the App
- Check the country or region of your purchasing account. In the simplified Chinese interface in iOS 18, go to Settings → your Apple Account at the top → Media & Purchases → View Account → Country/Region. App Store availability depends on the storefront linked to your purchasing account; changing your device's language to English won't change it.
- Check the app's availability and system requirements. Open the App Store listing published by the developer. If the app isn't available in your current country or region, reinstalling the App Store or switching networks won't make it available. If your iOS version is incompatible, go to Settings → General → About to check your iOS version, then compare it with the listing's Compatibility section.
If you need to change your account region because you've moved, first check Apple's requirements for your balance, active subscriptions, Family Sharing, and payment methods in the new region. If you only want to see whether you can install the app, you don't need to switch your primary account first. Never enter your Apple Account password on an unfamiliar website.
Importing a Config: Subscription URLs, Local YAML Files, and Node Links
Once the client is installed, check what your provider has given you. Buying a client from the App Store doesn't give you proxy nodes. If the subscription page offers “Clash,” “Clash Meta,” and “Universal” options, choose the one recommended by your provider for your iOS client. A client that can open YAML doesn't necessarily support every mihomo field, rule type, or node protocol.
| What You Have | What to Select in the Client | What to Check After Importing |
|---|---|---|
A subscription URL starting with https:// that returns a Clash config | “Download from URL” or a similarly named option on the config screen | The config appears in the list; after selecting it, you can see the expected proxy groups or nodes |
A .yaml or .yml file saved in Files | Import a local file from the config screen; if supported, you can also share it from Files | The imported config is open, not the built-in sample |
A single node link, such as ss:// or vless:// | Use the relevant option if the client explicitly supports that protocol and importing individual nodes | Importing a single node won't create full routing rules or proxy groups |
Remote Subscriptions: Select the Config After Importing
- Copy the subscription URL for your client from your provider's dashboard. Make sure it's the subscription link, not the dashboard login page, and keep the full query string—don't remove the token after the question mark.
- Using Stash as an example, open config management in the app settings and choose the option to download a config from a URL. The button name may vary by version and interface language. Paste the link and confirm. If iOS asks whether to allow pasting from another app, allow it for this paste or enter the link manually.
- After the download completes, select the config in the list, then return to the main screen and check the proxy groups. If the subscription returns a login page or a list of nodes, it may not parse as a Clash config even if the URL opens successfully.
Local Files: Import the Copy You Have on Your Device
Save the original YAML file to Files → Downloads, or to an iCloud Drive folder you can find. In the client, open config management and select the file using the file picker. If you still see a cloud download icon next to it, download a copy to your device in Files first. Don't just save a webpage and rename it with a .yaml extension—that won't convert HTML into a config.
A local import usually won't update automatically when the original subscription changes. If the client offers manual refresh or scheduled updates for remote subscriptions, refresh once manually and confirm the config still loads before setting an interval recommended by your provider. Don't assume iOS will refresh every few minutes while the app is in the background. If a config expires, bring the app to the foreground and check the last update result. Refreshing the main config may not also update remote rules or node lists it references, so check those separately if entries look outdated.
Query parameters in a subscription URL may function as access credentials, and YAML files may contain node passwords. Before sharing screenshots or logs, hide the full URL and any credentials. You don't need to submit your subscription to a public conversion website to troubleshoot a format issue.
First Connection: Approve the VPN Configuration and Test Routing
- Select a config and an exit node. Make sure the correct config is active. If it has a manually selected proxy group, choose an available node in that group first. For everyday split routing, start in Rule mode: rules determine which proxy group handles a request or whether it goes DIRECT. Changing nodes only affects requests routed through that group.
- Tap Connect in the app. When the tunnel starts for the first time, iOS will usually ask whether the app can add a VPN configuration. Check the app name in the prompt, tap Allow, then authenticate as requested. This adds the VPN configuration requested by the client; you don't need to install a
.mobileconfigprofile from a website or separately trust a root certificate for this step. - Check the system and client status. Return to the app and confirm that the tunnel shows as connected. If needed, go to Settings → General → VPN & Device Management → VPN to see which configuration is enabled. iOS clients route traffic through the system VPN interface. You don't need to follow desktop instructions by manually setting your Wi-Fi HTTP proxy to
127.0.0.1:7890. - Test direct and proxied connections separately. Open a new Safari tab and visit one site that your config explicitly routes DIRECT and another that it explicitly routes through a proxy. If the client provides connection history or logs, check the hostname, matched rule, proxy group, and exit node. A connected VPN status only means the tunnel is running, and a site loading doesn't necessarily mean its traffic went through the proxy.
Import Fails, Can't Connect, or Connected but Can't Browse: Troubleshoot by Symptom
- Subscription returns 401 or 403: The remote server hasn't authorized the request or is refusing access. Check your provider's dashboard to confirm the subscription is active, the URL was copied in full, and the token hasn't been reset. If the dashboard generated a new URL, replace the old one in the client and refresh.
- Download succeeds but parsing fails: Check which line or field the error points to. If the response starts with
<html>, check whether you got a login page or server error page. If the error says a protocol or rule type isn't supported, use a client-compatible config from your provider. Don't delete the rule at random, or traffic could fall through to the final catch-all rule. - No permission prompt appears after tapping Connect: Check whether this app already has a VPN entry in iOS, then check the client logs for errors while loading the config. If another VPN is active, disconnect it first and retry, if permitted. If a work- or school-managed device restricts VPN creation, ask the administrator; don't remove the management profile.
- Direct connections work, but proxied traffic fails: Check the logs to confirm the request matched a proxy group. Then select another node in the same group and test the same site again. If switching nodes fixes it, investigate the original node first. If the logs show the request was routed to
DIRECT, check the rules and domain instead of repeatedly changing nodes. - Wi-Fi and cellular behave differently: Keep the config and node unchanged, and test both networks. If only public Wi-Fi fails, pause the tunnel and complete that network's captive portal login, then reconnect. If DNS lookups time out on both networks, note the affected domains and DNS-related log entries, then check the DNS settings in your config.
Change one thing at a time while troubleshooting, and note whether the error occurs during download, parsing, tunnel startup, or request routing. If the problem started after switching configs, switch back to the last known working config for comparison. Once you've found the difference, edit or reimport the config.