Skip to content

AmplifyTests fail to execute in pipeline #782

@palpatim

Description

@palpatim

Describe the bug

With the addition of Xcode 12 support, the AmplifyTests bundle fails to execute in our CircleCI pipeline.

To Reproduce
Steps to reproduce the behavior:

  1. Attempt to build Amplify in the pipeline (e.g., make a commit to the latest main branch)

This is also reproducible locally with a booted simulator

sim_id=$(xcrun simctl list | grep -i booted | grep -ie "[-A-F0-9]\{36\}" -o)
destination="platform=iOS Simulator,id=${sim_id}"
xcodebuild test -enableThreadSanitizer NO -workspace Amplify.xcworkspace -scheme Amplify -sdk iphonesimulator -destination "${destination}" -only-testing AmplifyTests

Expected behavior
All targets build and all unit tests pass

Actual behavior
All targets build, most unit tests pass, but the AmplifyTest bundle fails to execute, with the following error:

Testing failed:
	AmplifyTests:
		xctest (88696) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying Error: Test runner exited before starting test execution. If you believe this error represents a bug, please attach the result bundle at <path to result>))

Environment(please complete the following information):

  • Amplify Framework Version: main branch as of 6979763
  • Dependency Manager: Cocoapods
  • Swift Version : 5.3

Device Information (please complete the following information):

  • Device: Simulator
  • iOS Version: iOS 14
  • Specific to simulators: Unknown

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbuildIssues related to build and CI/CD

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions