Export Source Code
The sheet that packs a project's source, with its Git history, into a source.tar.gz file and lets you save it.
Export Source Code is the sheet that saves a project’s source to a file on your device. It shows the project’s name and a progress bar while AirBuild packs and downloads the source, then a button to save it as source.tar.gz. The file has the project’s files as they are now, without the ones its .gitignore leaves out, and its Git history.
Anyone in the Team can export a project’s source.
Open it
Export Source Code… in the project’s menu and Download Code in the project’s profile open the same sheet.
- Touch and hold the project on Home and tap Export Source Code….
- Or, in the project’s chat, tap ⋯ (More) in the toolbar and tap Export Source Code….
- Or open the project’s profile (tap the project’s icon and name at the top of its chat), tap the share button (Share) and tap Download Code.
- Choose Project › Export Source Code… in the menu bar.
- Or right-click the project in the sidebar, or click ⋯ (More) in the chat’s toolbar, and choose Export Source Code….
- Or open the project’s profile, click the share button (Share) and choose Download Code.
The export starts as soon as the sheet opens.
What’s on it
| Item | What it shows or does | When it shows |
|---|---|---|
| Project name | The project being exported. | Always |
| Preparing Source Code… | A progress bar while AirBuild packs the source. | Until the file is packed |
| Downloading Source Code… | A progress bar while the file comes to this device. | Until the file is here |
| “Use the exported source code on your Mac to build and test your app.” | The file is ready. | Once the file is here |
| Save Source Code… | Asks where to save source.tar.gz: a save panel on the Mac, the system’s file picker on iPhone and iPad. Dimmed while a save is under way. |
Once the file is here |
| “Saved “file name”” | The file was saved and checked. | After a save |
| Show in Finder | Shows the saved file in Finder. Mac only. | After a save |
| Try Again | Under a failure message: starts the export again, or saves again if the file was already here. The progress bar is gone while a failure shows. | After a failure |
| Done | Closes the sheet. On the Mac, Return presses Done. | Always |
Save the source
Step by step: Share or export a project’s source.
If you close the sheet before the file is ready, the export stops. Once the file is here, you can save it more than once while the sheet is open.
The archive has no folder around the files, so unpack it into a new folder. See Share or export a project’s source.
Messages
| Message | What it means | What to do |
|---|---|---|
| “The source code couldn’t be exported. Try again.” | Packing or downloading the source failed. | Tap Try Again. In a local Team, check that the Mac running it is on with AirBuild open. |
| “The source archive came back empty, so nothing was saved. Try again.” | The file AirBuild received was empty. Nothing was written. | Tap Try Again. |
| “The source code wasn’t saved completely. Try again.” | The saved file is shorter than the archive. | Tap Try Again, or pick another place to save. |
| “The file couldn’t be saved. Try again.” | Saving failed, for example because of the place you picked. | Tap Try Again, or pick another place. |