Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Distribution Method - Development #450

Open
serhii-pokrovskyi opened this issue Jan 17, 2022 · 1 comment
Open

Question: Distribution Method - Development #450

serhii-pokrovskyi opened this issue Jan 17, 2022 · 1 comment

Comments

@serhii-pokrovskyi
Copy link

How can I build *.ipa with this option?
i'v found https://github.com/openbakery/gradle-xcodePlugin/blob/main/libxcode/src/main/groovy/org/openbakery/codesign/ProvisioningProfileReader.groovy ProvisioningProfileType

But, I can't figure out how to use it.

Regards,
Serhii

@renep
Copy link
Contributor

renep commented Jan 17, 2022

First you have to configure to perform a device build:

xcodebuild {
  configuration = 'Release'
  type = 'iOS'
  simulator = false

  ...
}

Then you have to specify also the sign settings. You need to export your certificate from your keychain.

xcodebuild {
	  ... // values from above

	signing {
		certificateURI = 'file:///path/you/your/certificate.p12' // that you have to export from your keychain
		certificatePassword = 'secret' // the password for the  certificate.p12
		mobileProvisionURI = 'file:///path/you/your/mobile_provisioning_file' // that you have created at the apple developer protal
    }
}

When you to run than the 'archive' and the 'package' task. The 'archive' task creates a xcarchive that the 'package' task use to create the 'ipa'.

PS. The ProvisioninProfileReader is use the extract information that is needed for the build from the mobile provisioning profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants