firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.56k stars 1.45k forks source link

FIRCLSMetricKitManagerTests fail in Xcode 14.3 #11199

Closed paulb777 closed 2 months ago

paulb777 commented 1 year ago

Description

./scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=ios --no-clean fails when Xcode 14.3 is the xcode selected.

Reproducing the issue

./scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=ios --no-clean

- NOTE  | [iOS] xcodebuild:  /Users/paul/gh3/firebase-ios-sdk/Crashlytics/UnitTests/FIRCLSMetricKitManagerTests.m:221: error: -[FIRCLSMetricKitManagerTests testCPUExceptionDiagnosticHandling] : *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] (NSInvalidArgumentException)
- NOTE  | [iOS] xcodebuild:  /Users/paul/gh3/firebase-ios-sdk/Crashlytics/UnitTests/FIRCLSMetricKitManagerTests.m:204: error: -[FIRCLSMetricKitManagerTests testCrashDiagnosticHandling] : *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] (NSInvalidArgumentException)
- NOTE  | [iOS] xcodebuild:  /Users/paul/gh3/firebase-ios-sdk/Crashlytics/UnitTests/FIRCLSMetricKitManagerTests.m:230: error: -[FIRCLSMetricKitManagerTests testDiskWriteExceptionDiagnosticHandling] : *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] (NSInvalidArgumentException)
- NOTE  | [iOS] xcodebuild:  /Users/paul/gh3/firebase-ios-sdk/Crashlytics/UnitTests/FIRCLSMetricKitManagerTests.m:377: error: -[FIRCLSMetricKitManagerTests testEmptyDiagnosticHandling] : *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] (NSInvalidArgumentException)
- NOTE  | [iOS] xcodebuild:  /Users/paul/gh3/firebase-ios-sdk/Crashlytics/UnitTests/FIRCLSMetricKitManagerTests.m:239: error: -[FIRCLSMetricKitManagerTests testFullDiagnosticHandling] : *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] (NSInvalidArgumentException)
- NOTE  | [iOS] xcodebuild:  /Users/paul/gh3/firebase-ios-sdk/Crashlytics/UnitTests/FIRCLSMetricKitManagerTests.m:212: error: -[FIRCLSMetricKitManagerTests testHangDiagnosticHandling] : *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] (NSInvalidArgumentException)
- NOTE  | [iOS] xcodebuild:  /Users/paul/gh3/firebase-ios-sdk/Crashlytics/UnitTests/FIRCLSMetricKitManagerTests.m:204: error: -[FIRCLSMetricKitManagerTests testMultiplePayloadsWithCrashesHandling] : *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] (NSInvalidArgumentException)
- NOTE  | [iOS] xcodebuild:  /Users/paul/gh3/firebase-ios-sdk/Crashlytics/UnitTests/FIRCLSMetricKitManagerTests.m:260: error: -[FIRCLSMetricKitManagerTests testPayloadWithMultipleCrashesHandling] : *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0] (NSInvalidArgumentException)

Firebase SDK Version

10.9.0

Xcode Version

14.3

Installation Method

CocoaPods

Firebase Product(s)

Crashlytics

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
```json Replace this line with the contents of your Package.resolved. ```

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
themiswang commented 2 months ago

Since we bump CI to Xcode 15, gonna close this ticket.