Fix physical iOS device deployment
Build and test / test (macos-latest) (push) Canceled after 0s
Build and test / test (ubuntu-24.04) (push) Canceled after 0s
Build and test / test (windows-latest) (push) Canceled after 0s
Build and test / apple-client (push) Canceled after 0s

This commit is contained in:
2026-09-21 03:10:25 +02:00
parent 4fac7af140
commit cf808483e0
4 changed files with 47 additions and 4 deletions
@@ -39,6 +39,20 @@ public class PublishServerScriptTests
Assert.Contains("com.apple.security.cs.allow-jit", entitlements);
}
[Fact]
public async Task IosDeviceBuildUsesAnIntermediateDeviceLockAndScopesKnownTrimWarnings()
{
string root = FindRoot();
string script = await File.ReadAllTextAsync(Path.Combine(root, "clients", "apple", "build-ios-device.sh"));
string project = await File.ReadAllTextAsync(Path.Combine(
root, "clients", "apple", "VoiceCat.iOS", "VoiceCat.iOS.csproj"));
Assert.Contains("NuGetLockFilePath=\"$device_lock\"", script);
Assert.Contains("RestoreLockedMode=false", script);
Assert.Contains("<WarningsNotAsErrors>$(WarningsNotAsErrors);IL2104</WarningsNotAsErrors>", project);
Assert.DoesNotContain("<TreatWarningsAsErrors>false</TreatWarningsAsErrors>", project);
}
[Fact]
public async Task DefaultPublishTargetsWindowsAndLinuxWhileRuntimeCanSelectOne()
{