Skip to content

Instantly share code, notes, and snippets.

@staydecent
Created December 11, 2018 23:09
Show Gist options
  • Save staydecent/0d5b911e060db7a5c59ef0844a04cde1 to your computer and use it in GitHub Desktop.
Save staydecent/0d5b911e060db7a5c59ef0844a04cde1 to your computer and use it in GitHub Desktop.
iOS deployment for React Native projects via Fastlane

iOS Deployment

  • Create an App ID in the Apple Developer portal
  • Add a new App on App Store Connect (may need to wait for App ID to be available)
  • In you xcode project make sure Automatic code signing is checked and a development team is chosen
  • cd ios/ && fastlane init
  • When you are ready: fastlane beta

Sample Fastline config

default_platform(:ios)

platform :ios do
  desc "Push a new beta build to TestFlight"
  lane :beta do
    get_certificates           # invokes cert
    get_provisioning_profile   # invokes sigh
    increment_build_number(xcodeproj: "myapp.xcodeproj")
    build_app(workspace: "myapp.xcworkspace", scheme: "myapp", export_xcargs: "-allowProvisioningUpdates")
    upload_to_testflight
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment