ngeri / prepare-signing

Github action for prepare signing of an iOS application
MIT License
13 stars 11 forks source link

example #1

Open manang opened 4 years ago

manang commented 4 years ago

Hi, I'm trying to compile and publish an application to the apple store. do you have an example how I can use this tool for github actions?

thanks

ngeri commented 4 years ago

Hey @manang! Check this repository.

manang commented 4 years ago

Hi, I'm trying with your tool: I have an error and I don't undestand why. 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

Another thing that I don't undestand is: with your example do you update in the apple store the application? or do you need another step to apply the update? Thank hou for your help

ngeri commented 4 years ago

Hey, It seems that you do everything right except for the certificate part. You should export it from the keychain with your private key. Then in the terminal type base64 path/to/the/previously/exported/file and copy the output string to base64P12File parameter.

manang commented 4 years ago

I don't undestand if there is a correlation between appStoreConnectPrivateKey and the base64P12File I tried again and I have always an error. I hope you can help me. My idea is that I can create a guide and you can integrate in your readme Thank you very much

manang commented 4 years ago

I've extracted from the p12 file the keyID (i think it is the team id). I want to extract the issuer ID, how I can find it? Thank you very much Angelo

manang commented 4 years ago

do you have another channel to communicate? I think it is better!

manang commented 4 years ago

I noticed that in Run ngeri/prepare-signing@v1.0.2 { type: 'bundleIds', id: 'DYGXXMQHBZ', attributes: { name: 'XC com cisco hICNTools', identifier: '***', platform: 'UNIVERSAL', seedId: '48JBYTLGAT' }, relationships: { bundleIdCapabilities: { meta: [Object], links: [Object] }, profiles: { meta: [Object], links: [Object] } }, links: { self: 'https://api.appstoreconnect.apple.com/v1/bundleIds/DYGXXMQHBZ' }

the package name in this json is: XC com cisco hICNTools but on developer.cisco.com I have App - com.cisco.hICNTools

do you thinkt that this is a problem? thank you very much

manang commented 4 years ago

no, that is not the error. I don't have idea. there is only an exit 1 and not an explicit error.

achirkof commented 3 years ago

Hi! Thank you for this action. But I have the same error as above and by clicking on the link get error message:

{
    "errors": [{
        "status": "401",
        "code": "NOT_AUTHORIZED",
        "title": "Authentication credentials are missing or invalid.",
        "detail": "Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens"
    }]
}

Could you please suggest how to solve it? Thanks!