Skip to content

Commit 606f680

Browse files
[xcode26] Update baseline to Xcode 26 Beta 2 (#23184)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
1 parent 9527b50 commit 606f680

File tree

69 files changed

+247
-130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+247
-130
lines changed

Make.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ MACCATALYST_NUGET_VERSION_FULL=$(MACCATALYST_NUGET_VERSION_NO_METADATA)$(NUGET_B
202202

203203
# Xcode version should have both a major and a minor version (even if the minor version is 0)
204204
XCODE_VERSION=26.0
205-
XCODE_URL=https://dl.internalx.com/internal-files/xcodes/Xcode_26_beta.xip
206-
XCODE_DEVELOPER_ROOT=/Applications/Xcode_26.0.0-beta.app/Contents/Developer
205+
XCODE_URL=https://dl.internalx.com/internal-files/xcodes/Xcode_26_beta_2.xip
206+
XCODE_DEVELOPER_ROOT=/Applications/Xcode_26.0.0-beta2.app/Contents/Developer
207207
XCODE_PRODUCT_BUILD_VERSION:=$(shell /usr/libexec/PlistBuddy -c 'Print :ProductBuildVersion' $(XCODE_DEVELOPER_ROOT)/../version.plist 2>/dev/null || echo " $(shell tput setaf 1 2>/dev/null)The required Xcode ($(XCODE_VERSION)) is not installed in $(basename $(basename $(XCODE_DEVELOPER_ROOT)))$(shell tput sgr0 2>/dev/null)" >&2)
208208

209209
# We define stable Xcode as the Xcode app being named like "Xcode_#.#[.#].app"

mk/xamarin.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ endif
1010

1111
# Available versions can be seen here:
1212
# https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-eng/NuGet/Microsoft.Tools.Mlaunch/versions
13-
MLAUNCH_NUGET_VERSION=1.1.63
13+
MLAUNCH_NUGET_VERSION=1.1.71
1414

1515
define CheckVersionTemplate
1616
check-$(1)::

src/eventkit.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,6 @@ interface EKCalendarItem {
148148

149149
[Export ("calendarItemExternalIdentifier")]
150150
string CalendarItemExternalIdentifier { get; }
151-
152-
[iOS (26, 0), MacCatalyst (26, 0), Mac (26, 0)]
153-
[Export ("hasMaximumAlarms")]
154-
bool HasMaximumAlarms { get; }
155151
}
156152

157153
/// <summary>Encapsulates an account that a calendar reflects.</summary>

tests/common/TestRuntime.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@ public static bool CheckExactXcodeVersion (int major, int minor, int beta = 0)
382382
macOS = new { Major = 26, Minor = 0, Build = "25A5279m" },
383383
};
384384

385+
var twentysixb2 = new {
386+
Xcode = new { Major = 26, Minor = 0, Beta = 2 },
387+
iOS = new { Major = 26, Minor = 0, Build = "23A5276e" },
388+
tvOS = new { Major = 26, Minor = 0, Build = "23J5295e" },
389+
macOS = new { Major = 26, Minor = 0, Build = "25A5295e" },
390+
};
385391
var versions = new [] {
386392
nineb1,
387393
nineb2,
@@ -391,6 +397,7 @@ public static bool CheckExactXcodeVersion (int major, int minor, int beta = 0)
391397
twelvedot2b2,
392398
twelvedot2b3,
393399
twentysixb1,
400+
twentysixb2,
394401
};
395402

396403
foreach (var v in versions) {
@@ -1356,7 +1363,7 @@ public static void RequestMicrophonePermission (bool assert_granted = false)
13561363
// so just ignore these tests for now.
13571364
NUnit.Framework.Assert.Ignore ("Requires a hardened runtime entitlement: com.apple.security.device.microphone");
13581365
#else
1359-
if (CheckExactXcodeVersion (26, 0, beta: 1))
1366+
if (CheckExactXcodeVersion (26, 0, beta: 1) || CheckExactXcodeVersion (26, 0, beta: 2))
13601367
NUnit.Framework.Assert.Ignore ("AVAudioApplication.RecordPermission crashes. FB18023766");
13611368

13621369
if (!CheckXcodeVersion (6, 0))

tests/introspection/ApiCoreImageFiltersTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ protected virtual bool Skip (string nativeName)
8383
case "CISignedDistanceGradientFromRedMask":
8484
case "CISystemToneMap":
8585
return true;
86-
case "CIPersonSegmentation": // removed in Xcode 26 beta 1?
87-
case "CISaliencyMapFilter": // removed in Xcode 26 beta 1?
88-
return TestRuntime.CheckExactXcodeVersion (26, 0, 1);
86+
case "CIPersonSegmentation": // removed in Xcode 26 beta 1/2?
87+
case "CISaliencyMapFilter": // removed in Xcode 26 beta 1/2?
88+
return TestRuntime.CheckExactXcodeVersion (26, 0, 1) || TestRuntime.CheckExactXcodeVersion (26, 0, 2);
8989
}
9090
}
9191

tests/introspection/ApiCtorInitTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ protected virtual bool Skip (Type type)
177177
return true;
178178
break;
179179
#endif
180-
case "CIPersonSegmentation": // removed in Xcode 26 beta 1?
181-
case "CISaliencyMapFilter": // removed in Xcode 26 beta 1?
182-
return TestRuntime.CheckExactXcodeVersion (26, 0, 1);
180+
case "CIPersonSegmentation": // removed in Xcode 26 beta 1/2?
181+
case "CISaliencyMapFilter": // removed in Xcode 26 beta 1/2?
182+
return TestRuntime.CheckExactXcodeVersion (26, 0, 1) || TestRuntime.CheckExactXcodeVersion (26, 0, 2);
183183
}
184184

185185
switch (type.Namespace) {

tests/introspection/ApiSelectorTest.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,14 +1124,12 @@ protected virtual bool Skip (Type type, string selectorName)
11241124
return TestRuntime.CheckXcodeVersion (26, 0); // https://github.com/rolfbjarne/apple-feedback/tree/main/FB18122430
11251125
}
11261126
break;
1127-
#if __MACOS__
11281127
case "PhaseSoundEvent":
11291128
switch (selectorName) {
1130-
case "startAndReturnError:": // introspection complains about this in Xcode 26 b1 on macOS only, but the selector is still available in the header for macOS.
1131-
return TestRuntime.CheckExactXcodeVersion (26, 0, 1);
1129+
case "startAndReturnError:": // introspection complains about this in Xcode 26 b1 and b2 only, but the selector is still available in the headers, so only verify the exact Xcode version for now to see if Apple changes their minds in a future beta.
1130+
return TestRuntime.CheckExactXcodeVersion (26, 0, 1) || TestRuntime.CheckExactXcodeVersion (26, 0, 2);
11321131
}
11331132
break;
1134-
#endif // __MACOS__
11351133
}
11361134

11371135
// old binding mistake

tests/monotouch-test/CoreGraphics/ColorSpaceTest.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ public void CreateIccData ()
219219
using (var cs = CGColorSpace.CreateIccData (icc)) {
220220
TestICC (cs);
221221
}
222+
#if __TVOS__
223+
if (TestRuntime.CheckXcodeVersion (26, 0))
224+
Assert.Ignore ("Creating a color space from a CGDataProvider crashes: https://github.com/rolfbjarne/apple-feedback/tree/main/FB18396591");
225+
#endif
222226
using (var provider = new CGDataProvider (icc)) {
223227
using (var cs = CGColorSpace.CreateIccData (provider)) {
224228
// broke? with Xcode 13 beta 1 (iOS, tvOS)
@@ -229,11 +233,19 @@ public void CreateIccData ()
229233
}
230234
}
231235
}
236+
}
232237

238+
[Test]
239+
public void CreateIccData_Null_NSData ()
240+
{
233241
using (var space = CGColorSpace.CreateIccData ((NSData) null)) {
234242
Assert.IsNull (space, "null data");
235243
}
244+
}
236245

246+
[Test]
247+
public void CreateIccData_Null_CGDataProvider ()
248+
{
237249
using (var space = CGColorSpace.CreateIccData ((CGDataProvider) null)) {
238250
Assert.IsNull (space, "null data provider");
239251
}

tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.todo

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,16 @@
182182
!missing-type! AVMetadataDogHeadObject not bound
183183
!missing-type! AVMetricDownloadSummaryEvent not bound
184184
!missing-type! AVPlaybackCoordinationMedium not bound
185+
!missing-selector! AVCaptureVideoDataOutput::preservesDynamicHDRMetadata not bound
186+
!missing-selector! AVCaptureVideoDataOutput::setPreservesDynamicHDRMetadata: not bound
187+
!missing-selector! AVMetricHLSMediaSegmentRequestEvent::segmentDuration not bound
188+
!missing-selector! AVMetricMediaRendition::stableID not bound
189+
!missing-selector! AVMetricMediaRendition::URL not bound
190+
!missing-selector! AVMetricPlayerItemVariantSwitchEvent::audioRendition not bound
191+
!missing-selector! AVMetricPlayerItemVariantSwitchEvent::subtitleRendition not bound
192+
!missing-selector! AVMetricPlayerItemVariantSwitchEvent::videoRendition not bound
193+
!missing-selector! AVMetricPlayerItemVariantSwitchStartEvent::audioRendition not bound
194+
!missing-selector! AVMetricPlayerItemVariantSwitchStartEvent::subtitleRendition not bound
195+
!missing-selector! AVMetricPlayerItemVariantSwitchStartEvent::videoRendition not bound
196+
!missing-selector! AVSampleBufferVideoRenderer::recommendedPixelBufferAttributes not bound
197+
!missing-type! AVMetricMediaRendition not bound

tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AppKit.todo

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@
33
!missing-selector! NSToolbarItem::setBackgroundTintColor: not bound
44
!missing-selector! NSToolbarItem::setStyle: not bound
55
!missing-selector! NSToolbarItem::style not bound
6+
!missing-selector! +NSItemBadge::badgeWithCount: not bound
7+
!missing-selector! +NSItemBadge::badgeWithText: not bound
8+
!missing-selector! +NSItemBadge::indicatorBadge not bound
9+
!missing-selector! NSItemBadge::text not bound
10+
!missing-selector! NSToolbarItem::badge not bound
11+
!missing-selector! NSToolbarItem::setBadge: not bound
12+
!missing-type! NSItemBadge not bound

0 commit comments

Comments
 (0)