Skip to content

Instantly share code, notes, and snippets.

@matteocollina
Last active April 27, 2018 16:44
Show Gist options
  • Save matteocollina/f705330de96702e2cdb2b2e75ea56bd9 to your computer and use it in GitHub Desktop.
Save matteocollina/f705330de96702e2cdb2b2e75ea56bd9 to your computer and use it in GitHub Desktop.
An example to create ad-hoc ipa and deploy to Crashlytics
platform :ios do
desc "Example Fastlane - Ipa + Crashlytics"
lane :beta do
get_provisioning_profile(
adhoc: true,
force: true
)
gym(
export_method:"ad-hoc",
scheme: "MyApp",
workspace:"MyApp.xcworkspace",
export_xcargs: "-allowProvisioningUpdates"
)
crashlytics(
debug: true, # Crashlytics debug option
groups: ["groupalias"], # Alias of your group of testers
crashlytics_path: "./Pods/Crashlytics/", # path to your Crashlytics submit binary.
api_token: "xxxxxxxxxxxxxxxxxxxxxxxx",
build_secret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
ipa_path: "./MyApp.ipa",
notifications: true
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment