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
Codesign with Enterprise profile does not work #163
Comments
This is perfectly supported. Just use your enterprise public key and provisioning profile as you would with all other profiles. |
I don't have a enterprise profile myself, therefor I'm not able to test this. Therefor I cannot confirm that it works. Normally I would think that it should work, but I looks like it does not. I'll try to get access to an enterprise profile to test this out myself. |
@savage7 thanks for the answer, therefor this is not a bug as it looks ;-) |
What if the certificate is correct, but the error is in the provisioning profile? Open in Provisioning Profile in a text editor and you should find the id for the organizational unit inside. You can also try the specify the SHA as Identifier. the SHA is found at the bottom of the identifier. And you must remove the spaces. |
What about the bundle identifier in the app, is it: com.republicservices.contacts |
I think the correct identity should be 'identity = 'iPhone Distribution: Republic Services Inc.' when using the enterprise profile |
what is the value of you bundle identifier? |
String bundleIdentifier = 'com.republicservices.contacts' |
Maybe the problem is the You can also have
Have you checked i the plist was properly modified? |
I have gone through https://github.com/openbakery/gradle-xcodePlugin/blob/master/Documentation/Parameters.md#info-plist-parameters but for debugging that document is not sufficient sorry I know am giving trouble but I am keep trying all the possible ways but I don't get result with In_house certificate With adhoc certificate everything working as expectedIf I use
If I use infoplist { 'Set: CFBundleVersion ' + BundleVersion,
|
Don't know is jenkins causing the issue or gradle with In_house certificate |
also the Try the following in you build file:
|
I am getting following error with above syntax
|
do you have a variable 'BundleVersion'? do you have it declared? |
No Renep, I dont have |
There must be the BundleVersion somewere, otherwise you do not get this error. |
What about?
|
Sorry I changed the name of variable, I am trying it now |
With the suggested changes its working form my terminal but facing same problem with jenkins gradle |
Have you checked if the Info.plist was properly modified and the bundle identifier is correct, and also the version was replaced? |
Yes renep there was change in plist and now I removed plist from gralde and I set plist values from my app itself I believe issue with bundle identifier , even I set bundle identifier statically issue is remain same |
What you can try is to create a xcarchive first with 'gradle archive' and use the adhoc identifier and cert here. the build.gradle should look like this:
|
Here I am sending my output pbnhhxe:EmployeeDirectoryiOS deltatechnology$ gradle archive /Users/deltatechnology/Desktop/EmployeeDirectoryiOS/EmpDirDemo/Base.lproj/Main.storyboard:ejn-89-iYx: warning: Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
:archive BUILD SUCCESSFUL Total time: 28.154 secs FAILURE: Build failed with an exception.
BUILD FAILED Total time: 4.139 secs |
Please read the post again: |
Hi Renep
did I miss any thing if I missed anything please could you make me to understand |
I know now for sure that the enterprise profile works. To simplify things I have added in the latest version (0.11.2) that the signing.identity is optional to avoid errors. Maybe you give this version a try. |
Hi Team,
I can able to make a build with adhoch and development provisions profile with Gradle but am facing issue while making build with Enterprise provisioning profile
Does gradle support making build with In-house Provision profile?
The text was updated successfully, but these errors were encountered: