developerprofile file, import in action

Hi,

I need to compile and publish an application for iOS after the execution of an action on mac os X.

I need to store somewhere and  import the developerprofile file.

it is a binary file, so I can’t save it as secret.

Do you have an idea how I can manage this?

Thank you very much

Angelo

There is an action for preparing signing for iOS build action: https://github.com/marketplace/actions/prepare-signing, please check whether it could help. 

Another method , you need to Install GPG and encrypt our provisioning profile and signing certificate. Then upload the encrypted files into your repo. Then decrypt the certificate and the provisioning profile during your workflow run . More detail steps for using gpg, please refer to https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#limits-for-secrets 

1 Like

Hi, I’m trying to use this:https://github.com/marketplace/actions/prepare-signing

what is: 

base64P12File (Required Base64 encoded .p12 signing cert with private key.)?

do you have an example that I can follow to build and publish the application directly from the github actions?

Thank you for your help

@manang For base64P12File , you could encode your  .p12 signing cert with private key file to Base64 format. 

The Base64 p12 file is like : 

Then you could store the content of this base64 file to a secret variable:

Ok, sorry

I didn’t undersand which certificate I have to use.

let me undestand:

in this way I have an environment that can compile and sign the application, right?

there is no a way to upload and publish the ipa, right?

Thank you very much

Angelo

another thing: 

I obtain an error, but I don’t undestand why, there is not an output:

this is my yml file

https://github.com/icn-team/ios-sdk/blob/master/.github/workflows/build.yml

this is the output log file:

https://pipelines.actions.githubusercontent.com/17ieV7mxd3oVye2WY8gKzxyYZbf7Hu8515j6k9mV0QPnMmdM0d/_apis/pipelines/1/runs/121/signedlogcontent/3?urlExpires=2020-04-08T10%3A47%3A11.2013678Z&urlSigningMethod=HMACV1&urlSignature=dTqd0kw%2BfM4TQ87LIPk%2FgYU4vuNOBV%2BXpMzkP6ER5XE%3D

thank you very much for your support

Maybe I can explain better what I did:

I set the following secrets:

  •  appStoreConnectPrivateKey

I take it from the developer page https://appstoreconnect.apple.com/access/api from the tab key

  •  keyID

I take it from the developer page https://appstoreconnect.apple.com/access/api from the tab key

  • issuerID

I take it from the developer page https://appstoreconnect.apple.com/access/api from the tab key

  • keychainName

I set keychain.ios

  • keychainPassword

I set keychain.ios

  • base64P12File

I exported it from xcode -> preferences-> account

  • p12Password

this is the password that I set when I exported the p12

  • bundleIdentifier

this is the bundle identifier that I used in xcode

  • signType

I set IOS_APP_STORE

I receive an error, but I don’t undestand why:

https://pipelines.actions.githubusercontent.com/pjHkVpSVLOUYPAjk7n8dJooKxb1XZYNf2McH0i4JhXhW80i9PS/_apis/pipelines/1/runs/8/signedlogcontent/3?urlExpires=2020-04-08T16%3A24%3A38.1596757Z&urlSigningMethod=HMACV1&urlSignature=Nj%2F4EZ45s%2Fc9qBWePWp60kkZSl96wxxdaTn3W5YxBK8%3D

in this link I increased the log level.

Thank you very much

Angelo

@manang I could not sure that prepare signing action could match your requirement. 

What’s the meaning of developerprofile file? Provision profile or Certificates file? 

There is a tutorial for Testing and deploying an iOS App with GitHub Actions. 

Hope it could help. 

Hi, the link is broken.

Thanks for your help

@manang My bad. Sorry about that, I have updated the link above.