Virtual-environments: Running script 'Run Script' ** ARCHIVE FAILED **

Created on 20 Nov 2020  路  7Comments  路  Source: actions/virtual-environments

Description
Archive works ok on my local machine. But it fails on GitHub Action. With exit code 65.

Capture d鈥櫭ヽran 2020-11-18 脿 13 51 47

How can I have more info on what fails ?
I don't know if it's linked, but this error appear after migrating to macOS 11.0

Apple macOS investigate

Most helpful comment

Ok my bad, this was absolutely not a bug related to GitHub Action.

All 7 comments

Hello, @gregoireLem. Could you please provide us a code sample and what mac version you are using locally?

Hello, thanks for the reply.
This command fails in the deployment pipeline:

set -eo pipefail

xcodebuild -workspace MyApp.xcworkspace \
            -scheme MyApp-Beta \
            -sdk iphoneos CODE_SIGN_IDENTITY="Apple Distribution" PROVISIONING_PROFILE_SPECIFIER="My App Distribution Profile"\
            -xcconfig ./sheme-config/Beta.xcconfig \
            -configuration Beta \
            -archivePath $PWD/build/MyApp.xcarchive \
            clean archive | xcpretty

I am using both macOS version 11.0.1 and Xcode 12.2 on my local machine and GitHub Action

This command works ok locally

I tried to get back to Catalina on GitHub Action VM, but I have the same result

Here is the setup job output

2020-11-20T10:44:47.0176270Z Current runner version: '2.274.2'
2020-11-20T10:44:47.0226410Z ##[group]Operating System
2020-11-20T10:44:47.0227600Z macOS
2020-11-20T10:44:47.0228070Z 11.0.1
2020-11-20T10:44:47.0228540Z 20B29
2020-11-20T10:44:47.0229050Z ##[endgroup]
2020-11-20T10:44:47.0229600Z ##[group]Virtual Environment
2020-11-20T10:44:47.0230390Z Environment: macos-11.0
2020-11-20T10:44:47.0230980Z Version: 20201116.13
2020-11-20T10:44:47.0231960Z Included Software: https://github.com/actions/virtual-environments/blob/macOS-11.0/20201116.13/images/macos/macos-11.0-Readme.md
2020-11-20T10:44:47.0232970Z ##[endgroup]
2020-11-20T10:44:47.0236710Z Prepare workflow directory
2020-11-20T10:44:47.0955780Z Prepare all required actions
2020-11-20T10:44:47.1037040Z Getting action download info
2020-11-20T10:44:47.3517990Z Download action repository 'actions/checkout@v1'

Ok my bad, this was absolutely not a bug related to GitHub Action.

Ok my bad, this was absolutely not a bug related to GitHub Action.

Hey @gregoireLem,
I am running into a similar issue right now. Any chance you could share what your fix was?

Thanks in advance!

@woodrufs. I had this error after deleting a pod dependency. Some script related to the pod was still generated in derived data, but the script fails to find the dependency. Make sure you don't have unused script in project.pbxproj :)
Hope it helps !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trajano picture trajano  路  3Comments

shivammathur picture shivammathur  路  3Comments

Poolitzer picture Poolitzer  路  4Comments

Tnze picture Tnze  路  4Comments

ethomson picture ethomson  路  4Comments