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.