xamarin-macios/tests/xtro-sharpie/Makefile

200 строки
5.7 KiB
Makefile
Исходник Обычный вид История

TOP=../..
2016-05-26 16:06:52 +03:00
include $(TOP)/Make.config
# a 64bits mono is required because of the clang requirement
MONO ?= mono64 --debug
SHARPIE ?= sharpie
2016-05-26 16:06:52 +03:00
XCODE=$(abspath $(XCODE_DEVELOPER_ROOT)/../..)
all-local::
2016-05-26 16:06:52 +03:00
clean-local::
rm -f xtro-report/bin/Debug/xtro-report.exe bin/Debug/xtro-sharpie.exe
rm -f *.tmp
2016-05-26 16:06:52 +03:00
rm -rf *os*.pch*
bin/Debug/xtro-sharpie.exe xtro-report/bin/Debug/xtro-report.exe build: $(wildcard *.cs)
[d16-2] Bump VSMac to 8.1.0.2742 to fix msbuild issues (#6279) (#6361) * Bump VSMac to 8.1.0.2742 to fix msbuild issues (#6279) * Bump VSMac to 8.1.0.2742 to fix msbuild issues This is required to get the support for the msbuild `ToolsVersion` change from `15.0` to `Current`. * [tests][msbuild] Fix Binding resources test with updated msbuild Test failure with updated msbuild and vsmac 8.1: ``` Xamarin.iOS.Tasks.NativeReferencesNoEmbedding("iPhone").ShouldNotUnnecessarilyRebuildBindingProject(True) Binding project build did not create package? Expected: True But was: False at Xamarin.iOS.Tasks.NativeReferencesNoEmbedding.ShouldNotUnnecessarilyRebuildBindingProject (System.Boolean framework) [0x000a0] in <74b8f7d8a53e40109916d305bb4d7403>:0 at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo cul ture) [0x0006a] in <0519fa732e8845b6a809ce9180f541db>:0 ``` The test builds the project multiple times. Before the 3rd build, the project file's timestamp is updated and expects that the binding package will be rebuilt. But it is not, because the target `_CreateBindingResourcePackage` doesn't depend on that project file. So, add that to the target inputs. * [nuget] Use xibuild to run nuget Fix errors seen during `nuget restore` for tests: ``` Users/builder/jenkins/workspace/xamarin-macios-pr-builder/tests/xammac_tests/xammac_tests.csproj(213,3): error MSB4024: The imported project file "/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Mac/Xamarin.Mac.CSharp.targets" could not be loaded. Could not find file "/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Mac/Xamarin.Mac.CSharp.targets" ``` * [xibuild] Fix incorrect mscorlib.dll being used (#6068) * [xibuild] Fix incorrect mscorlib.dll being used The `GuiUnit_NET_4_5` project, when built with `xibuild` uses the wrong `mscorlib.dll`. From https://github.com/xamarin/xamarin-macios/issues/5760#issuecomment-472457202 : ``` - mscorlib.dll is being used from mono/4.5 and the other system assemblies are from mono/4.5-api - GuiNet* project is built with xibuild What is happening here is: xibuild sets[1] `SetToolsetProperty ("TargetFrameworkRootPath", FrameworksDirectory + Path.DirectorySeparatorChar);` which points to `/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks`. This causes $(FrameworkPathOverride) to be set[2] to `/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks/.NETFramework/v4.5`, but that doesn't have a mscorlib.dll, so it gets reset[3] to /Library/Frameworks/Mono.framework/Versions/5.22.0/lib/mono/4.5/. If we don't set TargetFrameworkRoothPath, then we get `FrameworkPathOverride = /Library/Frameworks/Mono.framework/Versions/5.22.0/lib/mono/4.5-api`, causing `_ExplicitReference=/Library/Frameworks/Mono.framework/Versions/5.22.0/lib/mono/4.5-api/mscorlib.dll`(correct one) to be used. ``` Fixes https://github.com/xamarin/xamarin-macios/issues/5760 1. https://github.com/xamarin/xamarin-macios/blob/master/tools/xibuild/Main.cs#L209 2. https://github.com/mono/msbuild/blob/xplat-master/src/Tasks/Microsoft.Common.CurrentVersion.targets#L79 3. https://github.com/mono/msbuild/blob/xplat-master/src/Tasks/Microsoft.Common.CurrentVersion.targets#L84 * Revert "Workaround https://github.com/xamarin/xamarin-macios/issues/5760 in generator csproj" This reverts commit 9bd927bb7fe3eb1b14721745c500ff8b4aecd109. The previous commit for xibuild removes the need for this. * [xibuild] Handle "incorrectly" cased msbuild property names (#6202) msbuild property names are case insensitive. While generating the custom app.config, in `SetToolsetProperty(..)` we try to update the property if it already exists. But the name lookup was case sensitive, thus causing the lookup to fail, resulting in two entries for the same property name differing only in case. Eg. `MSBuildSDKsPath` vs `MSBuildSdksPath`. Fixed to ignore case. Fixes https://github.com/mono/mono/issues/14765 .
2019-06-19 18:28:01 +03:00
$(Q) $(SYSTEM_XIBUILD) -t -- /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/nuget/NuGet.exe restore xtro-sharpie.sln
$(Q_BUILD) $(SYSTEM_MSBUILD) $(MSBUILD_VERBOSITY) xtro-sharpie.sln
XIOS ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/64bits/iOS/Xamarin.iOS.dll
XIOS_GL ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/OpenTK-1.0.dll
2016-05-26 16:06:52 +03:00
XIOS_ARCH = arm64
XIOS_PCH = iphoneos$(IOS_SDK_VERSION)-$(XIOS_ARCH).pch
$(XIOS_PCH): .stamp-check-sharpie
Bump to Xcode 13 beta 1. (#11861) * Bump maccore. New commits in xamarin/maccore: * xamarin/maccore@9acbbed1f6 [mlaunch] Add support for Xcode 13 beta 1. (#2452) * xamarin/maccore@e48f75c0b6 [Xamarin.Hosting] Fix the --stdout arg not being forwarded to DeviceLaunchConfig (#2435) * xamarin/maccore@109c695b1b [Xamarin.Hosting] Fix help string for launchdev argument (#2429) Diff: https://github.com/xamarin/maccore/compare/cddbd1915dcb27d8bf2d9b3b9cc4aeb22785698e..9acbbed1f60788349c60437dba11531a866777a8 * [xtro] Fix generation of .pch files * [xtro] Fix deprecated check to handle (anonymous) declarations and enable latest C# syntax in project * [xtro] Fix _sanity_ checks * [xtro] Update todo for beta 1 * [Siminstaller] Force siminstaller to use the xcode 12.5 url Related issue: https://github.com/xamarin/xamarin-macios/issues/11881 * Fix introspection failures (due to [breaking] changes) * [tests][intro] Fix hang for tvOS Creating an instance of `NSMetadataQuery` hangs the simulator. Even after (xharness) timeout the simulator is not in a good state to run further tests and every new (tvOS) test will also hang... * [tests][intro] Same hang for watchOS except that further test execution does not seem affected (like tvOS) ``` CoreSimulator 772.1 - Device: Apple Watch Series 3 - 38mm (watchOS 8.0) - created by XHarness (42262867-E060-40C0-803E-6DA676AF50CC) - Runtime: watchOS 8.0 (19R5266p) - DeviceType: Apple Watch Series 3 - 38mm Thread 0 Crashed:: tid_103 Dispatch queue: com.apple.main-thread 0 com.apple.Foundation 0x00007fff21470bd0 -[NSMetadataQuery dealloc] + 432 1 libobjc.A.dylib 0x00007fff200d11f7 objc_object::sidetable_release(bool, bool) + 177 2 com.apple.Foundation 0x00007fff21470a03 -[NSMetadataQuery init] + 64 3 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107efc139 xamarin_dyn_objc_msgSend + 217 (trampolines-x86_64-objc_msgSend.s:15) 4 ??? 0x000000010c76d4f6 0 + 4504081654 5 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107cffc85 mono_jit_runtime_invoke + 1621 (mini-runtime.c:3197) 6 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 do_runtime_invoke + 54 (object.c:3052) [inlined] 7 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 mono_runtime_invoke_checked + 136 (object.c:3220) 8 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e1e3c5 mono_runtime_try_invoke_array + 2101 (object.c:5601) 9 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107daf977 ves_icall_InternalInvoke + 871 (icall.c:3927) 10 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107dc0167 ves_icall_InternalInvoke_raw + 103 (icall-def.h:667) 11 ??? 0x000000010a232799 0 + 4465043353 12 ??? 0x000000010c76e08b 0 + 4504084619 ``` * [tests][monotouch-test] Fix failures with xcode 13 beta 1 * [tests][mmptest] Use a FAT framework that's build with x86_64 and arm64 Co-authored-by: Alex Soto <alex@alexsoto.me> Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com> Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-06-11 03:07:20 +03:00
$(SHARPIE) sdk-db --xcode $(XCODE) -s iphoneos$(IOS_SDK_VERSION) -a $(XIOS_ARCH) -exclude RealityKit
2016-05-26 16:06:52 +03:00
XWATCHOS ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/32bits/watchOS/Xamarin.WatchOS.dll
2016-05-26 16:06:52 +03:00
XWATCHOS_ARCH = armv7
XWATCHOS_PCH = watchos$(WATCH_SDK_VERSION)-$(XWATCHOS_ARCH).pch
$(XWATCHOS_PCH): .stamp-check-sharpie
Bump to Xcode 13 beta 1. (#11861) * Bump maccore. New commits in xamarin/maccore: * xamarin/maccore@9acbbed1f6 [mlaunch] Add support for Xcode 13 beta 1. (#2452) * xamarin/maccore@e48f75c0b6 [Xamarin.Hosting] Fix the --stdout arg not being forwarded to DeviceLaunchConfig (#2435) * xamarin/maccore@109c695b1b [Xamarin.Hosting] Fix help string for launchdev argument (#2429) Diff: https://github.com/xamarin/maccore/compare/cddbd1915dcb27d8bf2d9b3b9cc4aeb22785698e..9acbbed1f60788349c60437dba11531a866777a8 * [xtro] Fix generation of .pch files * [xtro] Fix deprecated check to handle (anonymous) declarations and enable latest C# syntax in project * [xtro] Fix _sanity_ checks * [xtro] Update todo for beta 1 * [Siminstaller] Force siminstaller to use the xcode 12.5 url Related issue: https://github.com/xamarin/xamarin-macios/issues/11881 * Fix introspection failures (due to [breaking] changes) * [tests][intro] Fix hang for tvOS Creating an instance of `NSMetadataQuery` hangs the simulator. Even after (xharness) timeout the simulator is not in a good state to run further tests and every new (tvOS) test will also hang... * [tests][intro] Same hang for watchOS except that further test execution does not seem affected (like tvOS) ``` CoreSimulator 772.1 - Device: Apple Watch Series 3 - 38mm (watchOS 8.0) - created by XHarness (42262867-E060-40C0-803E-6DA676AF50CC) - Runtime: watchOS 8.0 (19R5266p) - DeviceType: Apple Watch Series 3 - 38mm Thread 0 Crashed:: tid_103 Dispatch queue: com.apple.main-thread 0 com.apple.Foundation 0x00007fff21470bd0 -[NSMetadataQuery dealloc] + 432 1 libobjc.A.dylib 0x00007fff200d11f7 objc_object::sidetable_release(bool, bool) + 177 2 com.apple.Foundation 0x00007fff21470a03 -[NSMetadataQuery init] + 64 3 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107efc139 xamarin_dyn_objc_msgSend + 217 (trampolines-x86_64-objc_msgSend.s:15) 4 ??? 0x000000010c76d4f6 0 + 4504081654 5 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107cffc85 mono_jit_runtime_invoke + 1621 (mini-runtime.c:3197) 6 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 do_runtime_invoke + 54 (object.c:3052) [inlined] 7 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 mono_runtime_invoke_checked + 136 (object.c:3220) 8 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e1e3c5 mono_runtime_try_invoke_array + 2101 (object.c:5601) 9 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107daf977 ves_icall_InternalInvoke + 871 (icall.c:3927) 10 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107dc0167 ves_icall_InternalInvoke_raw + 103 (icall-def.h:667) 11 ??? 0x000000010a232799 0 + 4465043353 12 ??? 0x000000010c76e08b 0 + 4504084619 ``` * [tests][monotouch-test] Fix failures with xcode 13 beta 1 * [tests][mmptest] Use a FAT framework that's build with x86_64 and arm64 Co-authored-by: Alex Soto <alex@alexsoto.me> Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com> Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-06-11 03:07:20 +03:00
$(SHARPIE) sdk-db --xcode $(XCODE) -s watchos$(WATCH_SDK_VERSION) -a $(XWATCHOS_ARCH) -exclude RealityKit
2016-05-26 16:06:52 +03:00
XTVOS ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/64bits/tvOS/Xamarin.TVOS.dll
XTVOS_GL ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.TVOS/OpenTK-1.0.dll
2016-05-26 16:06:52 +03:00
XTVOS_ARCH = arm64
XTVOS_PCH = appletvos$(TVOS_SDK_VERSION)-$(XTVOS_ARCH).pch
$(XTVOS_PCH): .stamp-check-sharpie
Bump to Xcode 13 beta 1. (#11861) * Bump maccore. New commits in xamarin/maccore: * xamarin/maccore@9acbbed1f6 [mlaunch] Add support for Xcode 13 beta 1. (#2452) * xamarin/maccore@e48f75c0b6 [Xamarin.Hosting] Fix the --stdout arg not being forwarded to DeviceLaunchConfig (#2435) * xamarin/maccore@109c695b1b [Xamarin.Hosting] Fix help string for launchdev argument (#2429) Diff: https://github.com/xamarin/maccore/compare/cddbd1915dcb27d8bf2d9b3b9cc4aeb22785698e..9acbbed1f60788349c60437dba11531a866777a8 * [xtro] Fix generation of .pch files * [xtro] Fix deprecated check to handle (anonymous) declarations and enable latest C# syntax in project * [xtro] Fix _sanity_ checks * [xtro] Update todo for beta 1 * [Siminstaller] Force siminstaller to use the xcode 12.5 url Related issue: https://github.com/xamarin/xamarin-macios/issues/11881 * Fix introspection failures (due to [breaking] changes) * [tests][intro] Fix hang for tvOS Creating an instance of `NSMetadataQuery` hangs the simulator. Even after (xharness) timeout the simulator is not in a good state to run further tests and every new (tvOS) test will also hang... * [tests][intro] Same hang for watchOS except that further test execution does not seem affected (like tvOS) ``` CoreSimulator 772.1 - Device: Apple Watch Series 3 - 38mm (watchOS 8.0) - created by XHarness (42262867-E060-40C0-803E-6DA676AF50CC) - Runtime: watchOS 8.0 (19R5266p) - DeviceType: Apple Watch Series 3 - 38mm Thread 0 Crashed:: tid_103 Dispatch queue: com.apple.main-thread 0 com.apple.Foundation 0x00007fff21470bd0 -[NSMetadataQuery dealloc] + 432 1 libobjc.A.dylib 0x00007fff200d11f7 objc_object::sidetable_release(bool, bool) + 177 2 com.apple.Foundation 0x00007fff21470a03 -[NSMetadataQuery init] + 64 3 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107efc139 xamarin_dyn_objc_msgSend + 217 (trampolines-x86_64-objc_msgSend.s:15) 4 ??? 0x000000010c76d4f6 0 + 4504081654 5 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107cffc85 mono_jit_runtime_invoke + 1621 (mini-runtime.c:3197) 6 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 do_runtime_invoke + 54 (object.c:3052) [inlined] 7 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 mono_runtime_invoke_checked + 136 (object.c:3220) 8 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e1e3c5 mono_runtime_try_invoke_array + 2101 (object.c:5601) 9 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107daf977 ves_icall_InternalInvoke + 871 (icall.c:3927) 10 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107dc0167 ves_icall_InternalInvoke_raw + 103 (icall-def.h:667) 11 ??? 0x000000010a232799 0 + 4465043353 12 ??? 0x000000010c76e08b 0 + 4504084619 ``` * [tests][monotouch-test] Fix failures with xcode 13 beta 1 * [tests][mmptest] Use a FAT framework that's build with x86_64 and arm64 Co-authored-by: Alex Soto <alex@alexsoto.me> Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com> Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-06-11 03:07:20 +03:00
$(SHARPIE) sdk-db --xcode $(XCODE) -s appletvos$(TVOS_SDK_VERSION) -a $(XTVOS_ARCH) -exclude RealityKit
2016-05-26 16:06:52 +03:00
Xamarin.Mac native Apple Silicon targetting support (#10115) * Add support for Xamarin.Mac arm64 * Add compile product definition task Xamarin.Mac can be provided with a ProductDefinition file for the generated pkg. Normally, providing a product definition was optional. However, with Apple Silicon, we have an extra issue : `productbuild` needs to know what architectures your package target. If not provided with them, it will guess to the best of its abilities. However, on Catalina and lower, the guess is x86_64, even if you have an arm64 slice. To fix this, we add a new task to compile the product definition and use this file to create the pkg. If you provide your own Product Definition, we can check and warn if the architectures don't match what we expect. If the file doesn't exist or there is no architecture, we set it ourselves based on our target architectures. * Don't reference dynamic objC_send on arm64 When building in debug, we currently try to link dynamic objC_send symbols when targeting a 64-bit architecture. However, this is actually only defined on Intel architectures, not on arm64, so we end up failing because we're referring symbols that don't exist. Rework the `GetRequiredSymbols` to take an abi, and tag those symbols to only be valid on i386/x86_64, so they don't get referred at all when building on arm64, but still get referred in x86_64. * Fix improper delete/move with already existing directories * Fix stret requirement for Xamarin.Mac in arm64. The generator supposes that we're running in x64 mode, refactor to take into account the possibility of running in arm64. * Implement OS version generation in Product.plist, based on MinimumSystemVersion of the app * Re-generalize some mmp registrar rules `Microsoft.macOS.registrar` was missed by the current rule set * Fix mmp tests * Set E7072 as not translated Tests were failing otherwise * Rename Xamarin.Mac lib/x86_64 folder to 64bits (currently all targeted archs are the same) * Fix style issues * Fix `ToLower` usage for invariant usage * Fix xtro-sharpie test
2021-03-18 04:48:02 +03:00
XMAC ?= $(TOP)/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/lib/64bits/mobile/Xamarin.Mac.dll
2016-05-26 16:06:52 +03:00
XMAC_ARCH = x86_64
XMAC_PCH = macosx$(OSX_SDK_VERSION)-$(XMAC_ARCH).pch
$(XMAC_PCH): .stamp-check-sharpie
Bump to Xcode 13 beta 1. (#11861) * Bump maccore. New commits in xamarin/maccore: * xamarin/maccore@9acbbed1f6 [mlaunch] Add support for Xcode 13 beta 1. (#2452) * xamarin/maccore@e48f75c0b6 [Xamarin.Hosting] Fix the --stdout arg not being forwarded to DeviceLaunchConfig (#2435) * xamarin/maccore@109c695b1b [Xamarin.Hosting] Fix help string for launchdev argument (#2429) Diff: https://github.com/xamarin/maccore/compare/cddbd1915dcb27d8bf2d9b3b9cc4aeb22785698e..9acbbed1f60788349c60437dba11531a866777a8 * [xtro] Fix generation of .pch files * [xtro] Fix deprecated check to handle (anonymous) declarations and enable latest C# syntax in project * [xtro] Fix _sanity_ checks * [xtro] Update todo for beta 1 * [Siminstaller] Force siminstaller to use the xcode 12.5 url Related issue: https://github.com/xamarin/xamarin-macios/issues/11881 * Fix introspection failures (due to [breaking] changes) * [tests][intro] Fix hang for tvOS Creating an instance of `NSMetadataQuery` hangs the simulator. Even after (xharness) timeout the simulator is not in a good state to run further tests and every new (tvOS) test will also hang... * [tests][intro] Same hang for watchOS except that further test execution does not seem affected (like tvOS) ``` CoreSimulator 772.1 - Device: Apple Watch Series 3 - 38mm (watchOS 8.0) - created by XHarness (42262867-E060-40C0-803E-6DA676AF50CC) - Runtime: watchOS 8.0 (19R5266p) - DeviceType: Apple Watch Series 3 - 38mm Thread 0 Crashed:: tid_103 Dispatch queue: com.apple.main-thread 0 com.apple.Foundation 0x00007fff21470bd0 -[NSMetadataQuery dealloc] + 432 1 libobjc.A.dylib 0x00007fff200d11f7 objc_object::sidetable_release(bool, bool) + 177 2 com.apple.Foundation 0x00007fff21470a03 -[NSMetadataQuery init] + 64 3 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107efc139 xamarin_dyn_objc_msgSend + 217 (trampolines-x86_64-objc_msgSend.s:15) 4 ??? 0x000000010c76d4f6 0 + 4504081654 5 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107cffc85 mono_jit_runtime_invoke + 1621 (mini-runtime.c:3197) 6 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 do_runtime_invoke + 54 (object.c:3052) [inlined] 7 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 mono_runtime_invoke_checked + 136 (object.c:3220) 8 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e1e3c5 mono_runtime_try_invoke_array + 2101 (object.c:5601) 9 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107daf977 ves_icall_InternalInvoke + 871 (icall.c:3927) 10 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107dc0167 ves_icall_InternalInvoke_raw + 103 (icall-def.h:667) 11 ??? 0x000000010a232799 0 + 4465043353 12 ??? 0x000000010c76e08b 0 + 4504084619 ``` * [tests][monotouch-test] Fix failures with xcode 13 beta 1 * [tests][mmptest] Use a FAT framework that's build with x86_64 and arm64 Co-authored-by: Alex Soto <alex@alexsoto.me> Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com> Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-06-11 03:07:20 +03:00
$(SHARPIE) sdk-db --xcode $(XCODE) -s macosx$(OSX_SDK_VERSION) -a $(XMAC_ARCH) -exclude RealityKit -exclude JavaNativeFoundation
2016-05-26 16:06:52 +03:00
XCAT ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/64bits/MacCatalyst/Xamarin.MacCatalyst.dll
XCAT_GL ?=
XCAT_ARCH = x86_64
XCAT_PCH = ios$(MACCATALYST_SDK_VERSION)-macabi-$(XCAT_ARCH).pch
$(XCAT_PCH): .stamp-check-sharpie
$(SHARPIE) sdk-db --xcode $(XCODE) -s ios$(MACCATALYST_SDK_VERSION)-macabi -a $(XCAT_ARCH) \
-exclude AGL \
-exclude CalendarStore \
-exclude Carbon \
-exclude ClockKit \
-exclude DiscRecordingUI \
-exclude GLKit \
-exclude ICADevices \
-exclude InputMethodKit \
-exclude InstallerPlugins \
-exclude IOBluetooth \
-exclude IOBluetoothUI \
-exclude JavaNativeFoundation \
-exclude LDAP \
-exclude Python \
-exclude Quartz \
Bump to Xcode 13 beta 1. (#11861) * Bump maccore. New commits in xamarin/maccore: * xamarin/maccore@9acbbed1f6 [mlaunch] Add support for Xcode 13 beta 1. (#2452) * xamarin/maccore@e48f75c0b6 [Xamarin.Hosting] Fix the --stdout arg not being forwarded to DeviceLaunchConfig (#2435) * xamarin/maccore@109c695b1b [Xamarin.Hosting] Fix help string for launchdev argument (#2429) Diff: https://github.com/xamarin/maccore/compare/cddbd1915dcb27d8bf2d9b3b9cc4aeb22785698e..9acbbed1f60788349c60437dba11531a866777a8 * [xtro] Fix generation of .pch files * [xtro] Fix deprecated check to handle (anonymous) declarations and enable latest C# syntax in project * [xtro] Fix _sanity_ checks * [xtro] Update todo for beta 1 * [Siminstaller] Force siminstaller to use the xcode 12.5 url Related issue: https://github.com/xamarin/xamarin-macios/issues/11881 * Fix introspection failures (due to [breaking] changes) * [tests][intro] Fix hang for tvOS Creating an instance of `NSMetadataQuery` hangs the simulator. Even after (xharness) timeout the simulator is not in a good state to run further tests and every new (tvOS) test will also hang... * [tests][intro] Same hang for watchOS except that further test execution does not seem affected (like tvOS) ``` CoreSimulator 772.1 - Device: Apple Watch Series 3 - 38mm (watchOS 8.0) - created by XHarness (42262867-E060-40C0-803E-6DA676AF50CC) - Runtime: watchOS 8.0 (19R5266p) - DeviceType: Apple Watch Series 3 - 38mm Thread 0 Crashed:: tid_103 Dispatch queue: com.apple.main-thread 0 com.apple.Foundation 0x00007fff21470bd0 -[NSMetadataQuery dealloc] + 432 1 libobjc.A.dylib 0x00007fff200d11f7 objc_object::sidetable_release(bool, bool) + 177 2 com.apple.Foundation 0x00007fff21470a03 -[NSMetadataQuery init] + 64 3 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107efc139 xamarin_dyn_objc_msgSend + 217 (trampolines-x86_64-objc_msgSend.s:15) 4 ??? 0x000000010c76d4f6 0 + 4504081654 5 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107cffc85 mono_jit_runtime_invoke + 1621 (mini-runtime.c:3197) 6 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 do_runtime_invoke + 54 (object.c:3052) [inlined] 7 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 mono_runtime_invoke_checked + 136 (object.c:3220) 8 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e1e3c5 mono_runtime_try_invoke_array + 2101 (object.c:5601) 9 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107daf977 ves_icall_InternalInvoke + 871 (icall.c:3927) 10 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107dc0167 ves_icall_InternalInvoke_raw + 103 (icall-def.h:667) 11 ??? 0x000000010a232799 0 + 4465043353 12 ??? 0x000000010c76e08b 0 + 4504084619 ``` * [tests][monotouch-test] Fix failures with xcode 13 beta 1 * [tests][mmptest] Use a FAT framework that's build with x86_64 and arm64 Co-authored-by: Alex Soto <alex@alexsoto.me> Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com> Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-06-11 03:07:20 +03:00
-exclude QuickLookUI \
-exclude RealityKit \
-exclude SecurityInterface \
Bump to Xcode 13 beta 1. (#11861) * Bump maccore. New commits in xamarin/maccore: * xamarin/maccore@9acbbed1f6 [mlaunch] Add support for Xcode 13 beta 1. (#2452) * xamarin/maccore@e48f75c0b6 [Xamarin.Hosting] Fix the --stdout arg not being forwarded to DeviceLaunchConfig (#2435) * xamarin/maccore@109c695b1b [Xamarin.Hosting] Fix help string for launchdev argument (#2429) Diff: https://github.com/xamarin/maccore/compare/cddbd1915dcb27d8bf2d9b3b9cc4aeb22785698e..9acbbed1f60788349c60437dba11531a866777a8 * [xtro] Fix generation of .pch files * [xtro] Fix deprecated check to handle (anonymous) declarations and enable latest C# syntax in project * [xtro] Fix _sanity_ checks * [xtro] Update todo for beta 1 * [Siminstaller] Force siminstaller to use the xcode 12.5 url Related issue: https://github.com/xamarin/xamarin-macios/issues/11881 * Fix introspection failures (due to [breaking] changes) * [tests][intro] Fix hang for tvOS Creating an instance of `NSMetadataQuery` hangs the simulator. Even after (xharness) timeout the simulator is not in a good state to run further tests and every new (tvOS) test will also hang... * [tests][intro] Same hang for watchOS except that further test execution does not seem affected (like tvOS) ``` CoreSimulator 772.1 - Device: Apple Watch Series 3 - 38mm (watchOS 8.0) - created by XHarness (42262867-E060-40C0-803E-6DA676AF50CC) - Runtime: watchOS 8.0 (19R5266p) - DeviceType: Apple Watch Series 3 - 38mm Thread 0 Crashed:: tid_103 Dispatch queue: com.apple.main-thread 0 com.apple.Foundation 0x00007fff21470bd0 -[NSMetadataQuery dealloc] + 432 1 libobjc.A.dylib 0x00007fff200d11f7 objc_object::sidetable_release(bool, bool) + 177 2 com.apple.Foundation 0x00007fff21470a03 -[NSMetadataQuery init] + 64 3 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107efc139 xamarin_dyn_objc_msgSend + 217 (trampolines-x86_64-objc_msgSend.s:15) 4 ??? 0x000000010c76d4f6 0 + 4504081654 5 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107cffc85 mono_jit_runtime_invoke + 1621 (mini-runtime.c:3197) 6 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 do_runtime_invoke + 54 (object.c:3052) [inlined] 7 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e177d8 mono_runtime_invoke_checked + 136 (object.c:3220) 8 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107e1e3c5 mono_runtime_try_invoke_array + 2101 (object.c:5601) 9 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107daf977 ves_icall_InternalInvoke + 871 (icall.c:3927) 10 com.xamarin.introspection_watch.watchkitapp.watchkitextension 0x0000000107dc0167 ves_icall_InternalInvoke_raw + 103 (icall-def.h:667) 11 ??? 0x000000010a232799 0 + 4465043353 12 ??? 0x000000010c76e08b 0 + 4504084619 ``` * [tests][monotouch-test] Fix failures with xcode 13 beta 1 * [tests][mmptest] Use a FAT framework that's build with x86_64 and arm64 Co-authored-by: Alex Soto <alex@alexsoto.me> Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com> Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-06-11 03:07:20 +03:00
-exclude Virtualization \
ios-$(IOS_SDK_VERSION).g.cs: $(XIOS_PCH)
ifdef INCLUDE_IOS
gen-ios: ios-$(IOS_SDK_VERSION).g.cs .stamp-check-sharpie
$(SHARPIE) query -bind $(XIOS_PCH) > ios-$(IOS_SDK_VERSION).g.cs
else
gen-ios: ; @true
endif
tvos-$(TVOS_SDK_VERSION).g.cs: $(XTVOS_PCH)
ifdef INCLUDE_TVOS
gen-tvos: tvos-$(TVOS_SDK_VERSION).g.cs .stamp-check-sharpie
$(SHARPIE) query -bind $(XTVOS_PCH) > tvos-$(TVOS_SDK_VERSION).g.cs
else
gen-tvos: ; @true
endif
watchos-$(WATCH_SDK_VERSION).g.cs: $(XWATCHOS_PCH)
ifdef INCLUDE_WATCH
gen-watchos: watchos-$(WATCH_SDK_VERSION).g.cs .stamp-check-sharpie
$(SHARPIE) query -bind $(XWATCHOS_PCH) > watchos-$(WATCH_SDK_VERSION).g.cs
else
gen-watchos: ; @true
endif
macos-$(OSX_SDK_VERSION).g.cs: $(XMAC_PCH)
ifdef INCLUDE_MAC
gen-macos: macos-$(OSX_SDK_VERSION).g.cs .stamp-check-sharpie
$(SHARPIE) query -bind $(XMAC_PCH) > macos-$(OSX_SDK_VERSION).g.cs
else
gen-macos: ; @true
endif
maccatalyst-$(MACCATALYST_SDK_VERSION).g.cs: $(XCAT_PCH)
ifdef INCLUDE_MACCATALYST
gen-maccatalyst: maccatalyst-$(MACCATALYST_SDK_VERSION).g.cs .stamp-check-sharpie
$(SHARPIE) query -bind $(XCAT_PCH) > maccatalyst-$(MACCATALYST_SDK_VERSION).g.cs
else
gen-maccatalyst: ; @true
endif
gen-all: gen-ios gen-tvos gen-watchos gen-macos gen-maccatalyst
wrench: classify
report: build
rm -rf report/
$(MONO) xtro-report/bin/Debug/xtro-report.exe .
report-short:
JENKINS_SERVER_COOKIE=1 make report
ifdef INCLUDE_IOS
classify-ios:
$(MONO) bin/Debug/xtro-sharpie.exe $(XIOS_PCH) $(XIOS) $(XIOS_GL)
else
classify-ios: ; @true
endif
ifdef INCLUDE_TVOS
classify-tvos:
$(MONO) bin/Debug/xtro-sharpie.exe $(XTVOS_PCH) $(XTVOS) $(XTVOS_GL)
else
classify-tvos: ; @true
endif
ifdef INCLUDE_WATCH
classify-watchos:
$(MONO) bin/Debug/xtro-sharpie.exe $(XWATCHOS_PCH) $(XWATCHOS)
else
classify-watchos: ; @true
endif
ifdef INCLUDE_MAC
classify-macos:
$(MONO) bin/Debug/xtro-sharpie.exe $(XMAC_PCH) $(XMAC)
else
classify-macos: ; @true
endif
ifdef INCLUDE_MACCATALYST
classify-maccatalyst: bin/Debug/xtro-sharpie.exe $(XCAT_PCH)
$(MONO) bin/Debug/xtro-sharpie.exe $(XCAT_PCH) $(XCAT)
else
classify-maccatalyst: ; @true
endif
classify: build $(XIOS_PCH) $(XWATCHOS_PCH) $(XTVOS_PCH) $(XMAC_PCH) $(XCAT_PCH)
rm -f *.unclassified
$(MAKE) -j8 classify-ios classify-tvos classify-watchos classify-macos classify-maccatalyst
$(MONO) xtro-sanity/bin/Debug/xtro-sanity.exe .
rm -f *.raw
insane:
XTRO_SANITY_SKIP=1 make all
remove-empty:
find . -size 0 | xargs git rm
all: classify report
.stamp-check-sharpie:
@$(TOP)/system-dependencies.sh --ignore-all --enforce-sharpie
@touch $@
remove-empty-files:
find . -empty -exec git rm -f {} \;
unclassified2todo:
$(SYSTEM_CSC) -features:strict Filter.cs u2todo/u2todo.cs
$(MONO) u2todo.exe
@for filename in $(git status -s | cut -c4- | grep .todo); do \
sort -o "$filename" "$filename"; \
done