This page will teach you tips and tricks if you need to use Xcode for Swift development. React Native developers might find useful information too.
You can download it from the App Store, but that takes forever to download and update, so we can download it directly from Apple's developer software website or Xcode releases.
.xip
file and extract it using the following command:
xip -x Xcode_12.5.xip
(use the corresponding file name).app
file to the Applications folder and you're done!<aside> 💡 Note: To download Xcode with the method described above, you'll need to have a developer account. You can contact ‣, ‣ or ‣ so they can add you to Z1's team.
</aside>
Most projects have the linter set up to check these options, so you can configure Xcode to format the code for you. This makes sure everyone formats the code the same.
Open Xcode
→ Preferences...
→ Text Editing
Inside "Editing"
Inside "Indentation"
To have syntax highlighting on .graphql
files, we need to install an extension to Xcode. You can download it and set it up following the instructions here.
<aside> 💡 Note: you may need to reinstall the extension every time Xcode updates.
</aside>
To speed up development, here are some custom code snippets you can add to Xcode. This code snippets follow our programming style. To use them press cmd
+ shift
+ L
.