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

7565 Коммитов

Автор SHA1 Сообщение Дата
Vincent Dondain 011aaf7ccb
Update APIDIFF_REFERENCES to current stable (#7372) 2019-11-06 17:06:38 -05:00
Manuel de la Pena 566e5a8d12
[Install] Do not crash when the directory is not found. (#7378)
This is NOT a fix for https://github.com/xamarin/maccore/issues/2053 but
a nice thing to have to make sure that when the file cannot be copied we
have a useful debugging message. Fixing
https://github.com/xamarin/maccore/issues/2053 should be done in the
path mangler that is doing something wrong with the paths.
2019-11-06 16:09:02 -05:00
Pramit Mallick 0c1b9b9b03 [UIKit] Added Static to UITraitCollection.FromPreferredContentSizeCategory (#7350)
Add a new static method to be used and obsolete the old wrong bound code.
2019-11-06 15:22:52 -05:00
monojenkins 8536ba6975 [Tests] Fix introspection failing due to a typo. (#7377)
Fixes: https://github.com/xamarin/maccore/issues/2052
2019-11-06 15:21:24 -05:00
monojenkins 1926eaecee [Tests] Fix introspection failing due to a typo. (#7376)
Fixes: https://github.com/xamarin/maccore/issues/2052
2019-11-06 14:52:13 -05:00
monojenkins 374fe91721 [Tests] Fix introspection failing due to a typo. (#7370)
Fixes: https://github.com/xamarin/maccore/issues/2052
2019-11-06 10:45:04 -05:00
Vincent Dondain 63d092d526
Merge pull request #7368 from VincentDondain/master-merge-xcode11.2
Merge xcode11.2 into master
2019-11-06 10:43:45 -05:00
Rolf Bjarne Kvinge 2b570fafba
Bump mono to get mono archives. (#7365)
New commits in mono/mono:

* mono/mono@062f0ab8ca [sdks] Use Xcode 11.2 stable version for iOS/Mac SDKs

Diff: e1ef774391..062f0ab8ca
2019-11-06 07:40:35 +01:00
monojenkins 954c01b54e Bump mono to get mono archives. (#7367)
New commits in mono/mono:

* mono/mono@062f0ab8ca [sdks] Use Xcode 11.2 stable version for iOS/Mac SDKs

Diff: e1ef774391..062f0ab8ca
2019-11-06 07:26:18 +01:00
Manuel de la Pena 746fd47638
[Networking] Add the NWFramer implementation. (#7338)
Uncommented the sources and update some mistakes after following the
sample provided by Apple. Initially tests were going to be added but
they resulted to be to flacky and would make the CI red too often to be
adding value.

Porting the sample will ensure that it works are the bindings are not
broken.
2019-11-05 15:32:17 -05:00
Vincent Dondain a558d84457 Merge branch 'xcode11.2' into master-merge-xcode11.2 2019-11-05 15:25:49 -05:00
Vincent Dondain ef1ccbd3f0
Update xcode11.3 version to 13.9/6.9 (#7362)
(.9) was previously used by master builds but this was not released to the public so we should be fine.
xcode11.3 will eventually become (.10)
2019-11-05 11:07:50 -05:00
Manuel de la Pena 2e5b64893f
[Runtime] Enable the -Wshorten-64-to-32 flag and fix all warnings. (#7353)
* [Runtime] Enable the -Wshorten-64-to-32 flag and fix all warnings.

We want to enable the -Wconversion but that will raise too many warning
for a single commit. We are enabiling one by one the flags included in
-Wconversion so that we have smaller diffs.

-Wshorten-64-to-32 adds warnings when there is a implicit conversion that
loses integer precision. We are moving all the 32 to 64 conversions to
use 64. Expecially since most of the code changed is related with sizes,
legths and params counts that are never going to be negative.


Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>
2019-11-05 11:00:14 -05:00
Vincent Dondain 44c08f2ca3
Merge pull request #7355 from VincentDondain/d16-4-xcode11.2-merge
Merge xcode11.2 into d16-4
2019-11-04 16:25:02 -05:00
Marius Ungureanu f079db990b Remove redundant class_ptr initialization (#7357)
This is already done by the generated code, as seen below.

```csharp
		selWindowWithWindowNumber_Handle = Selector.GetHandle ("windowWithWindowNumber:");
		selWindowsHandle = Selector.GetHandle ("windows");
		selWindowsMenuHandle = Selector.GetHandle ("windowsMenu");
		class_ptr = Class.GetHandle ("NSApplication");
		class_ptr = Class.GetHandle ("NSApplication");
	}
```

With this change, we've also removed the static constructor, therefore all the fields are going to be initialized when they are used, as opposed to being forcefully loaded on the first access. This may improve startup times
2019-11-04 21:46:30 +01:00
michizhou 00f7069b23 [mmp] [mtouch] Expand error message for MM4162 and MT4162. Fixes #4286 (#7313) 2019-11-04 11:09:28 -05:00
Sebastien Pouliot e55e434213
[runtime] Free `env-argv` in `xamarin-main` (#7352)
`get_mono_env_options` allocate memory so it must [1] be freed.

[1] to be polite since it will be freed when the app exit, which
will free everything anyway
2019-11-04 08:56:59 -05:00
Sebastien Pouliot 8f92c3dcdd
[runtime] Merge two identical code paths (#7351) 2019-11-04 08:55:02 -05:00
Vincent Dondain 898ea3cdbf [d16-4] Bump mono 2019-08@e1ef7743 (#7356)
New commits in mono/mono:

* mono/mono@e1ef774391 [2019-08] Bump CoreFX to pickup corefx PR #367 to fix #17133. (#17622)
* mono/mono@6d1f88e0ad Bump msbuild to get SDK updates from https://github.com/mono/msbuild/pull/150
* mono/mono@a3f3bfc4c3 Bump nuget to the latest suggested version
* mono/mono@9bd3079f1c [2019-08] bump msbuild with more p2 packages
* mono/mono@6ac1ff75a2 [dim][regression] Explicit interface override (#17583) (#17627)
* mono/mono@a119807a01 [acceptance-tests] Bump mono/roslyn to get build fix
* mono/mono@d234d34b70 [2019-08][merp] Install sigterm handler in EnableMicrosoftTelemetry
* mono/mono@444a9a3fc4 [2019-08] [merp] Introduce a new 'dump mode' that allows different signal behavior when dumping (#17568)

Diff: 8946e49a97..e1ef774391
2019-11-04 08:38:19 +01:00
Vincent Dondain ec3c01d131 Merge branch 'xcode11.2' into d16-4-xcode11.2-merge 2019-11-01 17:11:44 -04:00
joe f1cb310043 Updated reference to xamarin/Xamarin.MacDev@ca221c8 2019-11-01 07:54:36 -04:00
Vincent Dondain e3c2b406de Bump to Xcode 11.2 final (#7347)
* Bump to Xcode 11.2 final

* Fix xtro
2019-10-31 23:25:04 -04:00
Whitney Schmidt d90223a316
[MapKit] Xcode 11.2 update (#7331)
* mapkit 11.2

* make methods public

* add async attribute

* style fixes, using pattern
2019-10-31 11:11:41 -04:00
Pramit Mallick c4f28a1888
[MPSCore] Xcode11.1 GM Binding (#7330) 2019-10-31 10:02:53 -04:00
Sebastien Pouliot e736477377
[runtime] Remove some classic (pre-unified) code that is not used anymore. (#7341) 2019-10-30 20:54:30 -04:00
Sebastien Pouliot d3e188493a
Bump XI/XM versions over (branched) d16-5 (#7342) 2019-10-30 19:42:25 -04:00
Manuel de la Pena 8b45260ee4
[Runtime] Ensure that all comparisons between signed and unsigned values are fixed. (#7339)
Enable the -Wsign-compare which will raise issues when a comparison
between signed and unsigned values could produce an incorrect result
and fix all the raised warnings.
2019-10-30 15:58:13 -04:00
Manuel de la Pena 957572720e
[Tests] Fix some network tests that were leaving the connection in a bad (#7337)
state.

Some of the tests were creating connections when not needed, this
'apparetly' was leaving the internal state of the Networking API in a
bad state in which it would throw a SIGSEGV and will make the connection
of other tests fail. In this case, the Tls tests that use the Network
API.

Cleaning the tests and removing those badly managed connections ensured
that the SIGSEGV would not be thrown and got all the other tests to
work.

This is a blackbox, test now passes without problems.

Fixes: https://github.com/xamarin/maccore/issues/2048
2019-10-30 15:07:28 -04:00
Pramit Mallick 3cf957442e [Foundation] Add 'targetContentIdentifier' to macOS and watchOS 2019-10-30 14:53:55 -04:00
Ema 68f886caef [msbuild] Makes DSymUtil task report the Executable as output
The DSymUtil tool not only generates the debug symbol files but also modifies the executable file. Marking that property as Output (and changing it to ITaskItem type) makes Visual Studio on Windows aware of that change. Under certain scenarios this was making the build on VS produce an app bundle that was not fully signed on incremental builds. For instance, the DSymUtil task was run for a framework on an incremental build, but as the executable file of that framework was not modified on Windows the inputs/outputs check for CodesignFrameworks did not fail so that target was skipped. This led to a failure on the CodesignVerify target.

Partial fix for https://developercommunity.visualstudio.com/content/problem/729766/codedesign-exited-with-code-1.html
2019-10-30 15:21:19 -03:00
Sebastien Pouliot f6efbf551e
[registrar] Check parameter pointer before de-referencing it (#7336)
This case was generated (only) twice

1. https://developer.apple.com/documentation/uikit/uipopoverpresentationcontrollerdelegate/1622326-popoverpresentationcontroller?language=objc
where `inView:(inout UIView * _Nonnull *)view;`

2. https://developer.apple.com/documentation/quicklook/qlpreviewcontrollerdelegate/1617007-previewcontroller?language=objc
where `inSourceView:(UIView * _Nullable *)view;`
and `CGRect FrameForPreviewItem (QLPreviewController controller, [Protocolize] QLPreviewItem item, ref UIView view);`

This is not an issue because it won't be `null` in those case
but making the code safer (against future changes/API) is safer.

The output (copy-back) to the pointer already has a null-check.
2019-10-30 14:09:29 -04:00
Sebastien Pouliot bba2ea46df
[simlauncher] Move simlauncher source to .mm file extension (ObjC++) (#7334)
This is already compiled as ObjC++ but this gives an additional (and
required) hint to some tools that it is Objective C++ code.

This avoid a lot of build errors (under static analysis tools),
most of them not really helpful (a trait shared with many C++ compiler
warnings and errors) except for this one:

```
error: invalid argument ‘-std=c++14’ not allowed with ‘Objective-C’
```
2019-10-30 11:40:05 -04:00
Pramit Mallick ecefbde776
[ARKit] Xcode11.2 Binding (#7324)
* [ARKit] Add enum for xcode11.2

* address reviews

* Added Obsolete attribute
2019-10-30 11:04:48 -04:00
Manuel de la Pena 4a9c10a85b
[Introspection] Add Mac OS X 15.15.1 on availability tests. (#7328) 2019-10-30 01:47:41 -04:00
Whitney Schmidt b71fc30f49
CoreMedia 11.2 updates (#7329) 2019-10-29 17:05:23 -04:00
Waleed Chaudhry 90982b64b4
[CoreGraphics] Add CoreGraphics bindings for xcode11.2b2 (#7327) 2019-10-29 14:06:02 -04:00
Alexander Köplinger e8409f2834 [tests] Remove confusing values for old Xcode versions (#5806)
Xcode 5 to 7 are obsolete, we don't need those values in the test config anymore.
2019-10-29 12:02:22 -04:00
Whitney Schmidt 54572a9f7b
add avmetadata updates (#7316) 2019-10-29 11:42:55 -04:00
Whitney Schmidt 04d2436587
[Xcode 11.2] Callkit updates (#7322)
* callkit updates for 11.2

* remove availability attributes for error enum
2019-10-29 11:42:32 -04:00
Waleed Chaudhry 25da8b43a2
[AuthenticationServices] Add AuthenticationServices bindings for xcode11.2 (#7315) 2019-10-29 10:52:03 -04:00
Vincent Dondain 346dc17447
Update Xcode11.2 package version to stable (.6) (#7320)
In anticipation of Xcode 11.2 release to stable which should be any time soon now that iOS 13.2 and tvOS 13.2 are out.
2019-10-29 10:18:38 -04:00
Manuel de la Pena e4268e83f2
[Tests] Ignore BCL tests on 32b that fail due to threads failing to be created. (#7318)
Related mono issue: https://github.com/mono/mono/issues/17588
2019-10-29 08:20:23 -04:00
Pramit Mallick f35569a715 [Appkit] Bindings part 4 (#7295)
Complete the AppKit bindings up to Xcode 11.2
2019-10-28 15:38:34 -04:00
Manuel de la Pena 610cefaf1e
[Tests] Fix the Network tests. (#7293)
* [Tests] Fix the Network tests.

The pattern used to Cancel then Dispose the connection is wrong and
ended up crashing the tests sometimes. It is a race condition and is
very rare, but makes the tests flaky. The changes ensures that we
Dispose the connection, which internally closes it.

Tests have been added for the NWConnection Close calls.

Also cleaned some on the CWL that were not needed.
2019-10-28 14:50:44 -04:00
Rolf Bjarne Kvinge 3d1790df41 [tests] Fix Xamarin.Tests.Misc.PublicSymbols after recent changes in our native code. (#7312)
Fixes this test:

     1) Failed : Xamarin.Tests.Misc.PublicSymbols(watchOS)
       Failed libraries
       Expected: <empty>
       But was:  "/Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.WatchOS.sdk/usr/lib/libxamarin-debug.a:
     	___os_log_helper_16_2_1_4_34
     "
       at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00000] in <1fca7937273a476381dfa5d9399511ee>:0
2019-10-28 10:40:53 -04:00
Vincent Dondain 84ee21569f [d16-4] Bump mono 2019-08@8946e49a (#7311)
New commits in mono/mono:

* mono/mono@8946e49a97 Added SR.missing from original backport
* mono/mono@5c784c9747 Bump to mono/corefx@fb41040
* mono/mono@fdb704901e Revert "[2019-08] rollback msbuild/roslyn updates for a preview" (#17543)
* mono/mono@92a177923c [2019-08] [debugger] Changing how debugger handles exception w… (#17524)
* mono/mono@1b2e536b22 [2019-08] rollback msbuild/roslyn updates for a preview
* mono/mono@ec4ef9bc34 Bump roslyn-binaries to get roslyn 3.4.0-beta3-19521-01
* mono/mono@cc8deca901 Bump msbuild to pick up sdks+roslyn updates
* mono/mono@335f0109c5 Bump msbuild to track mono-2019-08
* mono/mono@90d6e496e4 Fix checks so stack overflows work again.
* mono/mono@4b60e7f930 [jit] Avoid running mono_handle_native_crash () on the altstack, it can't produce a backtrace. AMD64 only for now.
* mono/mono@989333d6ae Bump Bockbuild to pick-up gtk# binding change (#17486)
* mono/mono@baa12e5d24 [profiler] Fix coverage profiler on macos (#17422)

Diff: ef75d4bef7..8946e49a97
2019-10-28 10:38:53 -04:00
Sebastien Pouliot c0e5176e9e
[runtime] Simplify Vision dlsym'ed functions (#7307)
* [runtime] Simplify Vision dlsym'ed functions

More code sharing - DRYer :)

It also remove complaints (from static analysis tools) that a `dlclose`
should be present. That's not really an issue here since it's reference
counted and won't be unloaded if you use the code (and such a call is
not added in the PR). It silence the warning since it's not a local
variable anymore.
2019-10-28 09:21:34 -04:00
Manuel de la Pena 4a9c6b994f
[Networking] Use the correct signature on SetData. Fixes #2042 (#7310)
Use the correct signature or the app will crash. Tested on a device.

Fixes: https://github.com/xamarin/maccore/issues/2042
2019-10-25 20:06:23 -04:00
Manuel de la Pena 5670872dc6
[Generator] Allow 1 level nester classes. Fixes: #7304 (#7309)
We have only encountered a case in which we had to add a nested
class/enum as the return type of a property. This fix ensures that we
can work with 1 level nested classes. A more general situation with
nested/nested/nested/.. classes is not taken into account because:

1. Would complicate too much the code.
2. Is fixing problems we do not have AFAIK.

So I'm keeping the fix simple, as I said, we have never faced anything
deeper than one level.
2019-10-25 20:06:00 -04:00
Sebastien Pouliot 9fd03625b4
[msbuild] Ensure the output of `mtouch` (and friends) are included in binary logs. Fix #7035 (#7288)
and by friends I mean `mmp` and `btouch`

What does this do ?

1. Assume that output of `mtouch` (and other similar tools) is **always** of high importance. Why ?

- If not then it's not saved in the binary log (even if visible on the console/text logs).
- The logging of `mtouch` (and friends) is dynamic, based on a supplied verbosity level.
- If a verbosity level _anywhere_ then it's a clear sign that the developer wants that extra output (and that includes binary logs).

2. Assume the _global_ verbosity of `msbuild` from the console is just as valid/useful than the one from VSfM.

- CI/bots produce logs and they should be useful to diagnose build issues.
- Setting verbosity in several places is error-prone, which delay investigations and results.
- Running the same project, with the same `msbuild` verbosity, should be identical between IDE and console.

What does that mean ?

Using `msbuild /v:diag /bl:out.binlog` you get a small(er) binary log that has everything[1] you need to diagnose a Xamarin.iOS (or Mac) build. It's also identical to the output what VSfM produce (for the same `msbuild` verbosity level).

[1] we might need to review what we log if we're missing interesting stuff

References:
https://github.com/xamarin/xamarin-macios/issues/7035
2019-10-25 17:44:35 -04:00