-
Notifications
You must be signed in to change notification settings - Fork 53
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
Error when I try to Release with build skipped #206
Comments
Hi @NPadrutt could you please try to run it with fastlane '--verbose' flag? |
here are those logs: |
@NPadrutt there was a fix for issue #174 - according to current fastlane logic it requires either description, or metadata, or deliver file to be specified in case of skipping of binary file. We are planning to extend current help info for 'Skip Binary Upload' regarding it. |
@anatolybolshakov I already had release notes defined via a metadata folder. Although I extended that for the description: But so far the logs seem the same. Would I have to declare that differently? |
@NPadrutt do you have 'metadata' inside of fastlane directory? |
@anatolybolshakov no, I have it in the root of the drop. The hiearchy in the release looks like this: |
@NPadrutt ok I see, got it 👍 Let me take a look |
@anatolybolshakov We'd be keen to know of a solution to this as well. I think we have the same case where a build is already on TestFlight, but would like to automate the process of sending for review (which requires adding our new metadata). Our setup seems to be the same, but when running the task with "Skip Binary Upload" and "Upload Metadata" selected, we get the message From a look at the docs, it seems that promoting an existing build from TestFlight to Production should work, but I can't quite work out the additional arguments I need to pass? http://docs.fastlane.tools/actions/deliver/#submit-build |
@NPadrutt According to fastlane code it tries to find metadata folder inside of fastlane folder or current working directory- so it seems it doesn't consider custom metadata path... This seems to be a fastlane issue - could you please create ticket in fastlane repo? |
@anatolybolshakov yes I've attached the log, replacing some paths,ids and names with [...] but hopefully gives enough detail. We have successfully deployed a binary to TestFlight already, and the purpose of this build is to use the I've played with a few settings to see if some combination will work, but haven't been able to find. If you think this is a separate issue I can raise a new one though? Here is our yaml:
From the fastlane docs above, it appears I need to use |
Hi @kevcrooks, thanks to your comment I was able to move build from TestFlight to AppStore with skipBinary by using this as fastlane arguments: |
As a work around for me worked to just add a PowerShell script before the upload step that moves the metadata folder to the root of the working directory:
The issue for fastlane is created. We'll see if they can find something. |
While my work around solved the initial issue I had, meanwhile I have the same as @kevcrooks. Funny enough, when I create a build and directly promote it through testflight to production it works. But when I do the promoting a day or two later I get the |
@NPadrutt |
@jawi-bq thanks for the tipp. I'll try the --app_version parameter in the next publish. I'm just kinda puzzled that it sometimes seems to work when you directly go through. But maybe there is something going together with the TestFlight release or that I opened something with my tests that I wasn't aware of. |
This is like whack a mole.. Now I get the error: "Unsupported directory name(s) for screenshots/metadata " despite having deactivated that screenshots should be uploaded and not having made any changes to the meta data.. |
@NPadrutt @let us take a look if we could make a workaround at the moment at the task level - to avoid metadata path being ignored. |
@anatolybolshakov apologies it's taken a while to come back to look at this. The problem I was having with the promote task is that there is no "upload metadata" option, so I need to populate the "release notes" field in some way, when promoting from TestFlight to Production (for review). Similarly, when initially targeting the TestFlight track, the option to add metadata there is removed, so if I want a pipeline like:
This didn't seem to work for me, since neither task has the option to upload metadata I think - am I missing a configuration that I need to add? |
After 3 days, I found a workaround, hope that will be useful and will save some time for you:
************************** - sensitive data |
I did the same as above comments. create metadata but still getting this error. 2022-01-19T14:23:54.0796280Z ##[section]Starting: Publish IOS App to App Store 2022-01-19T14:39:03.1262710Z ##[error]Error: The process '/usr/local/lib/ruby/gems/2.7.0/bin/fastlane' failed with exit code 1 2022-01-19T14:39:03.1393170Z ##[section]Finishing: Publish IOS App to App Store |
@patelchetan79 I think something is wrong with your metadata file, look at your error: Could you send your scripts, so we can review that |
metadata has below directory structutre.. File structure i created manually in my repository. steps:
Thanks |
@patelchetan79 |
@patelchetan79 sorry but I see no issue with your scripts, maybe it is something wrong with a path? maybe you set the wrong path? Are you sure that those files exists: '$(System.DefaultWorkingDirectory)/ios/App/App/metadata' under the Cause I see in your logs nothing about those txt files, look what I have in my logs: |
Hi, It is issue with my end. not able to find the directory. I see that log now. Uploading running for 1 hours and still not done. Do you know any setup i am missing. I have submit for review true. If i do submit for review false the IPA file is not uploading. |
To get the promote task to work, combining the PS script noted by Andrey and include in the addtional fastlane args
|
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Question / bug
Enter Task Name: Apple App Store Release
Environment
Agent - Hosted or Private:
Release all -> Promote iOS to Production
Issue Description
I try to promote a iOS built to from Testflight to Produciont. This is my task:
And I get the error you see in the logs. From the issues on GitHub that I found, that would hint at a problem with the 2FA. But I use the same service connection as I do for the test flight which has 2FA disabled.
Also, when I remove the "Skip Binary Upload" option I don't get that error and it seems to upload correctly. So to me that sounds like that the basic connection and auth does work.
Also, I haven't changed anything on the pipeline since a couple of months where it was still working or at least got to a later point. So I'm not sure if there was a fast lane update that needs some more configuration or is no longer compatible with the current task or something like that?
Task logs
ReleaseLogs_310.zip
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
[Insert error from the logs here for a quick overview]
The text was updated successfully, but these errors were encountered: