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

12003 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 2930c052b3
[actions] Fix name of the dotnet-maestro bot. (#12959) 2021-10-08 16:32:42 +02:00
Rolf Bjarne Kvinge 4f613f4c9d
[xharness] Don't copy xharness.[css|js] to the output directory when they're already in the output directory. (#12958)
The problem is that cleaning the project would then remove these files, which
would break the next build.
2021-10-08 16:31:52 +02:00
dotnet-maestro[bot] cb475d8c8b
[main] Update dependencies from dotnet/installer (#12935)
* Update dependencies from https://github.com/dotnet/installer build 20211004.5

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21480.21 -> To Version 6.0.100-rtm.21504.5

* Update dependencies from https://github.com/dotnet/installer build 20211005.64

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21480.21 -> To Version 6.0.100-rtm.21505.64

* [src] Bump bgen to .NET 6

* Update dependencies from https://github.com/dotnet/installer build 20211006.22

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21480.21 -> To Version 6.0.100-rtm.21506.22

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2021-10-08 14:12:23 +02:00
Rolf Bjarne Kvinge 7339b27a43
[devops] Show a better message when ESRP fails (#12934)
* Show a better error in the GitHub comment if ESRP signing failed.
* Show a better message when supposedly signed packages fail signature validation.
2021-10-08 08:02:24 +02:00
Rolf Bjarne Kvinge 9f2ff42da5
[.NET/AudioUnit] Use [UnmanagedCallersOnly] instead of [MonoPInvokeCallback] for the ScheduledAudioFileRegionCallback function. (#12948)
Ref https://github.com/xamarin/xamarin-macios/issues/10470.
2021-10-08 07:58:22 +02:00
Rolf Bjarne Kvinge 7a46df3dbd
[.NET/CoreFoundation] Use [UnmanagedCallersOnly] instead of [MonoPInvokeCallback] for the CGPDFDictionaryApplyFunction function. (#12956)
I had to change the first argument from 'string' to 'IntPtr', because 'string'
isn't blittable. In order to diverge the code paths as little as possible, I
also made this change for the legacy Xamarin version.

Ref https://github.com/xamarin/xamarin-macios/issues/10470.
2021-10-08 07:53:43 +02:00
Rolf Bjarne Kvinge 6d8ef62705
[AVFoundation] Fix a few issues with AudioUnit. (#12954)
* Add an (IntPtr, bool) constructor so that AudioUnit works with Runtime.GetINativeObject.
* Keep track of ownership, so that AudioUnit doesn't free the native resources
  when it doesn't own them.
* Update a test to verify that calling 'AVAudioIONode.AudioUnit' multiple
  times and disposing the result between them works (this fails if AudioUnit
  doesn't keep track of ownership).
2021-10-08 07:52:40 +02:00
github-actions[bot] da9c95d604
[Localization] Pulling New Localization Translations 1304543339 (#12924) 2021-10-07 20:34:18 -05:00
Rolf Bjarne Kvinge b9de02c457
[introspection] Skip verifying the objc_msgSend[Super]_stret on all platforms. (#12939)
Now that macOS runs on ARM64 (and also the simulators soon), we need to have to same logic for all platforms.

Fixes:

    Introspection.iOSApiPInvokeTest
        [FAIL] Could not find the field 'objc_msgSend_stret' in /usr/lib/libobjc.dylib
        [FAIL] Could not find the field 'objc_msgSendSuper_stret' in /usr/lib/libobjc.dylib
        [FAIL] SymbolExists :   2 errors found in 5300 functions validated: objc_msgSend_stret, objc_msgSendSuper_stret
            Expected: 0
            But was:  2
                at Introspection.ApiPInvokeTest.SymbolExists() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/introspection/ApiPInvokeTest.cs:line 182
2021-10-07 20:15:54 +02:00
Rachel Kang 9ebf14e85b
Merge pull request #12936 from rachelkang/xcode13.0-appkit-b1-b2-b3-b4-b5
[AppKit] Update Xcode 13.0 bindings for betas 1,2,3,4,5
2021-10-07 13:14:59 -04:00
Manuel de la Pena ed3d9fd74c
[CI] Add empty insertion pipeline to be used in release. (#12888) 2021-10-07 11:54:54 -04:00
Rolf Bjarne Kvinge 694ec2d0b3
[tests] Ignore TemplateProjectTest.CreateAppBundleDependsOnTest when the specified platform isn't included in the build. (#12933) 2021-10-07 09:10:16 +02:00
Rolf Bjarne Kvinge 6b27debb63
[tests] Bump our generic min macOS version to 10.14 for .NET tests. (#12938)
Fixes this when running our test suites on macOS 10.14:

    dyld: Library not loaded: /System/Library/Frameworks/AuthenticationServices.framework/Versions/A/AuthenticationServices
      Referenced from: /Users/runner/work/1/s/artifacts/mac-test-package/tests/./introspection/dotnet/macOS/bin/Debug/net6.0-macos/osx-x64/introspection.app/Contents/MacOS/introspection
      Reason: image not found
    make[2]: *** [exec-mac-dotnet-x64-introspection] Abort trap: 6
2021-10-07 09:09:46 +02:00
Rolf Bjarne Kvinge 79b4c9234d
[msbuild] Rename ResolveFrameworksBase.cs to ResolveNativeReferencesBase.cs (#12943)
This way the filename matches the class within.
2021-10-07 08:18:16 +02:00
Rolf Bjarne Kvinge f12d09f405
[msbuild] Share the CompileEntitlements task implementation between iOS and macOS. (#12946) 2021-10-07 08:17:50 +02:00
Rolf Bjarne Kvinge 646443e019
[runtime] Set a min macOS version when compiling Objective-C source code for macOS. (#12942)
Fixes warnings such as these:

    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(coreclr-bridge-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(runtime-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(bindings-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(bindings-generated-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(xamarin-support-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(shared-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(trampolines-invoke-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(nsstring-localization-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(monotouch-main-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(trampolines-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(monotouch-debug-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
    ld: warning: object file ([...]/libxamarin-dotnet-coreclr-debug.a(trampolines-x86_64-dotnet-coreclr-debug.x86_64.o)) was built for newer macOS version (11.0) than being linked (10.15)
2021-10-07 08:14:38 +02:00
Manuel de la Pena d86d23fdf5
[CI] Fix path to script. (#12949) 2021-10-07 07:30:41 +02:00
Rolf Bjarne Kvinge 7a6c6fcf80
[devops] Return a non-zero exit code if tests fail on older macOS versions. (#12937)
Return a non-zero exit code if tests fail on older macOS versions, but keep
running tests. This way the step shows up as orange if something fails (and
not green, which is confusing).
2021-10-06 18:56:40 +02:00
Rolf Bjarne Kvinge afff63f04d
[tests] Fix make variables usage in template code. (#12940) 2021-10-06 18:54:27 +02:00
Rachel Kang 21db142e5f
Update based on feedback 2021-10-06 10:56:16 -04:00
Rolf Bjarne Kvinge 2bc66b0cbe
[msbuild] Share the CodesignVerify task implementation between iOS and macOS. (#12918) 2021-10-06 15:51:42 +02:00
VS MobileTools Engineering Service 2 c0032bee1a
Localized file check-in by OneLocBuild Task: Build definition ID 14411: Build ID 5286115 (#12916) 2021-10-06 08:31:25 -05:00
Rolf Bjarne Kvinge 63de01c21c
[tests] Fix packaging of Xamarin.Mac tests. (#12776)
I recently deleted the generated makefile support for building and running our
test suites. It turned out that it was used for building the packaged
Xamarin.Mac tests, so it wasn't as unused as I thought.

So fix the building and packaging of Xamarin.Mac tests to not use the
(non-existent) makefile targets, but instead replicate it with manual make
code.

Also take the opportunity to add packaging and execution of the .NET versions
of these test suites we execute on other macOS versions (both for macOS and
the Mac Catalyst).

* [devops] Use stricter matching when finding the Xamarin.Mac pkg link.

Otherwise the branch name in any package could end up matching the pattern we
were looking for:

	XM_PACKAGE=https://bosstoragemirror.blob.core.windows.net/wrench/tests-package-xamarin-mac-tests/15759261d425ae08494b0a26862a0b1356c5f8ec/5268864/package/Microsoft.iOS.Bundle.15.0.101-ci.tests-package-xamarin-mac-tests.68.pkg

is just clearly wrong.
2021-10-06 08:10:07 +02:00
Chris Hamons dade24c63a
Catalyst changes for CoreAnimation, CoreFoundation, and AVKit (#12926) 2021-10-05 16:42:37 -05:00
Rachel Kang 1458b0328d
Update based on feedback 2021-10-05 16:22:34 -04:00
Manuel de la Pena 67e1ca5459
[Metal] Add support for xcode 13 beta5 . (#12875)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2021-10-05 13:32:48 -04:00
Rolf Bjarne Kvinge f1e4cbcfcd
[tests] Modify a few test directories with multiple projects to have the projects in subfolders. (#12921)
This fixes a problem where the build from the different projects could stomp
on eachother in the obj/bin folders. It's technically possible to make this
work by setting up custom [Base][Intermediate][OutputPath] properties in the
project files, but the simplest solution is to just make sure there's no more
than a single project per directory.
2021-10-05 18:06:35 +02:00
Chris Hamons 9230c798a9
[UIKit] Add Catalyst support (#12809) 2021-10-05 11:04:44 -05:00
Rachel Kang 517fbd9a02
[AppKit] Update Xcode 13.0 bindings for betas 1,2,3,4,5 2021-10-05 11:59:49 -04:00
Chris Hamons a300dfc56b
[msbuild] Add ILStrip'ing for net6 applications. Fixes #11445. (#12563)
- Controlled by EnableAssemblyILStripping which defaults to true
- Integration test included

Before - https://gist.github.com/chamons/c7886f7bacbc2e5ac5966e4251d13e71
After - https://gist.github.com/chamons/148e1bef22fa336f953f3d02dcf20667

859,136 -> 527,872 managed

Fixes https://github.com/xamarin/xamarin-macios/issues/11445.
2021-10-05 09:43:22 -05:00
Rolf Bjarne Kvinge 7d1cd529ab
[.NET/AudioToolbox] Make AudioServicesAddSystemSoundCompletion take an unmanaged function pointer instead of delegate. Very partial fix for #10470. (#12920)
In .NET 6 we can use the [UnmanagedCallersOnly] attribute to mark functions
that are called from native code (instead of the [MonoPInvokeCallback]
attribute). It turns out this is a rather major refactoring (in particular for
blocks), so start by doing it for just a single function, to make sure using
[UnmanagedCallersOnly] at least works somewhere.

Ref: https://github.com/xamarin/xamarin-macios/issues/10470
2021-10-05 07:23:14 +02:00
Manuel de la Pena 3e3baf1463
[CI] Rollback changes. (#12931) 2021-10-04 18:37:17 -04:00
Manuel de la Pena c6106d87e1
[CI] Service connections cannot be variables. 2021-10-04 18:22:00 -04:00
Manuel de la Pena 36185fac8a [CI] Move auth to a template. 2021-10-04 18:19:12 -04:00
Manuel de la Pena 68747ec1de
[CI] YAML gets confused by the $() syntax. 2021-10-04 18:10:38 -04:00
Manuel de la Pena c096a7ba59
[CI] Use correct var everywhere. 2021-10-04 18:05:10 -04:00
Manuel de la Pena 2565328c0e
[CI] Pass var correctly. 2021-10-04 18:03:20 -04:00
Manuel de la Pena e7f6c454d1
[CI] Fix if to ensure we can execute in the public instance. 2021-10-04 17:59:35 -04:00
Manuel de la Pena f343ee7ade
[CI] Cannot use condition. (#12930)
Using a condition will result in the template being generated which
results in the security check to run. We need to use a template and not
a condition to avoid it.
2021-10-04 17:51:31 -04:00
Manuel de la Pena c737ce8aff
[CI] Fix map with else. 2021-10-04 17:43:16 -04:00
Manuel de la Pena 44aef15033
[CI] Fix template indentation. 2021-10-04 17:36:48 -04:00
Manuel de la Pena 7322ab8b84
[CI] Not all bots support the new syntax. (#12929) 2021-10-04 17:30:48 -04:00
Manuel de la Pena dabeb647be
[CI] Env is a map, uses : and not = (#12928) 2021-10-04 17:19:31 -04:00
Manuel de la Pena 05da9f8bfd
[CI] Fix yaml by using else. (#12927) 2021-10-04 16:54:54 -04:00
Rolf Bjarne Kvinge b87db48344
[mtouch] Make 'MonoTouch.Dialog-1' and 'MonoTouch.NUnitLite' SDK assemblies, not product assemblies. Fixes #12862. (#12919)
The "product assembly" is supposed to be Xamarin.iOS.dll, Xamarin.Mac.dll,
etc., not other assemblies, so fix the implementation to reflect this. The
original commit where MonoTouch.Dialog-1 and MonoTouch.NUnitLite were
introduced as platform assemblies is quite old [1], and doesn't explain much,
but I believe the intention was to make us treat these assemblies as *SDK*
assemblies and link them accordingly, so I made these assemblies SDK assemblies now.

Additionally remove "Xamarin.iOS" as a hardcoded platform assembly for Mac
Catalyst, because this particular code is exclusive to legacy Xamarin, and Mac
Catalyst support will only be included in our .NET release, which means this
code does not have any purpose here, and might even break something one day.

[1]: 0349f8d47f

Fixes https://github.com/xamarin/xamarin-macios/issues/12862.
2021-10-04 19:14:34 +02:00
Manuel de la Pena 05ad66d908
[CI] Setup nugets config for the private repo. (#12911) 2021-10-04 11:50:01 -04:00
Manuel de la Pena 08b6dfe776
[CI] Allow to choose nuget publishing feeds based in the repo id. (#12909)
Co-authored-by: Alex Soto <alex@alexsoto.me>
2021-10-04 11:49:17 -04:00
dotnet-maestro[bot] ee14ab7213
Update dependencies from https://github.com/dotnet/installer build 20210930.21 (#12901)
Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-rtm.21480.9 -> To Version 6.0.100-rtm.21480.21

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-10-04 08:47:54 +02:00
Rolf Bjarne Kvinge b772397b63
[msbuild] Share the BTouch task implementation between iOS and macOS. (#12873) 2021-10-04 08:18:47 +02:00
Rolf Bjarne Kvinge 62bdd683cf
[dotnet] Add support for 'dotnet pack'. Fixes #12631. (#12900)
Add support for 'dotnet pack', by:

1. Add a workaround for the fact that as soon as a project has a
   'NativeReference' item, .NET's MSBuild logic wants to include a
   'Native.$(AssemblyName).manifest' file in the NuGet. This obviously breaks,
   because we don't create such a file, so we work around it by removing the
   file in question from the corresponding item groups.

2. Add any binding resource packages to the NuGet.

3. Add tests.

Fixes https://github.com/xamarin/xamarin-macios/issues/12631.
2021-10-04 07:43:55 +02:00