Skip to content

Commit 791db47

Browse files
Pin iOS 18.0 in Samples and Test apps (#4096)
1 parent 5b0b144 commit 791db47

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0-ios</TargetFramework>
5+
<TargetPlatformVersion>18</TargetPlatformVersion>
56
<OutputType>Exe</OutputType>
67
<Nullable>enable</Nullable>
78
<ImplicitUsings>true</ImplicitUsings>

test/Sentry.Maui.Device.TestApp/Sentry.Maui.Device.TestApp.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<TargetFrameworks></TargetFrameworks>
55
<TargetFrameworks Condition="'$(NO_ANDROID)' == ''">$(TargetFrameworks);net8.0-android;net9.0-android</TargetFrameworks>
66
<TargetFrameworks Condition="'$(NO_IOS)' == '' And $([MSBuild]::IsOSPlatform('OSX'))">$(TargetFrameworks);net8.0-ios;net9.0-ios</TargetFrameworks>
7+
<!-- Pin target iOS version so that our tests don't break when new versions of Xcode are released.
8+
'net8.0-ios' resolves the latest version of the iOS SDK otherwise. -->
9+
<TargetPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">18</TargetPlatformVersion>
710
<UseMaui>true</UseMaui>
811
<!-- Currently broken on .NET 7, see
912
- https://github.com/dotnet/maui/issues/18573

0 commit comments

Comments
 (0)