Sub topic 6
Opening the same files on iPhone, iPad, and iCloud.com
This chapter assumes you have turned on iCloud Drive on your Mac, you know where it appears in Finder, and you understand that files can be stored in the cloud and cached locally. Here you will reach those same files from an iPhone, an iPad, and a web browser. You will also learn what to expect when an edit moves between them.
What "the same files" means
iCloud Drive keeps one authoritative copy of each file in Apple's servers. Each device shows that copy and may hold a local cached copy. Opening a file on another device does not copy it from your Mac. Each device talks to iCloud, and iCloud tells every device when something changed.
Every device must be signed in to the same Apple Account. A different account on the iPhone is the most common reason a file seems to be missing. It sees a different iCloud Drive.
Checking that iCloud Drive is on for iPhone and iPad
On an iPhone or iPad, open Settings, tap your name at the top, then tap iCloud. Find Drive and confirm it is on. Depending on the version of iOS or iPadOS, Drive sits under a list of apps that use iCloud, and the switch may be labeled "Sync this iPhone" or "Sync this iPad".
Two details matter here:
- Individual apps can store documents in iCloud Drive or not. Apps are listed under the Drive settings, and each one has its own switch. If an app's switch is off, its documents stay on that device only.
- Cellular data is a separate switch. If it is off, uploads and downloads wait for Wi-Fi.
On the Mac, you already turned on iCloud Drive in System Settings. Confirm the account name there matches the one on your mobile devices.
The Files app
The Files app is the iPhone and iPad counterpart of Finder. Open it, tap Browse, and choose iCloud Drive. You will see the following:
- The folders you made in Finder, with the same names and nesting.
- Desktop and Documents, if you turned on Desktop & Documents Folders syncing on your Mac. They appear as ordinary folders. The Desktop of your Mac is shown as a folder named Desktop, and it is not your iPad's home screen.
- App folders such as Pages, Numbers, and Keynote. Other apps that save to iCloud Drive add their own folders.
Tap a file to open it. If the file is only in the cloud, a short download happens first. A small cloud icon with a down arrow next to a name means the file is not yet on this device. Tapping the file downloads it. Pressing and holding offers actions such as Share, Rename, Move, and Delete. Recent versions of iOS and iPadOS also offer Download Now and Keep Downloaded on supported items.
When you edit the file in a compatible app, the app saves the change and the system uploads it. The Mac shows the update shortly afterward. A large file or a poor connection makes this slower.
Moving and organizing
Moves and renames in Files are real changes to the shared structure. If you move a file out of a folder on the iPad, that file leaves the folder on the Mac too. Files also lets you:
- Create folders with the New Folder button.
- Tag files and use colored tags. Tags sync with the file.
- Scan documents or save photos straight to a folder, which appear on the Mac a moment later.
Local storage is separate
Files lists On My iPhone or On My iPad beside iCloud Drive. Those locations are not synced. A file saved there never reaches the Mac. Check which location an app saved to when a file seems missing.
iCloud.com in a browser
Open a browser, go to iCloud.com, and sign in with your Apple Account. Complete two-factor authentication when asked. Choose Drive. You will see the same folder tree as Finder and Files.
The web interface works differently from the apps:
- Opening a file shows a preview or opens it in a web editor for supported formats, such as Pages, Numbers, and Keynote documents.
- Download saves a copy to your browser's download folder. That copy is no longer connected to iCloud. Editing it does not change the cloud file.
- Upload sends a file from the computer you are using into the folder you have open.
- Deleting a file moves it to Recently Deleted, from where you can restore it for a limited time.
Use the web when you are on a computer you do not own, such as a library PC. Sign out when you finish, and decline the "Trust this browser" prompt on a shared machine. Also, a Windows PC can use iCloud for Windows, which adds an iCloud Drive folder in File Explorer, but this chapter covers the browser route.
Testing the round trip
A short test confirms that everything is wired correctly. Create a text file on the Mac from Terminal:
echo "Hello from my Mac" > "$HOME/Library/Mobile Documents/com~apple~CloudDocs/sync-test.txt"Then do the following:
- Open Files on the iPhone, choose iCloud Drive, and look for
sync-test.txt. Pull down to refresh if it has not appeared yet. - Open iCloud.com, choose Drive, and look for the same file.
- Rename it on the iPhone to
sync-test-renamed.txt. - Look in Finder. The new name should appear within moments.
If the file shows on one device but not another, wait a minute and refresh. Then check the account and the connection. Chapter 12 covers deeper troubleshooting.
What to expect when you edit on more than one device
Offline edits
You can edit a downloaded file with no connection. The change is stored locally and uploaded when the device reconnects. If the file only existed in the cloud, you cannot open it offline at all. Download it first while you are online.
Simultaneous edits
If you change the same file on two devices before either has synced, iCloud may keep both. The result is usually a second file with the device name or a numeral in its name, or a prompt asking which version to keep. Apple's own document apps merge changes more smoothly because they save in a way iCloud can track. Version history and conflicts are covered in chapter 11.
Delays
Syncing is not instant. Small files usually arrive within seconds. Large files, many small files, and weak connections take longer. Closing the document on the first device helps, because some apps upload only on save or close.
Common problems
| Symptom | Likely cause | What to try |
|---|---|---|
| Folder is empty on iPhone | Signed in to a different Apple Account, or Drive is off | Compare account names in Settings and turn Drive on |
| File shows a cloud icon and will not open | File not downloaded and no connection | Connect to Wi-Fi and tap the file |
| App's documents do not appear on the Mac | App's switch is off under Drive settings | Turn the app on in Settings, iCloud, Drive |
| File is in iCloud.com but not on the Mac | Mac sync is paused or the Mac is offline | Check the Mac's connection and sign-in |
| Web download changes do not reach the cloud | You edited a downloaded copy | Upload the edited file back to Drive |
Summary
iCloud Drive is one shared set of files viewed through several windows: Finder, the Files app, and iCloud.com. Each device must use the same Apple Account, have Drive turned on, and have a connection when it needs to fetch or send a change. Files stored in On My iPhone or On My iPad stay local, and files downloaded from the web are detached copies.
Exercise
You edited a spreadsheet on iCloud.com by downloading it, changing it on your laptop, and saving it in your Downloads folder. Your Mac and iPhone still show the old version. Why, and how do you fix it?
Show answer
The download created a separate copy that is not linked to iCloud Drive, so editing it never reached the cloud. To fix it, upload the edited file back into the same folder in iCloud.com (or move it into iCloud Drive in Finder, replacing the old file). Then the Mac and iPhone receive the new version.
Exercise
A document you saved from an iPad app is not visible in iCloud Drive on your Mac. Name two places on the iPad to check.
Show answer
First, check that the app's switch is on in Settings, then your name, iCloud, Drive. Second, check whether the file was saved to On My iPad rather than iCloud Drive in the Files app, since that location does not sync.