iOS: Fix building tests on real devices

Bug: webrtc:15797
Change-Id: Ieae0a08bb6b141cb70d6c865bf98041f1d21e1ca
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/336060
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Auto-Submit: Florent Castelli <orphis@webrtc.org>
Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org>
Reviewed-by: Christoffer Dewerin <jansson@google.com>
Cr-Commit-Position: refs/heads/main@{#41604}
This commit is contained in:
Florent Castelli 2024-01-24 15:41:06 +01:00 committed by WebRTC LUCI CQ
parent 5372bcec52
commit a8375bb973

View File

@ -473,7 +473,8 @@
__block BOOL completed = NO;
[peerConnection
offerForConstraints:constraints
completionHandler:^(RTCSessionDescription *_Nullable sdp, NSError *_Nullable error) {
completionHandler:^(RTC_OBJC_TYPE(RTCSessionDescription) *_Nullable sdp,
NSError *_Nullable error) {
XCTAssertNil(error);
XCTAssertNotNil(sdp);