Skip to content

Instantly share code, notes, and snippets.

@joshdholtz
Created August 16, 2017 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshdholtz/7be5d3d6b268ca1f0e076c5424d1d71a to your computer and use it in GitHub Desktop.
Save joshdholtz/7be5d3d6b268ca1f0e076c5424d1d71a to your computer and use it in GitHub Desktop.
# Get provisioning profile and write to xcconfig for use with gym
profile_uuid = sigh(
app_identifier: bundle_identifier,
adhoc: is_ad_hoc
)
profile_config_path = File.absolute_path(File.join(path, "./CustomConfig.xcconfig"))
profile_config_content = "PROVISIONING_PROFILE_SPECIFIER = #{profile_uuid}
PRODUCT_BUNDLE_IDENTIFIER = #{bundle_identifier}
DEVELOPMENT_TEAM = #{ENV['DELIVER_TEAM_ID']}"
File.write(profile_config_path, profile_config_content)
# Build app
workspace_path = File.absolute_path File.join(path, "ios/YouWorkspace.xcworkspace")
gym(
workspace: workspace_path,
scheme: scheme,
output_directory: "test",
export_method: export_method,
xcconfig: profile_config_path
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment