Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions dotnet/targets/Xamarin.Shared.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,14 @@
'%(ResolvedFileToPublish.NuGetPackageId)' == '$(_MonoNugetPackageId)'
"
/>
<!-- Don't link with libclrjit.dylib when using CoreCLR on Apple mobile platforms -->
<_MonoLibrary
Remove="@(_MonoLibrary)"
Condition=" '$(_XamarinRuntime)' == 'CoreCLR' And
'$(_PlatformName)' != 'macOS' And
'%(Filename)' == 'libclrjit'
"
/>
</ItemGroup>

<!-- CoreCLR: these are variables currently needed to make CoreCLR work -->
Expand Down Expand Up @@ -2107,6 +2115,19 @@
<ResolvedFileToPublish Remove="@(_CreateDumpExecutable)" />
<ResolvedFileToPublish Include="@(_CreateDumpExecutable)" Condition="'$(BundleCreateDump)' == 'true'" />

<!-- Remove libclrjit.dylib when using CoreCLR on Apple mobile platforms -->
<ResolvedFileToPublish
Remove="@(ResolvedFileToPublish)"
Condition=" '$(_XamarinRuntime)' == 'CoreCLR' And
'$(_PlatformName)' != 'macOS' And
'%(ResolvedFileToPublish.Filename)' == 'libclrjit' And
'%(ResolvedFileToPublish.Extension)' == '.dylib' And
'%(ResolvedFileToPublish.AssetType)' == 'native' And
'%(ResolvedFileToPublish.RuntimeIdentifier)' == '$(RuntimeIdentifier)' And
'%(ResolvedFileToPublish.NuGetPackageId)' == '$(_MonoNugetPackageId)'
"
/>

<!-- Remove any dylibs Mono told us not to link with -->
<ResolvedFileToPublish
Remove="@(_MonoRuntimeComponentDontLink -> '$(_MonoRuntimePackPath)/native/%(Identity)')"
Expand Down
8 changes: 4 additions & 4 deletions tests/dotnet/UnitTests/AppSizeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ static void AssertAppSize (ApplePlatform platform, string name, string appPath,
var allKeys = expectedLines.Keys.Union (actualLines.Keys).OrderBy (v => v);
foreach (var key in allKeys) {
if (!expectedLines.TryGetValue (key, out var expectedLine)) {
Console.WriteLine ($" File '{key}' was removed from app bundle: {actualLines [key]}");
Assert.Fail ($"The file '{key}' was removed from the app bundle.");
} else if (!actualLines.TryGetValue (key, out var actualLine)) {
Console.WriteLine ($" File '{key}' was added to app bundle: {expectedLine}");
Console.WriteLine ($" File '{key}' was added to app bundle: {actualLines [key]}");
Assert.Fail ($"The file '{key}' was added to the app bundle.");
} else if (!actualLines.TryGetValue (key, out var actualLine)) {
Console.WriteLine ($" File '{key}' was removed from app bundle: {expectedLine}");
Assert.Fail ($"The file '{key}' was removed from the app bundle.");
} else if (expectedLine != actualLine) {
Console.WriteLine ($" File '{key}' changed in app bundle:");
Console.WriteLine ($" -{expectedLine}");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
AppBundleSize: 227,599,825 bytes (222,265.5 KB = 217.1 MB)
AppBundleSize: 224,442,526 bytes (219,182.2 KB = 214.0 MB)
# The following list of files and their sizes is just informational / for review, and isn't used in the test:
_CodeSignature/CodeResources: 47,045 bytes (45.9 KB = 0.0 MB)
_CodeSignature/CodeResources: 46,829 bytes (45.7 KB = 0.0 MB)
archived-expanded-entitlements.xcent: 384 bytes (0.4 KB = 0.0 MB)
Info.plist: 1,147 bytes (1.1 KB = 0.0 MB)
libclrjit.dylib: 3,157,072 bytes (3,083.1 KB = 3.0 MB)
Info.plist: 1,136 bytes (1.1 KB = 0.0 MB)
libcoreclr.dylib: 6,692,608 bytes (6,535.8 KB = 6.4 MB)
libmscordaccore.dylib: 2,386,528 bytes (2,330.6 KB = 2.3 MB)
libmscordbi.dylib: 1,852,576 bytes (1,809.2 KB = 1.8 MB)
Expand Down
Loading