Skip to content

Instantly share code, notes, and snippets.

@Osein
Last active July 2, 2019 08:15
Show Gist options
  • Save Osein/a8cdfb0ad2ed2016a2002e83b5cc5a09 to your computer and use it in GitHub Desktop.
Save Osein/a8cdfb0ad2ed2016a2002e83b5cc5a09 to your computer and use it in GitHub Desktop.
desc "Build application"
lane :buildAppWithGym do |options|
gym(
workspace: "MyApp.xcworkspace",
scheme: "MyAppScheme",
clean: true,
skip_profile_detection: true,
output_name: "myapp.ipa",
export_method: options[:isProd] ? "app-store" : "ad-hoc",
export_options:{
signingStyle: "manual",
provisioningProfiles:{
"my.app.identifier": options[:isProd] ? "match AppStore my.app.identifier" : "match AdHoc my.app.identifier",
}
}
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment