Skip to main content

Why do you need Xcode?

Xcode is great because it helps you track logs and look more in-depth at why your app may or may not work. It also allows one-click submission to the App Store and is very efficient due to its being an Apple product.
Requirements
  • Mac OS computer
  • Connected to GitHub
  • GitHub desktop app installed
  • Xcode app installed
  • VSCode installed
  • Apple Developer Account

Installing Xcode

Download Xcode from the App Store Image

Opening your Rork project in Xcode

Connect to GitHub Image Go to GitHub Image Open with GitHub Desktop Image Right-click the name of your app and open it in VS Code: Image Now you’ll need to set up your environment If you’re using Rork Max, just type:
If not:
Install Homebrew (if not installed)
Install Node.js (includes npm)
Verify:
Install Yarn
Verify:
Install Expo CLI
Verify:
Install Xcode Command Line Tools
Accept license:
Install CocoaPods
Verify:
Install Project Dependencies From project root:
Run iOS Prebuild and Open Xcode
After this, your project should open up in Xcode.

Here are some issues you may run into and how to solve them:

If iOS Folder Already Exists
If Dependencies or Pods Break
If CocoaPods Fail

Final Requirement Check

After your project is open in Xcode, publish to the App Store (via TestFlight)

Navigate to “Product” and click “Archive.” Image To test in the simulator: Hit the play button, and then go back to your VS Code terminal and run: yarn start

Troubleshooting:

Image Delete any .lock file, IOS, Android, or node_modules file. Then rerun the commands before.

Other commands to try:
  • Yarn install.
  • npm expo prebuild
  • Xed ios
  • npm expo start