Граф коммитов

16605 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena 85bd5786f5
[MetalKit] Add support for Xcode 15. (#19274)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-20 17:17:10 -04:00
dotnet-maestro[bot] d128c17ed8
[main] Update dependencies from dotnet/installer (#19282)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer

- **Subscription**: 80cb9ffd-f92f-4fc8-9f8b-08dbca46abfb
- **Build**: 20231019.30
- **Date Produced**: October 19, 2023 10:25:25 PM UTC
- **Commit**: 7c50a5c83c2651f41a1333bd86c2e45a31943ccc
- **Branch**: refs/heads/release/8.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-rtm.23518.33 to 8.0.100-rtm.23519.30][1]

[1]: 1657e2bb7b...7c50a5c83c
2023-10-20 20:10:53 +02:00
Manuel de la Pena 41db19604d
[NerabyInteraction] Add support for xcode 15. (#19273)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-20 10:57:53 -04:00
Manuel de la Pena 5ea3cb11f0
[WebKit] Add missing notification attrs. (#19275) 2023-10-20 10:56:32 -04:00
dotnet-maestro[bot] c451fb1ecd
[main] Update dependencies from dotnet/installer (#19269)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
  - **Microsoft.NET.ILLink.Tasks**: from 8.0.0-rtm.23511.16 to 8.0.0-rtm.23517.16 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.AspNetCore.App.Ref**: from 8.0.0-rtm.23512.10 to 8.0.0-rtm.23518.3 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.NETCore.App.Ref**: from 8.0.0-rtm.23511.16 to 8.0.0-rtm.23517.16 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport**: from 8.0.0-rtm.23504.4 to 8.0.0-rtm.23511.3 (parent: Microsoft.NETCore.App.Ref)
  - **Microsoft.NETCore.App.Ref**: from 8.0.0-rtm.23511.16 to 8.0.0-rtm.23517.16 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.DotNet.Cecil**: from 0.11.4-alpha.23502.1 to 0.11.4-alpha.23509.2 (parent: Microsoft.NETCore.App.Ref)

## From https://github.com/dotnet/installer

- **Subscription**: 80cb9ffd-f92f-4fc8-9f8b-08dbca46abfb
- **Build**: 20231018.33
- **Date Produced**: October 19, 2023 3:45:02 AM UTC
- **Commit**: 1657e2bb7b7766b5f0d27b9dbbb3be35634840c4
- **Branch**: refs/heads/release/8.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-rtm.23517.25 to 8.0.100-rtm.23518.33][1]
  - **Microsoft.NET.ILLink.Tasks**: [from 8.0.0-rtm.23511.16 to 8.0.0-rtm.23517.16][2]
  - **Microsoft.AspNetCore.App.Ref**: [from 8.0.0-rtm.23512.10 to 8.0.0-rtm.23518.3][3]
  - **Microsoft.NETCore.App.Ref**: [from 8.0.0-rtm.23511.16 to 8.0.0-rtm.23517.16][2]
  - **Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport**: [from 8.0.0-rtm.23504.4 to 8.0.0-rtm.23511.3][4]
  - **Microsoft.NETCore.App.Ref**: [from 8.0.0-rtm.23511.16 to 8.0.0-rtm.23517.16][2]
  - **Microsoft.DotNet.Cecil**: [from 0.11.4-alpha.23502.1 to 0.11.4-alpha.23509.2][5]

[1]: d485886d55...1657e2bb7b
[2]: 256bf22a3d...6f7af556d2
[3]: 4605c50d7c...954413f0ae
[4]: 0c28b5cfe0...1b7f3a6560
[5]: 64a8874f3c...45dd3a73dd
2023-10-20 09:38:52 +02:00
Haritha Mohan 703bcfccc3
[WebKit] Add support for Xcode 15 (#19237)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-19 09:39:25 -07:00
Haritha Mohan da08b89077
[build] Add support for worktree checkouts (#19240)
Was messing around with worktrees but our repo failed to build due to
not identifying the proper git directory.

Fixes #18276
2023-10-19 09:22:37 -07:00
Manuel de la Pena 1cbca67c84
[Tests] Fix introspection tests on Sonoma. (#19256)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-10-19 09:52:24 -04:00
Rolf Bjarne Kvinge 952c071bbe
[AppKit/UIKit] Adjust a few availability attributes in NS[Mutable]ParagraphStyle. Fixes #19209. (#19211)
Both headers and documentation agree that:

* The TextLists and LineBreakStrategy properties are available in all OS
  versions we support, so adjust the availability attributes accordingly.

* While the NSLineBreakStrategy enum is supposedly not available in all OS
  versions we support, the NSLineBreakStrategy.PushOut enum value is. This
  doesn't make much sense, so I've made our enum available in all OS versions
  + the PushOut enum value as well. All the other enum values are only
  available in iOS 14+ (according to docs + headers).

Fixes https://github.com/xamarin/xamarin-macios/issues/19209.
2023-10-19 07:54:48 +02:00
dotnet-maestro[bot] af1ead8d0e
[main] Update dependencies from dotnet/installer (#19254)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer

- **Subscription**: 80cb9ffd-f92f-4fc8-9f8b-08dbca46abfb
- **Build**: 20231017.25
- **Date Produced**: October 17, 2023 10:07:16 PM UTC
- **Commit**: d485886d55ffe6c019490b85d120b51252db5144
- **Branch**: refs/heads/release/8.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-rtm.23516.5 to 8.0.100-rtm.23517.25][1]

[1]: f328064753...d485886d55
2023-10-19 07:53:33 +02:00
Rolf Bjarne Kvinge 7121efa142
Bump mlaunch to get fix for older devices. (#19249)
New commits in xamarin/maccore:

* xamarin/maccore@753d531872 [mlaunch] Only use devicectl for iOS 17 or
newer devices.
* xamarin/maccore@46ca2f35d3 [mlaunch] Add a null check when detecting
whether a device supports wireless debugging.
* xamarin/maccore@864285310c [mlaunch] Use ExceptionDispatchInfo to
rethrow exceptions.
* xamarin/maccore@1bc6e4bd53 Merge net8.0-xcode15 into main
* xamarin/maccore@76fcfa4ea3 [mlaunch] Automatically update the
codebehind from the resx file during build.

Diff: bfaf53ffa1..753d531872
2023-10-19 07:52:42 +02:00
VS MobileTools Engineering Service 2 f9bec61875
Bring changes from Localization branch #20231018.2 (#19247)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-18 16:17:18 -04:00
dotnet-maestro[bot] 17523c3e4a
[main] Update dependencies from dotnet/installer (#19232)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer

- **Subscription**: 80cb9ffd-f92f-4fc8-9f8b-08dbca46abfb
- **Build**: 20231016.5
- **Date Produced**: October 16, 2023 9:35:09 PM UTC
- **Commit**: f3280647536487968c87a02831e5b9bf78a08fb3
- **Branch**: refs/heads/release/8.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-rtm.23513.4 to 8.0.100-rtm.23516.5][1]

[1]: c65382f002...f328064753
2023-10-18 07:56:53 +02:00
VS MobileTools Engineering Service 2 b93fba0b87
Localized file check-in by OneLocBuild Task: Build definition ID 17751: Build ID 8543391 (#19221)
This is the pull request automatically created by the OneLocBuild task
in the build process to check-in localized files generated based upon
translation source files (.lcl files) handed-back from the downstream
localization pipeline. If there are issues in translations, visit
https://aka.ms/icxLocBug and log bugs for fixes. The OneLocBuild wiki is
https://aka.ms/onelocbuild and the localization process in general is
documented at https://aka.ms/AllAboutLoc.
2023-10-17 11:08:11 -05:00
Rolf Bjarne Kvinge fbe5fdd1ea
[msbuild] Copy the entire frameworks to the Mac when building remotely in the ResolveNativeReferences task. Fixes #19173. (#19227)
Fixes https://github.com/xamarin/xamarin-macios/issues/19173.
2023-10-17 11:33:59 -04:00
Manuel de la Pena b73cb11dc1
[Foundation] Add support for Xcode 15 beta 7. (#19007)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2023-10-17 11:27:20 -04:00
Steve Hawley f4a0ea9ac2
[dotnet] Test integration (#18543)
Fixed an issue where the C# class name was coming in with `,
AssemblyName` tacked on the end.
Fixed an issue where a class that had an entry in the map didn't have a
`class_ptr` which was causing an NRE.
Fixed a predicate for deciding when to mark the assembly for save.

Note - for an as yet undetermined reason, the linker is not picking up
that I'm marking the assembly for save, which is why the `true` test
cases are commented out.
This fixes issue 16671 https://github.com/xamarin/xamarin-macios/issues/16671
2023-10-17 10:29:12 -04:00
Rolf Bjarne Kvinge 913204248e
[msbuild] Report a better error if a NativeResource doesn't exist on disk. (#19199)
This fixes makes this rather unhelpful error:

    error MSB4018: The "CreateBindingResourcePackage" task failed unexpectedly.
    error MSB4018: System.Exception: Could not lstat 'mylib.a': 2
    error MSB4018:    at Xamarin.Utils.PathUtils.IsSymlink(String file) in /Users/rolf/work/maccore/main/xamarin-macios/tools/common/PathUtils.cs:line 222
    error MSB4018:    at Xamarin.Utils.PathUtils.IsSymlinkOrContainsSymlinks(String directoryOrFile) in /Users/rolf/work/maccore/main/xamarin-macios/tools/common/PathUtils.cs:line 229
    error MSB4018:    at Xamarin.MacDev.Tasks.CreateBindingResourcePackageBase.ContainsSymlinks(ITaskItem[] items) in /Users/rolf/work/maccore/main/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/CreateBindingResourcePackageBase.cs:line 110
    error MSB4018:    at Xamarin.MacDev.Tasks.CreateBindingResourcePackageBase.Execute() in /Users/rolf/work/maccore/main/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/CreateBindingResourcePackageBase.cs:line 46
    error MSB4018:    at Xamarin.MacDev.Tasks.CreateBindingResourcePackage.Execute() in /Users/rolf/work/maccore/main/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/CreateBindingResourcePackage.cs:line 15
    error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
    error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

turn into this instead:

    error : The NativeResource 'mylib.a' does not exist.

---------

Co-authored-by: Haritha Mohan <harithamohan@microsoft.com>
2023-10-17 14:34:03 +02:00
Rolf Bjarne Kvinge b17dcd263b
[msbuild] Fix check for Link metadata by checking for both null and empty string. Fixes #12783. (#18487)
A task item's GetMetadata method will return an empty string if the metadata
isn't available, so make sure to check for both null (which shouldn't really
happen, but just to be safe) and an empty string when detecting whether the
Link metadata is set or not.

Fixes https://github.com/xamarin/xamarin-macios/issues/12783.

---------

Co-authored-by: Alex Soto <alex@alexsoto.me>
2023-10-17 07:59:34 +02:00
Rolf Bjarne Kvinge 57f8d8522a
[dotnet/msbuild] Create directory in the ILStrip task instead of using MSBuild logic. (#19181)
The current logic doesn't work on Windows for some reason.

Also avoid extra slash in _StrippedAssemblyDirectory, because
DeviceSpecificIntermediateOutputPath already has a trailing slash.

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1864985.
2023-10-17 07:58:50 +02:00
Manuel de la Pena c661ef5f97
[Xtro] Bump objective sharpie and update todos. (#19220)
All the Frameworks that needed to be skipped now work and therefore we
need to update the todos files for xcode 15.
2023-10-16 16:10:09 -04:00
VS MobileTools Engineering Service 2 6af4bd57db
Bring changes from Localization branch #20231013.4 (#19205)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-16 11:43:32 -05:00
VS MobileTools Engineering Service 2 b61905f1d1
Bring changes from Localization branch #20231013.1 (#19194)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

---------

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-16 11:43:18 -05:00
VS MobileTools Engineering Service 2 f482fd0c64
Bring changes from Localization branch #20231012.7 (#19192)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-16 11:41:45 -05:00
dotnet-maestro[bot] efbf104920
[main] Update dependencies from dotnet/xharness (#19216)
This pull request updates the following dependencies

## From https://github.com/dotnet/xharness

- **Subscription**: 601bc5e1-1cae-44b5-cf5f-08db9342aa2f
- **Build**: 20231016.1
- **Date Produced**: October 16, 2023 8:42:59 AM UTC
- **Commit**: 02098f6cf81169134770ee47acc2aca0910635bb
- **Branch**: refs/heads/main

- **Updates**:
  - **Microsoft.DotNet.XHarness.iOS.Shared**: [from 8.0.0-prerelease.23505.1 to 8.0.0-prerelease.23516.1][1]

[1]: 0672f8ce90...02098f6cf8
2023-10-16 18:27:21 +02:00
VS MobileTools Engineering Service 2 cb5d9f9362
Bring changes from Localization branch #20231012.5 (#19177)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-16 11:24:52 -05:00
Rolf Bjarne Kvinge a8bc174b26
[tests] Implement a workaround for an unreliable url to download a command-line installer for .NET. (#19212)
The documented URL for downloading a script to install .NET
(https://dot.net/v1/dotnet-install.[ps1|sh]) is rather unreliable and fails
quite often. So add support for a fallback URL - which is just the url the
documented URL redirects to - and use that if the main URL doesn't work.

Hopefully this will decrease the number of times the Windows tests fail
because we couldn't download the install script.
2023-10-16 15:08:34 +02:00
Rolf Bjarne Kvinge 7df4fc3274
[dotnet] Complete support for universal builds when using NativeAOT. (#19183)
We couldn't do universal builds using NativeAOT, because .NET had a sanity
check that was a bit too eager and caused unnecessary build failures. We've
now been able to add an escape hatch to that sanity check, so let's use it.

This makes universal builds using NativeAOT work, so we can also enable/add
corresponding test variations in xharness.

Also ask the runtime to allow SelfContained without a RuntimeIdentifier (the
runtime has an overeager sanity check that doesn't apply to us, so we must
skip it). Fixes #19142.

Fixes https://github.com/xamarin/xamarin-macios/issues/19142.
Fixes https://github.com/xamarin/xamarin-macios/issues/19206.
2023-10-16 10:19:55 +02:00
dotnet-maestro[bot] b0836d5456
[main] Update dependencies from dotnet/installer (#19196)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
  - **Microsoft.NET.ILLink.Tasks**: from 8.0.0-rtm.23509.5 to 8.0.0-rtm.23511.16 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.AspNetCore.App.Ref**: from 8.0.0-rtm.23511.13 to 8.0.0-rtm.23512.10 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.NETCore.App.Ref**: from 8.0.0-rtm.23509.5 to 8.0.0-rtm.23511.16 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.NETCore.App.Ref**: from 8.0.0-rtm.23509.5 to 8.0.0-rtm.23511.16 (parent: Microsoft.Dotnet.Sdk.Internal)

## From https://github.com/dotnet/installer

- **Subscription**: 80cb9ffd-f92f-4fc8-9f8b-08dbca46abfb
- **Build**: 20231013.4
- **Date Produced**: October 13, 2023 7:31:46 PM UTC
- **Commit**: c65382f00216756e0fb192cc2fd6513448d2679d
- **Branch**: refs/heads/release/8.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-rtm.23512.1 to 8.0.100-rtm.23513.4][4]
  - **Microsoft.NET.ILLink.Tasks**: [from 8.0.0-rtm.23509.5 to 8.0.0-rtm.23511.16][5]
  - **Microsoft.AspNetCore.App.Ref**: [from 8.0.0-rtm.23511.13 to 8.0.0-rtm.23512.10][6]
  - **Microsoft.NETCore.App.Ref**: [from 8.0.0-rtm.23509.5 to 8.0.0-rtm.23511.16][5]
  - **Microsoft.NETCore.App.Ref**: [from 8.0.0-rtm.23509.5 to 8.0.0-rtm.23511.16][5]

[4]: dfe59b6c4d...c65382f002
[5]: a9cc3c80fe...256bf22a3d
[6]: 4a957dd469...4605c50d7c
2023-10-16 08:13:43 +02:00
Rolf Bjarne Kvinge 2779d9c48a
[AutomaticAssessmentConfiguration] Add missing constructors to AEAssessmentApplication. Fixes #19133. (#19180)
Fixes https://github.com/xamarin/xamarin-macios/issues/19133.

---------

Co-authored-by: Alex Soto <alex@soto.dev>
2023-10-16 07:33:10 +02:00
Alex Soto facd38c2b6
[sign] Update SignList to match mlaunch list (#19187) 2023-10-13 10:59:33 -04:00
dotnet-maestro[bot] 0f17bbd00e
[main] Update dependencies from dotnet/installer (#19185)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
  - **Microsoft.AspNetCore.App.Ref**: from 8.0.0-rtm.23510.7 to 8.0.0-rtm.23511.13 (parent: Microsoft.Dotnet.Sdk.Internal)

## From https://github.com/dotnet/installer

- **Subscription**: 80cb9ffd-f92f-4fc8-9f8b-08dbca46abfb
- **Build**: 20231012.1
- **Date Produced**: October 12, 2023 10:09:53 AM UTC
- **Commit**: dfe59b6c4dec70fef72f18010dc8606ce8fb141a
- **Branch**: refs/heads/release/8.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-rtm.23511.3 to 8.0.100-rtm.23512.1][1]
  - **Microsoft.AspNetCore.App.Ref**: [from 8.0.0-rtm.23510.7 to 8.0.0-rtm.23511.13][2]

[1]: b76fe590ac...dfe59b6c4d
[2]: 7ffeb436ad...4a957dd469
2023-10-13 14:13:25 +02:00
Rolf Bjarne Kvinge d7b35c2dc3
Update DOWNLOADS.md with new releases. (#19174) 2023-10-12 17:20:10 +02:00
Rolf Bjarne Kvinge 6f2b5482f0
[ObjCRuntime] Cache a few expensive and frequent operations in Class. Fixes #19079. (#19086)
Cache:

* Assembly -> assembly name, because Assembly.GetName ().Name is quite slow.
* Token reference -> member lookup, because it takes a non-significant amount
  of time to do the lookup each time.

Assembly.GetName ().Name used to be 75% of the time in Runtime.GetINativeObject_Static:

![Screenshot 2023-09-21 at 17 55 07](https://github.com/xamarin/xamarin-macios/assets/249268/87d456a6-9aa6-4a00-8631-d125eb4b70c2)

Text table:

```
|   6.82 s  | 100.0% |     0 s    |  MauiBugiOSInteropPerformance (17191)
|   6.82 s  | 100.0% |     0 s    |   Main Thread  0x4a830e
|   6.82 s  | 100.0% |  1.00 ms   |    xamarin_get_inative_object_static
|   6.80 s  |  99.8% |     0 s    |     wrapper_native_to_managed_ObjCRuntime_Runtime_get_inative_object_static_intptr_sbyte_uint_uint_intptr_
|   6.79 s  |  99.6% |  2.00 ms   |      ObjCRuntime_Runtime_get_inative_object_static_intptr_sbyte_uint_uint_intptr_
|   6.79 s  |  99.5% |  3.00 ms   |       ObjCRuntime_Runtime_GetINativeObject_Static_intptr_sbyte_uint_uint
|   4.23 s  |  62.0% |  4.00 ms   |        ObjCRuntime_Class_ResolveTypeTokenReference_uint
|   4.23 s  |  62.0% |  8.00 ms   |         ObjCRuntime_Class_ResolveTokenReference_uint_uint
|   4.07 s  |  59.7% |     0 s    |          ObjCRuntime_Class_ResolveAssembly_intptr
|   4.07 s  |  59.7% | 25.00 ms   |           ObjCRuntime_Class_TryResolveAssembly_intptr_System_Reflection_Assembly_
|   3.35 s  |  49.2% | 22.00 ms   |            System_Reflection_Assembly_GetName
| 668.00 ms |   9.8% |     0 s    |            System_AppDomain_GetAssemblies
|  25.00 ms |   0.3% | 25.00 ms   |            ObjCRuntime_Runtime_StringEquals_intptr_string
| 107.00 ms |   1.5% |  5.00 ms   |          ObjCRuntime_Class_ResolveModule_System_Reflection_Assembly_uint
|  40.00 ms |   0.5% |     0 s    |          ObjCRuntime_Class_ResolveToken_System_Reflection_Module_uint
|   1.00 ms |   0.0% |  1.00 ms   |          plt_ObjCRuntime_Class_ResolveToken_System_Reflection_Module_uint
|   2.54 s  |  37.3% |  3.00 ms   |        ObjCRuntime_Runtime_GetINativeObject_intptr_bool_System_Type_System_Type
|   2.33 s  |  34.2% |  1.00 ms   |         ObjCRuntime_Runtime_LookupINativeObjectImplementation_intptr_System_Type_System_Type_bool
|   2.32 s  |  33.9% |  1.00 ms   |          ObjCRuntime_Runtime_FindProtocolWrapperType_System_Type
|   2.12 s  |  31.0% |  1.00 ms   |           ObjCRuntime_Class_ResolveTypeTokenReference_uint
|   2.12 s  |  31.0% |  7.00 ms   |            ObjCRuntime_Class_ResolveTokenReference_uint_uint
|   2.04 s  |  29.9% |  1.00 ms   |             ObjCRuntime_Class_ResolveAssembly_intptr
|   2.04 s  |  29.9% | 13.00 ms   |              ObjCRuntime_Class_TryResolveAssembly_intptr_System_Reflection_Assembly_
|   1.69 s  |  24.8% | 19.00 ms   |               System_Reflection_Assembly_GetName
|   1.67 s  |  24.5% |  9.00 ms   |                System_Reflection_RuntimeAssembly_GetName_bool
| 872.00 ms |  12.7% | 16.00 ms   |                 System_Reflection_AssemblyName_Create_intptr_string
| 791.00 ms |  11.6% |  1.00 ms   |                 System_Reflection_RuntimeAssembly_GetInfo_System_Reflection_RuntimeAssembly_AssemblyInfoKind
| 319.00 ms |   4.6% |  1.00 ms   |               System_AppDomain_GetAssemblies
|  14.00 ms |   0.2% | 14.00 ms   |               ObjCRuntime_Runtime_StringEquals_intptr_string
|   4.00 ms |   0.0% |  4.00 ms   |               plt_ObjCRuntime_Runtime_StringEquals_intptr_string
|  54.00 ms |   0.7% |     0 s    |             ObjCRuntime_Class_ResolveModule_System_Reflection_Assembly_uint
|  15.00 ms |   0.2% |  1.00 ms   |             ObjCRuntime_Class_ResolveToken_System_Reflection_Module_uint

```

and Class.ResolveTokenReference was 90% of the time in Runtime.GetINativeObject_Static:

![Screenshot 2023-09-21 at 17 55 40](https://github.com/xamarin/xamarin-macios/assets/249268/75adc9bf-ca5b-4bc6-96c6-ace4cb39a0d4)

```
|   6.82 s    |  100.0%   |	   0 s     | MauiBugiOSInteropPerformance (17191)
|   6.82 s    |  100.0%   |	   0 s     |  Main Thread  0x4a830e
|   6.82 s    |  100.0%   |	1.00 ms    |   xamarin_get_inative_object_static
|   6.80 s    |   99.8%   |	   0 s     |    wrapper_native_to_managed_ObjCRuntime_Runtime_get_inative_object_static_intptr_sbyte_uint_uint_intptr_
|   6.79 s    |   99.6%   |	2.00 ms    |     ObjCRuntime_Runtime_get_inative_object_static_intptr_sbyte_uint_uint_intptr_
|   6.79 s    |   99.5%   |	3.00 ms    |      ObjCRuntime_Runtime_GetINativeObject_Static_intptr_sbyte_uint_uint
|   4.23 s    |   62.0%   |	4.00 ms    |       ObjCRuntime_Class_ResolveTypeTokenReference_uint
|   4.23 s    |   62.0%   |	8.00 ms    |        ObjCRuntime_Class_ResolveTokenReference_uint_uint
|   2.54 s    |   37.3%   |	3.00 ms    |       ObjCRuntime_Runtime_GetINativeObject_intptr_bool_System_Type_System_Type
|   2.33 s    |   34.2%   |	1.00 ms    |        ObjCRuntime_Runtime_LookupINativeObjectImplementation_intptr_System_Type_System_Type_bool
|   2.32 s    |   33.9%   |	1.00 ms    |         ObjCRuntime_Runtime_FindProtocolWrapperType_System_Type
|   2.12 s    |   31.0%   |	1.00 ms    |          ObjCRuntime_Class_ResolveTypeTokenReference_uint
|   2.12 s    |   31.0%   |	7.00 ms    |           ObjCRuntime_Class_ResolveTokenReference_uint_uint
| 181.00 ms   |    2.6%   |	4.00 ms    |          ObjCRuntime_Class_GetTokenReference_System_Type_bool
|  11.00 ms   |    0.1%   |	   0 s     |          wrapper_managed_to_native_ObjCRuntime_Runtime_xamarin_find_protocol_wrapper_type_uint
|   3.00 ms   |    0.0%   |	   0 s     |          System_Type_get_IsInterface
|   1.00 ms   |    0.0%   |	1.00 ms    |          plt_System_Type_get_IsByRef
|   1.00 ms   |    0.0%   |	1.00 ms    |          System_Type_get_IsByRef
|  10.00 ms   |    0.1%   |	   0 s     |         System_RuntimeType_IsAssignableFrom_System_Type
|   5.00 ms   |    0.0%   |	   0 s     |         System_Type_get_IsInterface
|   2.00 ms   |    0.0%   |	   0 s     |         System_Type_get_IsByRef
| 192.00 ms   |    2.8%   |	3.00 ms    |        ObjCRuntime_Runtime_ConstructINativeObject_T_REF_intptr_bool_System_Type_ObjCRuntime_Runtime_MissingCtorResolution
|   8.00 ms   |    0.1%   |	1.00 ms    |        ObjCRuntime_Runtime_TryGetNSObject_intptr_bool
|   4.00 ms   |    0.0%   |	1.00 ms    |        System_RuntimeType_IsSubclassOf_System_Type
|   1.00 ms   |    0.0%   |	1.00 ms    |        mono_monitor_enter_v4_fast
|   8.00 ms   |    0.1%   |	3.00 ms    |       ObjCRuntime_Runtime_AllocGCHandle_object_System_Runtime_InteropServices_GCHandleType
|   1.00 ms   |    0.0%   |	1.00 ms    |       plt_ObjCRuntime_Runtime_AllocGCHandle_object_System_Runtime_InteropServices_GCHandleType
|   9.00 ms   |    0.1%   |	   0 s     |     mono_threads_detach_coop
|   5.00 ms   |    0.0%   |	   0 s     |     mono_threads_attach_coop
|  12.00 ms   |    0.1%   |	1.00 ms    |    xamarin_gchandle_unwrap
```

There's some overlap here - the Assembly.GetName ().Name cache would be redundant if it was only called from Class.ResolveTokenReference - but since it's called in more places (it still shows up in profiles once Class.ResolveTokenReference is cached), I kept both caches.

Fixes https://github.com/xamarin/xamarin-macios/issues/19079.

---------

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2023-10-12 11:07:19 +02:00
Rolf Bjarne Kvinge 0e41cad665
[tests] Remove a test ignore (ignored due to an Apple issue). (#19085)
Fixes https://github.com/xamarin/maccore/issues/2346.
2023-10-12 09:46:02 +02:00
dotnet-maestro[bot] a79da09e46
[main] Update dependencies from dotnet/installer (#19163)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
  - **Microsoft.NET.ILLink.Tasks**: from 8.0.0-rc.2.23469.9 to 8.0.0-rtm.23509.5 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.AspNetCore.App.Ref**: from 8.0.0-rtm.23470.10 to 8.0.0-rtm.23510.7 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.NETCore.App.Ref**: from 8.0.0-rc.2.23469.9 to 8.0.0-rtm.23509.5 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport**: from 8.0.0-rc.2.23463.1 to 8.0.0-rtm.23504.4 (parent: Microsoft.NETCore.App.Ref)
  - **Microsoft.NETCore.App.Ref**: from 8.0.0-rc.2.23469.9 to 8.0.0-rtm.23509.5 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.DotNet.Cecil**: from 0.11.4-alpha.23461.1 to 0.11.4-alpha.23502.1 (parent: Microsoft.NETCore.App.Ref)

## From https://github.com/dotnet/installer

- **Subscription**: 80cb9ffd-f92f-4fc8-9f8b-08dbca46abfb
- **Build**: 20231011.3
- **Date Produced**: October 11, 2023 9:13:56 PM UTC
- **Commit**: b76fe590ac588baa9fcf0a47b937b21c705a7687
- **Branch**: refs/heads/release/8.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-rtm.23470.21 to 8.0.100-rtm.23511.3][1]
  - **Microsoft.NET.ILLink.Tasks**: [from 8.0.0-rc.2.23469.9 to 8.0.0-rtm.23509.5][2]
  - **Microsoft.AspNetCore.App.Ref**: [from 8.0.0-rtm.23470.10 to 8.0.0-rtm.23510.7][3]
  - **Microsoft.NETCore.App.Ref**: [from 8.0.0-rc.2.23469.9 to 8.0.0-rtm.23509.5][2]
  - **Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport**: [from 8.0.0-rc.2.23463.1 to 8.0.0-rtm.23504.4][4]
  - **Microsoft.NETCore.App.Ref**: [from 8.0.0-rc.2.23469.9 to 8.0.0-rtm.23509.5][2]
  - **Microsoft.DotNet.Cecil**: [from 0.11.4-alpha.23461.1 to 0.11.4-alpha.23502.1][5]

[1]: 34e6dab21e...b76fe590ac
[2]: 575843df1a...a9cc3c80fe
[3]: 470af14260...7ffeb436ad
[4]: 1999c8c8ab...0c28b5cfe0
[5]: a112f15aa0...64a8874f3c
2023-10-12 08:23:09 +02:00
Rolf Bjarne Kvinge e9eff25a67
Bump mlaunch to get device support for iOS 17. (#19159) 2023-10-12 08:21:21 +02:00
Rolf Bjarne Kvinge 1a05b370ef
Merge net8.0 into main. (#19156) 2023-10-11 23:30:14 +02:00
Rolf Bjarne Kvinge 8043a7d2c1
Update Make.versions
Co-authored-by: Alex Soto <alex@soto.dev>
2023-10-11 18:15:46 +02:00
Manuel de la Pena 1487bfe645
[CI] Ensure we use python 3 before we install the ESRP plugin. (#19147) 2023-10-11 16:44:39 +02:00
Rolf Bjarne Kvinge b39a0f3f2a Merge remote-tracking branch 'origin/net8.0' into merge-net8.0-into-main 2023-10-11 16:40:24 +02:00
Rolf Bjarne Kvinge e24f3cbb6a
[net8.0] Merge Xcode 15 support. (#19148) 2023-10-11 16:36:18 +02:00
Manuel de la Pena af83af04ab
[Maccore] Bump maccore to add fixes in the Policheck tests. (#19126) 2023-10-11 08:19:47 -04:00
Rolf Bjarne Kvinge 50c34f31a8 Merge remote-tracking branch 'origin/net8.0-xcode15' into merge-xcode15-into-net8.0 2023-10-10 23:26:57 +02:00
Rolf Bjarne Kvinge 7f8d3ac6eb
[net8.0-xcode15] [devops] Use the stable Xcode channel. (#19144) 2023-10-10 23:25:56 +02:00
Rolf Bjarne Kvinge f56a2575c3
[net8.0] Revert multi-targeting support. (#19145)
It turns out to have a few sharp edges we need to smooth out first.
2023-10-10 17:20:09 +02:00
dotnet-maestro[bot] 4604b565a6
[main] Update dependencies from dotnet/xharness (#19118)
This pull request updates the following dependencies

## From https://github.com/dotnet/xharness

- **Subscription**: 601bc5e1-1cae-44b5-cf5f-08db9342aa2f
- **Build**: 20231005.1
- **Date Produced**: October 5, 2023 9:08:24 PM UTC
- **Commit**: 0672f8ce90040d589f29edc37d9e817d67cd4533
- **Branch**: refs/heads/main

- **Updates**:
  - **Microsoft.DotNet.XHarness.iOS.Shared**: [from 8.0.0-prerelease.23471.1 to 8.0.0-prerelease.23505.1][2]

[2]: 06fd591dc0...0672f8ce90
2023-10-10 10:40:30 +02:00
VS MobileTools Engineering Service 2 468c3dd14d
[net8.0] Updating Xamarin.iOS.HotRestart.Client to 1.0.125 (#19128)
The latest version has Component Governance fixes in it:
https://github.com/xamarin/isignsharp/pull/52/files

https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1869900


Backport of #19046

---------

Co-authored-by: Luke Westendorf <lukewest@microsoft.com>
2023-10-09 22:30:28 +02:00
dustin-wojciechowski a64506dd4a
Revert "[MacCatalyst] Added Default Entitlements for MacCatalyst projects" (#19125)
Reverts xamarin/xamarin-macios#18669 per discussion in MAUI about sdk
defaults.
2023-10-06 13:10:28 -07:00
Manuel de la Pena 28cb245b0b
[Maccore] Bump maccore to fix the policheck tests. (#19127) 2023-10-06 12:13:10 -04:00