Bitrise build failed (exit code: 1) ... ye, but why?

Hi.

I submitted a ticket explaining that only 50% of my iOS UITests are passing when running a pipeline on your platform.
So you guys suggested I step through this article

Attempting to build and test locally using bitrise CLI is failing.

robertnash@Roberts-MBP quick-repo-test % bitrise run primary

██████╗ ██╗████████╗██████╗ ██╗███████╗███████╗
██╔══██╗██║╚══██╔══╝██╔══██╗██║██╔════╝██╔════╝
██████╔╝██║ ██║ ██████╔╝██║███████╗█████╗
██╔══██╗██║ ██║ ██╔══██╗██║╚════██║██╔══╝
██████╔╝██║ ██║ ██║ ██║██║███████║███████╗
╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚══════╝

version: 1.48.0

INFO[04:05:43] bitrise runs in Secret Filtering mode
INFO[04:05:43] bitrise runs in Secret Envs Filtering mode
INFO[04:05:43] Running workflow: primary

Switching to workflow: primary

INFO[04:05:43] Step uses latest version – Updating StepLib …
±-----------------------------------------------------------------------------+
| (0) activate-ssh-key@4 |
±-----------------------------------------------------------------------------+
| id: activate-ssh-key |
| version: 4.1.0 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2022-01-27T04:05:45Z |
±-----------------------------------------------------------------------------+
| |
WARN[04:05:45] The step’s (activate-ssh-key@4) Run-If expression evaluated to false - skipping
INFO[04:05:45] The Run-If expression was: {{getenv “SSH_RSA_PRIVATE_KEY” | ne “”}}
| |
±–±--------------------------------------------------------------±---------+
| - | activate-ssh-key@4 | 1.93 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (1) git-clone@6 |
±-----------------------------------------------------------------------------+
| id: git-clone |
| version: 6.1.2 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2022-01-27T04:05:45Z |
±-----------------------------------------------------------------------------+
| |
WARN[04:05:45] The step’s (git-clone@6) Run-If expression evaluated to false - skipping
INFO[04:05:45] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | git-clone@6 | 0.47 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (2) cache-pull@2 |
±-----------------------------------------------------------------------------+
| id: cache-pull |
| version: 2.5.0 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2022-01-27T04:05:45Z |
±-----------------------------------------------------------------------------+
| |
WARN[04:05:45] The step’s (cache-pull@2) Run-If expression evaluated to false - skipping
INFO[04:05:45] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | cache-pull@2 | 0.39 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (3) Do anything with Script step |
±-----------------------------------------------------------------------------+
| id: script |
| version: 1.1.6 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: bash |
| time: 2022-01-27T04:05:46Z |
±-----------------------------------------------------------------------------+
| |
| |
±–±--------------------------------------------------------------±---------+
| ✓ | Do anything with Script step | 0.43 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (4) certificate-and-profile-installer@1 |
±-----------------------------------------------------------------------------+
| id: certificate-and-profile-installer |
| version: 1.10.3 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2022-01-27T04:05:46Z |
±-----------------------------------------------------------------------------+
| |
WARN[04:05:46] The step’s (certificate-and-profile-installer@1) Run-If expression evaluated to false - skipping
INFO[04:05:46] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | certificate-and-profile-installer@1 | 0.44 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (5) xcode-test@4 |
±-----------------------------------------------------------------------------+
| id: xcode-test |
| version: 4.0.1 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2022-01-27T04:05:47Z |
±-----------------------------------------------------------------------------+
| |
INFO[04:05:47] * [OK] Step dependency (xcode) installed, available.
INFO[04:05:47] * [OK] Step dependency (go) installed, available.
Input:

  • ProjectPath: AccordionTable.xcodeproj
  • Scheme: AccordionTable
  • Destination: platform=iOS Simulator,name=iPhone 8 Plus,OS=latest
  • TestPlan:
  • TestRepetitionMode: none
  • MaximumTestRepetitions: 3
  • RelaunchTestsForEachRepetition: false
  • RetryTestsOnFailure: false
  • XCConfigContent: COMPILER_INDEX_STORE_ENABLE = NO
  • PerformCleanAction: false
  • XcodebuildOptions:
  • LogFormatter: xcpretty
  • XcprettyOptions: --color --report html --output “/var/folders/n0/yy5pk5ns3pb6v2hdqf_pwsv00000gn/T/deploy842080567/xcode-test-results-AccordionTable.html”
  • CacheLevel: swift_packages
  • VerboseLog: false
  • CollectSimulatorDiagnostics: never
  • HeadlessMode: true
  • DeployDir: /var/folders/n0/yy5pk5ns3pb6v2hdqf_pwsv00000gn/T/deploy842080567

failed to determine Xcode version, error: failed to parse xcodebuild version output (objc[20049]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1f799f130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1061ac2c8). One of the two will be used. Which one is undefined.
objc[20049]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1f799f180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1061ac318). One of the two will be used. Which one is undefined.
Xcode 13.2.1
Build version 13C100)
| |
±–±--------------------------------------------------------------±---------+
| x | xcode-test@4 (exit code: 1) | 0.84 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: Issues · bitrise-steplib/steps-xcode-test · GitHub |
| Source: GitHub - bitrise-steplib/steps-xcode-test: Xcode Test step |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (6) deploy-to-bitrise-io@2 |
±-----------------------------------------------------------------------------+
| id: deploy-to-bitrise-io |
| version: 2.0.3 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2022-01-27T04:05:48Z |
±-----------------------------------------------------------------------------+
| |
WARN[04:05:48] The step’s (deploy-to-bitrise-io@2) Run-If expression evaluated to false - skipping
INFO[04:05:48] The Run-If expression was: .IsCI
| |
±–±--------------------------------------------------------------±---------+
| - | deploy-to-bitrise-io@2 | 0.53 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| (7) cache-push@2 |
±-----------------------------------------------------------------------------+
| id: cache-push |
| version: 2.6.0 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2022-01-27T04:05:48Z |
±-----------------------------------------------------------------------------+
| |
WARN[04:05:48] The step’s (cache-push@2) Run-If expression evaluated to false - skipping
INFO[04:05:48] The Run-If expression was: .IsCI | and (not .IsPR)
| |
±–±--------------------------------------------------------------±---------+
| - | cache-push@2 | 0.44 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+
| bitrise summary |
±–±--------------------------------------------------------------±---------+
| | title | time (s) |
±–±--------------------------------------------------------------±---------+
| - | activate-ssh-key@4 | 1.93 sec |
±–±--------------------------------------------------------------±---------+
| - | git-clone@6 | 0.47 sec |
±–±--------------------------------------------------------------±---------+
| - | cache-pull@2 | 0.39 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | Do anything with Script step | 0.43 sec |
±–±--------------------------------------------------------------±---------+
| - | certificate-and-profile-installer@1 | 0.44 sec |
±–±--------------------------------------------------------------±---------+
| x | xcode-test@4 (exit code: 1) | 0.84 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: Issues · bitrise-steplib/steps-xcode-test · GitHub |
| Source: GitHub - bitrise-steplib/steps-xcode-test: Xcode Test step |
±–±--------------------------------------------------------------±---------+
| - | deploy-to-bitrise-io@2 | 0.53 sec |
±–±--------------------------------------------------------------±---------+
| - | cache-push@2 | 0.44 sec |
±–±--------------------------------------------------------------±---------+
| Total runtime: 5.46 sec |
±-----------------------------------------------------------------------------+

Submitting anonymized usage information…
For more information visit:

Bitrise build failed (exit code: 1)

Description of the issue

It’s not clear why the build is failing. The log mentions an issue that I don’t see when building in xcode. Someone here also mentions the same issue ios - xcodebuild gives an error for multiple implementation of AMSupportURLConnectionDelegate and AMSupportURLSession : "Which one is undefined." - Stack Overflow

Environment:

MacOS 12.0.1
M1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.