iOS 15 Cocoapods installation crashes upon start (2.2.1)
- Dominant language
- Objective-C
- Stars
- 5.7k
- Forks
- 737
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 5
Description
Opened up a new project, installed EarlGrey2 via Cocoapods, tried running UI tests, crashed and got this error message:
```
Failed to get automation session for com.huyanh.ios15crashes:50763: Timed out waiting for target to check in.
```
Podfile
```
platform :ios, '13.0'
use_frameworks!
inhibit_all_warnings!
source 'https://github.com/cocoapods/specs.git'
target 'ios15crashes (iOS)' do
pod 'EarlGreyApp'
end
target 'Tests iOS' do
pod 'EarlGreyTest'
end
```
Nothing special was in UI tests:
```
import XCTest
class Tests_iOS: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usually best to stop immediately when a failure occurs.
continueAfterFailure = false
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() throws {
// UI tests must launch the application that they test.
let app = XCUIApplication()
app.launch()
// Use recording to get started writing UI tests.
// Use XCTAssert and related functions to verify your tests produce the correct results.
XCTAssert(true)
}
}
```
Contributor guide
Research direction
Reproduce the failure with the shown Podfile and minimal Tests_iOS UI test on iOS 15, starting from the EarlGreyApp and EarlGreyTest integration and the timeout message. Done means the test launches without the automation-session timeout and the cause and validation are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100