Open yasheshc opened 4 years ago
@yasheshc
I investigated the problem.
In my bitrise project, appcenter-ipa-upload
worked fine.
When you look at your logs, app id
and access token
look unset.
Came across same issue today.
Looks like step does not pass configured input to the appcenter
command. I definitely have filled 'token', 'appname' and 'group' fields but still get empty strings in output.
I doubt you need this:
envman add --key APP_CENTER_APP_ID
envman add --key APP_CENTER_ACCESS_TOKEN
envman add --key APP_CENTER_DISTRIBUTION_GROUP
Looks like this calls just rewrite variables with empty strings.
@deszip thanks. See the app_center_app_id description for step.
description:
AppCenter Application Identifier is a combination of your Organization/Owner Name
and an Application Name.
For example: "MyOrganization/MyApplication"
You may have entered only 'Application Name'
Hello - I have similiar issue - step is failing with exit code 3.
As I can see, I have proper env variables configured. After 33 seconds step is failing. Below I'm attatching console output (I've changed real app name to AppName and organization name to MyOrganization due to privacy reasons)
added 504 packages from 395 contributors in 33.87s
@kartwal Hi. That error message alone makes it difficult to identify the cause. Do you have any other tips?
Unfortunately, that is whole error I'm receiving. Can be this caused by space in ipa name?
I don't think there should be any space in ipa name.
Ok, so I will try delete space in ipa name and try again.
Hello again - deleting space from ipa name doesn't solve issue :(
Manually I can add application to AppCenter, so I dont have idea what I can have set up wrong.
fast-xml-parser@3.16.0 postinstall /usr/local/lib/node_modules/appcenter-cli/node_modules/fast-xml-parser node tasks/postinstall.js [REDACTED] exit 0 Love fast-xml-parser? Check https://amitkumargupta.work for more projects and contribution. npm WARN webpack-cli@3.3.11 requires a peer of webpack@4.x.x but none is installed. You must install peer dependencies yourself.
@kartwa Please check the setting of APP_CENTER_DISTRIBUTION_GROUP
The location of DISTRIBUTION_GROUP is as follows.
All apps-> your Organization-> People-> Dstribution groups-> group name
Example URL https://appcenter.ms/orgs/{my_organization}/people/distribution-groups/
If you don't have it yet, it's required so please create something.
Just in case, please tell me the file size of ipa.
I have a distribution group with proper people there.
IPA has 9MB so it's not big.
In the previous step (Xcode Archive & Export for iOS) I've set up export method as development. Maybe there should be something different?
@kartwal Today I have confirmed working with ad-hoc and development. If you could invite me to your team I would be happy to help. hmm...
So I will try ad-hoc option right now.
And nope - ad-hoc exported ipa also failed.
I have (I think) everything configured properly - I have proper app center app configured(I was using it before but builds I've uploaded manually), all steps on Bitrise are also passing so there is no mistake I think, also certificates are generated properly. I have $APP_CENTER_APP_ID and $APP_CENTER_DISTRIBUTION_GROUP configured as env vars and $APP_CENTER_ACCESS_TOKEN as secret.
I've also checked if this step is finding app, distribution group by passing bad data - then I've received correct error that script doesn't found distribution group or app - so this is also configured properly.
What I'm missing?
@kartwal Let's try appcenter-cli on your mac. https://github.com/microsoft/appcenter-cli
# AppCenter CLI instal
npm install -g appcenter-cli
# CLI Login
appcenter login
# ipa upload
appcenter distribute release -f "{myapp.ipa}" -r "cli upload test" -a "{my_org/my_app}" --token "{appcenter_api_token}" -g "{distribution_group_name}"
I had a similar issue and after long investigation found that distribution group name you see in UI on appcenter not always match it's "real" name. I got the real one by trying to remove the group, in confirmation alert they show you real name. Same I've noticed on the other app but for the app name field. App name I found in the URL when you open app settings or smth like that, it also differed from the one in UI.
You can see a screenshot here: https://twitter.com/deszip/status/1251825964805435393
Hope this helps.
Thanks @deszip - I've checked that and my distribution group matches title in delete alert
Thanks @deszip ! Distribution group has proper name, but organization name has Name-1 - when I've updated organization name, I started working!
Really appreciate for your help and @kanari3 you too :)
Glad to help man :) You can ping @VSAppCenter and @DimahZaid on Twitter with this issue, probably this will speed up the fix.
@deszip amazing\(^o^)/
@kartwal Congratulations\(^o^)/
Hello ! I had the same issue. It appears that I can't use Environment variables in inputs of the step. every inputs I set doesn't work, I had to do a bash step and setting up all my vars with their content.
Hi, for some reason my team started to experience the same issue, now on 0.0.3. Any more leads on this?
Thanks!
I think that's caused by the envman lines. I managed it by setting these variables in a script before this step
I think that's caused by the envman lines. I managed it by setting these variables in a script before this step
Yeah, weird how it just stopped working
I think that's caused by the envman lines. I managed it by setting these variables in a script before this step
Are you able to share a sample of the script here? Im not sure exactly which variables to set prior to the AppCenter upload
I actually ended up fixing this... Turns out $APP_CENTER_BUILD_MESSAGE
is now a requirement and we weren't setting it.
I would add to that that one literally must define the $APP_CENTER_BUILD_MESSAGE
workflow variable and use it in the step configuration (simply speaking, do not touch anything in the default configuration of the step 😄). I had made a mistake initially by replacing this variable with a composition of other variables directly in the step configuration, and this didn't work.
If you need to use values of other variables in the build message, define a $APP_CENTER_BUILD_MESSAGE
workflow variable, turn on input replacement, and specify something like this as the variable value: $BITRISE_APP_TITLE build $BITRISE_BUILD_NUMBER
Sorry it's been so long. Is there anything you still don't understand right now?
Thanks for following up @kanari3! For me personally, everything has started working as soon as I properly defined the $APP_CENTER_BUILD_MESSAGE
variable. So my comment above is rather a clarification which I hope would be useful should anyone face similar issues in the future due to misconfiguring the Bitrise step.
v0.0.4 has been released! Please try it out!
I have same issue on 0.0.4 I filled all fields
+------------------------------------------------------------------------------+
| (11) appcenter-ipa-upload@0 |
+------------------------------------------------------------------------------+
| id: appcenter-ipa-upload |
| version: 0.0.4 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2022-04-07T16:02:19Z |
+------------------------------------------------------------------------------+
| |
+ hash appcenter
+ echo 'Microsoft AppCenter CLI already installed.'
Microsoft AppCenter CLI already installed.
+ envman add --key APP_CENTER_APP_ID
+ envman add --key APP_CENTER_ACCESS_TOKEN
+ envman add --key APP_CENTER_DISTRIBUTION_GROUP
+ envman add --key APP_CENTER_BUILD_MESSAGE
+ '[' -z '' ']'
+ APP_CENTER_BUILD_MESSAGE='no message'
+ appcenter distribute release -f /Users/vagrant/deploy/Leather.ipa -r 'no message' -a [REDACTED] --token '' -g '' --quiet
Error: Command 'distribute release -f /Users/vagrant/deploy/Leather.ipa -r no message -a [REDACTED] --token -g --quiet' failed with exception "Unknown arguments: "
| |
+---+---------------------------------------------------------------+----------+
| x | appcenter-ipa-upload@0 (exit code: 3) | 4.72 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...ithub.com/kanari3/bitrise-step-appcenter-ipa-upload/issues |
| Source: https://github.com/kanari3/bitrise-step-appcenter-ipa-upload |
+---+---------------------------------------------------------------+----------+
I am facing same issue now.
I have made sure I have entered values for all env variable correctly. and it works if I try from Lcal Mac terminal command with appcenter cli.
https://github.com/microsoft/appcenter-cli
appcenter distribute release -f "{myapp.ipa}" -r "cli upload test" -a "{my_org/my_app}" --token "{appcenter_api_token}" -g "{distribution_group_name}"
Error in bitrise
exit status 3 (exit code: 3)
@any help is highly appreciable
I'm not able to upload iPA on appcenter via bitrise