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

9760 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot 67a8e812c6
[storekit] Update for Xcode 12.2 beta 3 (#9930) 2020-10-20 17:15:00 -04:00
Whitney Schmidt de032018aa
add check for xcode12 (#9922) 2020-10-20 14:55:58 -04:00
Rolf Bjarne Kvinge c0c91ed89f
[dotnet] Don't run the linker nor install_name_tool when running in offline mode on Windows. (#9910)
* [dotnet] Don't run the linker nor install_name_tool when running in offline mode on Windows.

When running in offline mode on Windows, we only want to compile the C# code
(to make sure it compiles). We do this by adding an '$(IsMacEnabled)' == 'true'
checks to code that we don't want to run in offline mode.

The linker fails like this, and the easiest fix is to just disable it:

    > dotnet build .\HelloiOS\HelloiOS.csproj -p:IsMacEnabled=false
    Microsoft (R) Build Engine version 16.8.0-preview-20475-05+aed5e7ed0 for .NET
    Copyright (C) Microsoft Corporation. All rights reserved.
      Determining projects to restore...
      Restored C:\src\net5-samples\HelloiOS\HelloiOS.csproj (in 6.28 sec).
      You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
      HelloiOS -> C:\src\net5-samples\HelloiOS\bin\Debug\net5.0-ios\ios-x64\HelloiOS.dll
    ILLink : error IL1012: IL Linker has encountered an unexpected error. Please report the issue at https://github.com/mono/linker/issues [C:\src\net5-samples\HelloiOS\HelloiOS.csproj]
      Fatal error in IL Linker
      Unhandled exception. System.DllNotFoundException: Unable to load DLL '/usr/lib/libSystem.dylib' or one of its dependencies: The specified module could not be found. (0x8007007E)
         at Xamarin.Bundler.Target.realpath(String path, IntPtr zero)
         at Xamarin.Bundler.Target.GetRealPath(String path)
         at Cache.set_Location(String value)
         at Xamarin.Linker.LinkerConfiguration..ctor(String linker_file)
         at Xamarin.Linker.LinkerConfiguration.GetInstance(LinkContext context)
         at Xamarin.Linker.ConfigurationAwareStep.get_Configuration()
         at Xamarin.SetupStep.Process()
         at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
         at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
         at Mono.Linker.Pipeline.Process(LinkContext context)
         at Mono.Linker.Driver.Run(ILogger customLogger)
         at Mono.Linker.Driver.Main(String[] args)

And disables install_name_tool too:

    > dotnet build .\HelloiOS\HelloiOS.csproj -p:IsMacEnabled=false -p:PublishTrimmed=false
    Xamarin.Shared.Sdk.targets(391,3): error MSB3073: The command "xcrun install_name_tool -id @executable_path/libSystem.IO.Compression.Native.dylib obj\Debug\net5.0-ios\ios-x64\nativelibraries/libSystem.IO.Compression.Native.dylib" exited with code 9009.

* Set PublishTrimmed after importing our existing Xamarin.iOS/Xamarin.Mac targets.

Because setting PublishTrimmed depends on knowing the value of IsMacEnabled,
which is set in our existing Xamarin.iOS/Xamarin.Mac targets.

Also remove the comment about having to set PublishTrimmed before including
Microsoft.NET.Sdk, because that's not accurate anymore (see
2939a6fdbc).
2020-10-20 16:25:49 +02:00
monojenkins e0ce496804
[xcode12.1] [Tests][Network] Do not really check the value, just make sure that we are called. (#9921) 2020-10-20 09:37:08 -04:00
monojenkins f6f0c76eeb
[Tests][ARKit] Add check for xcode12 (#9923)
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
2020-10-20 09:36:29 -04:00
Rolf Bjarne Kvinge 0269d25f79
[xharness] Announce to the world that we're creating UTF8 documents. (#9926)
This makes emojiis in the html report render properly 😁
2020-10-20 14:35:05 +02:00
monojenkins db2d95b155
[xcode12.1] [tests] Fix sample tests to take into account when a platform has been disabled. (#9915)
* [tests] Fix sample tests to take into account when a platform has been disabled.

* [devops] The INCLUDE_MAC/INCLUDE_IOS variables might not exist.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-10-20 08:28:23 +02:00
Sebastien Pouliot c6aeb3fbf9
[coreimage] Update macOS availability for new filter attributes added in 12.1 GM (#9919) 2020-10-19 18:25:25 -04:00
monojenkins 7d448f1f9e
[xcode12.2] [Tests][Network] Do not really check the value, just make sure that we are called. (#9920)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
2020-10-19 18:08:38 -04:00
Manuel de la Pena 699c1f98fb
[Tests][Network] Do not really check the value, just make sure that we are called. (#9901) 2020-10-19 16:38:32 -04:00
Sebastien Pouliot 9672dc11a9
[fileprovider] Update for Xcode 12.2 beta 3 (#9918)
note: this is not a breaking change (even if it looks like one, even in
API diff) since there is a `[NoMac]` in `d16-8-xm` that was removed (and
never released for XM) in `xcode12`.
2020-10-19 15:50:20 -04:00
Sebastien Pouliot 262872ad5d
[avkit] Update for Xcode 12.2 beta 3 (#9917) 2020-10-19 14:40:49 -04:00
Sebastien Pouliot bd13ea10cb
[xcode12.2][avfoundation] Update for Xcode 12.1 GM (#9913)
same as #9887 with added availability to new platforms and more xtro platform todo resolved
2020-10-19 13:44:21 -04:00
Sebastien Pouliot af3695bcfc
[uikit] Update for Xcode 12.2 beta 3 (#9914) 2020-10-19 11:39:03 -04:00
TJ Lambert 369c3f8668
[msbuild] Updating LocalizationStringTest (#9889)
Adding a test to check a specific error code to see if the strings in other locales are translated. This test will be added to the Localization wiki in Maccore accessible to the xamarin-macios team: https://github.com/xamarin/maccore/wiki/Localization
2020-10-19 09:18:30 -05:00
Sebastien Pouliot 3c3229deb3
[xcode12.2][imageio] Update availability and new API from Xcode 12.1 GM (#9907) 2020-10-19 08:03:12 -04:00
Sebastien Pouliot 30c4d90ffa
[xcode12.2][coreimage] Update availability and new API from Xcode 12.1 GM (#9906) 2020-10-19 07:56:29 -04:00
Rolf Bjarne Kvinge f8b66658c5
[build] Implement support for optionally cache downloads in ~/Library/Caches/xamarin-macios. (#9894)
Set the MACIOS_CACHE_DOWNLOADS environment variable in ~/.zshrc, and enjoy
faster builds! Until your hard disk fills up...
2020-10-19 10:50:27 +02:00
Rolf Bjarne Kvinge 295938bcec
[dotnet] Add support for workloads (#9897)
* Add a `Microsoft.NET.Workload.<platform>` directory which contains
  `WorkloadManifest.json` and `WorkloadManifest.targets` required for the
  workload resolver.
   * For testing, this directory is installed into our local dotnet directory
     (`dotnet/sdk-manifests/5.0.100/Microsoft.NET.Workload.<platform>`).
* Convert `Microsoft.<platform>.Sdk` to an SDK workload pack.
* Replace `Sdk.props` with `AutoImport.props`, and include the default
  inclusion itemgroups definitions from here.
* Split default inclusion logic in two:
   * The itemgroups that import the default items has been moved into a props
     file and included from `AutoImport.props`. They're also conditioned
     based on the TargetPlatformIdentifier.
   * The rest of the logic (to enable default inclusion) is left in the
     .targets file.
* Merge several .props files into .targets files to follow the convention that
  .props files should be loaded before the main csproj, and .targets files
  after (these .props files were loaded after, so to avoid confusion the
  simplest solution was to merge their contents into the applicable .targets
  file and delete the .props files).
* Bundle the workload (WorkloadManifest.json/WorklooadManifest.targets) and
  the sdk + ref packs into an installable macOS pkg (and upload these
  packages).
* Updates tests to import `Microsoft.NET.Sdk` instead of
  `Microsoft.<platform>.Sdk` (this also required a Touch.Unit bump).
* Install the sdk + ref packs into the local dotnet directory (using symlinks
  to our on-disk nuget representation). This is required for local testing.
* Add some documentation.
* Finally fix a couple of bugs that these changes uncovered.

Ref: https://github.com/xamarin/xamarin-android/pull/5195
2020-10-19 10:41:53 +02:00
Rolf Bjarne Kvinge 0336815528 Fix typos in comments. 2020-10-19 10:38:11 +02:00
Rolf Bjarne Kvinge 1ce9fd62a4
[msbuild] Make the default value for IsMacEnabled property dependent upon the OS. (#9892)
* [msbuild] Make the default value for IsMacEnabled property dependent upon the OS.

Also make it overridable by only setting it if it's not already set.

* Use $([MSBuild]::IsOSPlatform('windows')) instead of $(OS)

The $(OS) value isn't standardized, so there's no sane check we can do against
it.
2020-10-19 08:23:17 +02:00
Sebastien Pouliot b7254af791
[xcode12.2][coregraphics] Update availability wrt Xcode 12.1 GM (#9898) 2020-10-16 18:12:05 -04:00
Sebastien Pouliot 90f5d6af7e
[videotoolbox] Update attributes and add 12.2 specific key (#9905) 2020-10-16 18:08:40 -04:00
Sebastien Pouliot 4f8ffb06a1
[xcode12.2][metalperformanceshaders] Update availability wrt Xcode 12.1 GM (#9903) 2020-10-16 17:02:13 -04:00
Sebastien Pouliot d89cba1d9d
[corebluetooth] Update for Xcode 12.2 beta 3 (#9900) 2020-10-16 15:54:51 -04:00
monojenkins 9d76eb877e
[coretelephony] Update for Xcode 12.1 GM (#9899) 2020-10-16 13:30:28 -04:00
Rolf Bjarne Kvinge 2415902e83
[tests] Put linked source code into an external/ folder in the msbuild test projects. (#9896)
This makes it easier to navigate the projects in the IDE.
2020-10-16 16:29:59 +02:00
Rolf Bjarne Kvinge 3bfc112bb5 [jenkins] Publish our new packages. 2020-10-16 14:27:42 +02:00
Rolf Bjarne Kvinge 693f7a8728 [tests] Fix project reference. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge c6c3aa28fb [dotnet] There's no need to ship template files. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge e9c61f1053 [dotnet] Make default items file templated to make it platform-specific.
The template takes each platform as input, and adds a TargetPlatformIdentifier condition
to the item groups.

This also means removing Xamarin.Shared.Sdk.DefaultItems.props, and put all the generated
logic into Microsoft.<platform>.Sdk.DefaultItems.props.

We can't use an identical default items file for all four platforms, because the
file is loaded once for each platform, and if the file is identical it means it'll
get repeated four times (and everything included by default will be included four
times, ending up with build errors).
2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge b4141ebf60 [dotnet] Move the default inclusion to Xamarin.Shared.Sdk.DefaultItems.props. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge 890077adfa [tests] Enable the workload resolver. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge 5623eeb106 [dotnet] Rename Microsoft.<platform>.Sdk.SupportedTargetPlatforms.props to Microsoft.<platform>.Sdk.SupportedTargetPlatforms.targets. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge a249ac2c80 [dotnet] Rename Xamarin.Shared.Sdk.Versions.props to Xamarin.Shared.Sdk.Versions.targets. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge c34d9c092d [dotnet] Merge Microsoft.<platform>.Sdk.props into Microsoft.<platform>.Sdk.targets. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge e43688a60b [dotnet] Merge Xamarin.Shared.Sdk.props into Xamarin.Shared.Sdk.targets. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge 1be152e35b [dotnet] Remove Microsoft.<platform>.Sdk/Sdk/Sdk.props, it's not used anymore. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge 062352ccae [tests] Use 'Microsoft.NET.Sdk' instead of 'Microsoft.<platform>.Sdk'. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge ca5391115f [dotnet] Add documentation 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge fd381f2ecb [dotnet] Add WorkloadManifest.targets. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge 9dec2ec91c [dotnet] Add AutoImport.props. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge aaa628fe43 [dotnet] Create Microsoft.<platform>.Bundle.pkg packages for installing workloads manually. 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge 95dff92a4a [dotnet] Install the Sdk and Ref packages too into the dotnet directory (as symlinks). 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge 7bc6f35250 [dotnet] Install our workloads into the dotnet directory (as symlinks). 2020-10-16 14:27:57 +02:00
Rolf Bjarne Kvinge 9da5db37b5 [tests] We don't need to point to our custom packages in global.json anymore, since we'll be using the installed workload. 2020-10-16 14:27:42 +02:00
Rolf Bjarne Kvinge 486bb80b52 [dotnet] Create a WorkloadManifest.json for each platform. 2020-10-16 14:27:42 +02:00
Rolf Bjarne Kvinge f6e8259a23 [dotnet] Write FrameworkList.xml and RuntimeList.xml into our on-disk nuget representation.
This makes it so that we can create a symlink in the dotnet path directly into
our on-disk nuget representation.
2020-10-16 14:27:42 +02:00
Rolf Bjarne Kvinge 613ebb1dce [dotnet] Don't import Microsoft.NET.Sdk's Sdk.props/Sdk.targets.
We're not in control of this anymore.
2020-10-16 14:27:42 +02:00
Rolf Bjarne Kvinge 29fe8bd74e Bump Touch.Unit.
New commits in spouliot/Touch.Unit:

* spouliot/Touch.Unit@9abe69e [Touch.Client] Use 'Microsoft.NET.Sdk' instead of 'Microsoft.<platform>.Sdk'. (#93)

Diff: 89afaf7e05..9abe69e6f5
2020-10-16 14:27:42 +02:00