xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.49k stars 515 forks source link

.NET 7.0: ${ProjectDir} not expanded when part of <MtouchExtraArgs> #18595

Closed projectgoav closed 1 year ago

projectgoav commented 1 year ago

Steps to Reproduce

  1. Create a default ios project targetting .net7.0-ios
  2. Add the following to csproj: <MtouchExtraArgs>-gcc_flags "-force-load ${ProjectDir}/mylib.a"</MtouchExtraArgs>
  3. Build - clang++ exited with code 1: ld: file not found ${ProjectDir}/myLib

Expected Behavior

${ProjectDir} is expanded to path. This has worked in older Xamarin.iOS projects. Was discovered as part of an upgrade to .net7.0 (first time we've migrated our app from Xamarin.iOS).

This also happens when using ${MSBuildProjectDirectory} variable.

This happens regardless of if mylib.a exists or not.

Actual Behavior

${ProjectDir} remains unexpanded.

Environment

Version information ``` Visual Studio Community 2022 for Mac Version 17.6.1 (build 452) Installation UUID: 3bf64a5f-0038-4d3e-8dac-e1f102f4f4fa Runtime .NET 7.0.3 (64-bit) Architecture: Arm64 Microsoft.macOS.Sdk 13.1.1007; git-rev-head:8afca776a0a96613dfb7200e0917bb57f9ed5583; git-branch:release/7.0.1xx-xcode14.2 Roslyn (Language Service) 4.6.0-3.23180.6+99e956e42697a6dd886d1e12478ea2b27cceacfa NuGet Version: 6.4.0.117 .NET SDK (Arm64) SDK: /usr/local/share/dotnet/sdk/7.0.306/Sdks SDK Versions: 7.0.306 7.0.304 7.0.101 6.0.412 6.0.410 6.0.404 6.0.402 6.0.401 MSBuild SDKs: /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Sdks .NET SDK (x64) SDK Versions: 6.0.412 6.0.410 6.0.404 6.0.402 6.0.106 6.0.103 6.0.102 6.0.101 5.0.408 5.0.406 5.0.405 5.0.404 3.1.426 3.1.424 3.1.423 3.1.420 3.1.417 3.1.416 .NET Runtime (Arm64) Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 7.0.9 7.0.7 7.0.1 6.0.20 6.0.18 6.0.12 6.0.10 6.0.9 .NET Runtime (x64) Runtime: /usr/local/share/dotnet/x64/dotnet Runtime Versions: 6.0.20 6.0.18 6.0.12 6.0.10 6.0.6 6.0.3 6.0.2 6.0.1 5.0.17 5.0.15 5.0.14 5.0.13 3.1.32 3.1.30 3.1.29 3.1.26 3.1.23 3.1.22 Xamarin.Profiler Version: 1.8.0.49 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler Updater Version: 11 Apple Developer Tools Xcode: 14.3.1 21815 Build: 14E300c Xamarin.Mac Version: 9.3.0.6 Visual Studio Community Hash: 97731c92c Branch: xcode14.3 Build date: 2023-04-11 22:38:35-0400 Xamarin.iOS Version: 16.4.0.6 Visual Studio Community Hash: 97731c92c Branch: xcode14.3 Build date: 2023-04-11 22:38:36-0400 Xamarin Designer Version: 17.6.3.9 Hash: 2648399ae8 Branch: remotes/origin/d17-6 Build date: 2023-07-06 12:51:51 UTC Xamarin.Android Version: 13.2.0.6 (Visual Studio Community) Commit: xamarin-android/d17-5/a200af1 Android SDK: /Users/ewanm/Library/Android/sdk Supported Android versions: 12.1 (API level 32) 12.0 (API level 31) 11.0 (API level 30) 9.0 (API level 28) SDK Command-line Tools Version: 7.0 SDK Platform Tools Version: 33.0.3 SDK Build Tools Version: 32.1.0 rc1 Build Information: Mono: 6dd9def Java.Interop: xamarin/java.interop/d17-5@149d70fe SQLite: xamarin/sqlite/3.40.1@68c69d8 Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-5@9f02d77 Microsoft Build of OpenJDK Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk 11.0.16.1 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL Eclipse Temurin JDK Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk 1.8.0.302 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL Android SDK Manager Version: 17.6.0.50 Hash: a715dca Branch: HEAD Build date: 2023-07-06 12:51:55 UTC Android Device Manager Version: 0.0.0.1309 Hash: 06e3e77 Branch: HEAD Build date: 2023-07-06 12:51:55 UTC Build Information Release ID: 1706010452 Git revision: 9c61cec4d4c4498378f5878b08459d6fd258659d Build date: 2023-07-06 12:50:14+00 Build branch: release-17.6 Build lane: release-17.6 Operating System Mac OS X 13.4.1 Darwin 22.5.0 Darwin Kernel Version 22.5.0 Thu Jun 8 22:22:20 PDT 2023 root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 arm64 ```

Build Logs

Build Log ``` Target _LinkNativeExecutable: Tool xcrun execution started with arguments: clang++ -Lobj/Debug/net7.0-ios/iossimulator-x64/nativelibraries -lSystem.IO.Compression.Native -lSystem.Native -lSystem.Net.Security.Native -lSystem.Security.Cryptography.Native.Apple -lmono-component-debugger -lmono-component-diagnostics_tracing -lmono-component-hot_reload -lmonosgen-2.0 -lxamarin-dotnet-debug -miphonesimulator-version-min=13.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -arch x86_64 -L/usr/local/share/dotnet/packs/Microsoft.iOS.Runtime.iossimulator-x64/16.4.7089/runtimes/iossimulator-x64/native -lxamarin-dotnet-debug -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.IO.Compression.Native -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.Native -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.Net.Security.Native -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.Security.Cryptography.Native.Apple -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmono-component-debugger -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmono-component-diagnostics_tracing -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmono-component-hot_reload -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmonosgen-2.0 /usr/local/share/dotnet/packs/Microsoft.iOS.Runtime.iossimulator-x64/16.4.7089/runtimes/iossimulator-x64/native/Microsoft.iOS.registrar.a -rpath @executable_path -framework Accelerate -framework Accounts -framework AddressBook -framework AddressBookUI -framework AdSupport -framework ARKit -framework AssetsLibrary -framework AudioToolbox -framework AuthenticationServices -framework AVFoundation -framework AVKit -framework BackgroundTasks -framework BusinessChat -framework CallKit -framework CarPlay -framework CFNetwork -framework ClassKit -framework CloudKit -framework Contacts -framework ContactsUI -framework CoreAudioKit -framework CoreBluetooth -framework CoreData -framework CoreFoundation -framework CoreGraphics -framework CoreHaptics -framework CoreImage -framework CoreLocation -framework CoreMedia -framework CoreMIDI -framework CoreML -framework CoreMotion -framework CoreSpotlight -framework CoreTelephony -framework CoreText -framework CoreVideo -framework DeviceCheck -framework EventKit -framework EventKitUI -framework ExternalAccessory -framework FileProvider -framework FileProviderUI -framework Foundation -framework GameController -framework GameKit -framework GameplayKit -framework GLKit -framework HealthKit -framework HealthKitUI -framework HomeKit -framework IdentityLookup -framework IdentityLookupUI -framework ImageIO -framework Intents -framework IntentsUI -framework JavaScriptCore -framework LinkPresentation -framework LocalAuthentication -framework MapKit -framework MediaAccessibility -framework MediaPlayer -framework MediaToolbox -framework Messages -framework MessageUI -framework Metal -framework MetalKit -framework MetalPerformanceShaders -framework MetricKit -framework MobileCoreServices -framework ModelIO -framework MultipeerConnectivity -framework NaturalLanguage -framework Network -framework NetworkExtension -framework NewsstandKit -framework NotificationCenter -framework OpenGLES -framework PassKit -framework PDFKit -framework PencilKit -framework Photos -framework PhotosUI -framework PushKit -framework QuartzCore -framework QuickLook -framework QuickLookThumbnailing -framework ReplayKit -framework SafariServices -framework SceneKit -framework Security -framework Social -framework SoundAnalysis -framework Speech -framework SpriteKit -framework StoreKit -framework SystemConfiguration -framework Twitter -framework UIKit -framework UserNotifications -framework UserNotificationsUI -framework VideoSubscriberAccount -framework VideoToolbox -framework Vision -framework VisionKit -framework WatchConnectivity -framework WebKit -weak_framework Accessibility -weak_framework AdServices -weak_framework AppClip -weak_framework AppTrackingTransparency -weak_framework AutomaticAssessmentConfiguration -weak_framework AVRouting -weak_framework BackgroundAssets -weak_framework CoreLocationUI -weak_framework MetalPerformanceShadersGraph -weak_framework NearbyInteraction -weak_framework OSLog -weak_framework PushToTalk -weak_framework ScreenTime -weak_framework SensorKit -weak_framework SharedWithYou -weak_framework SharedWithYouCore -weak_framework UniformTypeIdentifiers -framework GSS -framework CFNetwork /Users/ewanm/Projects/Net60Test/Net60Test/obj/Debug/net7.0-ios/iossimulator-x64/nativelibraries/main.x86_64.o -o /Users/ewanm/Projects/Net60Test/Net60Test/obj/Debug/net7.0-ios/iossimulator-x64/nativelibraries/Net60Test -lcompression -u_xamarin_CGPoint__VNNormalizedFaceBoundingBoxPointForLandmarkPoint_Vector2_CGRect_nuint_nuint_string -u_xamarin_CGPoint__VNImagePointForFaceLandmarkPoint_Vector2_CGRect_nuint_nuint_string -u_xamarin_release_managed_ref -u_xamarin_set_gchandle_with_flags_safe -u_xamarin_localized_string_format -u_xamarin_localized_string_format_1 -u_xamarin_localized_string_format_2 -u_xamarin_localized_string_format_3 -u_xamarin_localized_string_format_4 -u_xamarin_localized_string_format_5 -u_xamarin_localized_string_format_6 -u_xamarin_localized_string_format_7 -u_xamarin_localized_string_format_8 -u_xamarin_localized_string_format_9 -u_xamarin_init_nsthread -u_xamarin_os_log -u_xamarin_UIApplicationMain -u_xamarin_locate_assembly_resource -u_xamarin_switch_gchandle -u_xamarin_mono_object_retain -u_xamarin_find_protocol_wrapper_type -u_xamarin_log -u_xamarin_release_block_on_main_thread -u_xamarin_get_original_working_directory_path -u_xamarin_get_runtime_arch -u_xamarin_start_wwan -u_xamarin_get_block_descriptor -u_xamarin_simd__NMatrix4_objc_msgSend -u_xamarin_simd__NMatrix4_objc_msgSendSuper -u_xamarin_simd__NMatrix4_objc_msgSend_stret -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSend -u_xamarin_simd__NVector3_objc_msgSendSuper -u_xamarin_simd__NVector3_objc_msgSend_stret -u_xamarin_simd__NVector3_objc_msgSendSuper_stret -u_xamarin_simd__NMatrix3_objc_msgSend -u_xamarin_simd__NMatrix3_objc_msgSendSuper -u_xamarin_simd__NMatrix3_objc_msgSend_stret -u_xamarin_simd__NMatrix3_objc_msgSendSuper_stret -u_xamarin_simd__CGPoint_objc_msgSend_NVector3_IntPtr_CGSize -u_xamarin_simd__CGPoint_objc_msgSendSuper_NVector3_IntPtr_CGSize -u_xamarin_simd__CGPoint_objc_msgSend_stret_NVector3_IntPtr_CGSize -u_xamarin_simd__CGPoint_objc_msgSendSuper_stret_NVector3_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSend_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSendSuper_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSend_stret_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSendSuper_stret_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NMatrix4_objc_msgSend_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSendSuper_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSend_stret_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSend_IntPtr -u_xamarin_simd__NMatrix4_objc_msgSendSuper_IntPtr -u_xamarin_simd__NMatrix4_objc_msgSend_stret_IntPtr -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSend_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NVector3_NVector3_IntPtr_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector3_NVector3_IntPtr_IntPtr -u_xamarin_simd__NVector3_objc_msgSend_CGPoint_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSendSuper_CGPoint_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSend_stret_CGPoint_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSendSuper_stret_CGPoint_NMatrix4 -u_xamarin_simd__void_objc_msgSend_NMatrix4 -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4 -u_xamarin_simd__void_objc_msgSend_NMatrix4_NVector3_NVector3_NativeHandle -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4_NVector3_NVector3_NativeHandle -u_xamarin_simd__void_objc_msgSend_NVector3_NativeHandle -u_xamarin_simd__void_objc_msgSendSuper_NVector3_NativeHandle -u_xamarin_simd__Vector2_objc_msgSend_NativeHandle -u_xamarin_simd__Vector2_objc_msgSendSuper_NativeHandle -u_xamarin_simd__Vector2_objc_msgSend_stret_NativeHandle -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSend_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSendSuper_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSend_stret_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_NativeHandle -u_xamarin_simd__NMatrix4x3_objc_msgSend -u_xamarin_simd__NMatrix4x3_objc_msgSendSuper -u_xamarin_simd__NMatrix4x3_objc_msgSend_stret -u_xamarin_simd__NMatrix4x3_objc_msgSendSuper_stret -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_exception -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_IntPtr_IntPtr_IntPtr_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_IntPtr_IntPtr_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_UIntPtr_IntPtr_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_IntPtr_UIntPtr_exception -u_xamarin_simd__Vector2_objc_msgSend -u_xamarin_simd__Vector2_objc_msgSendSuper -u_xamarin_simd__Vector2_objc_msgSend_stret -u_xamarin_simd__Vector2_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_Vector2 -u_xamarin_simd__void_objc_msgSendSuper_Vector2 -u_xamarin_simd__Vector3_objc_msgSend -u_xamarin_simd__Vector3_objc_msgSendSuper -u_xamarin_simd__Vector3_objc_msgSend_stret -u_xamarin_simd__Vector3_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_Vector3 -u_xamarin_simd__void_objc_msgSendSuper_Vector3 -u_xamarin_simd__void_objc_msgSend_NMatrix3 -u_xamarin_simd__void_objc_msgSendSuper_NMatrix3 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3 -u_xamarin_simd__NVector2i_objc_msgSend -u_xamarin_simd__NVector2i_objc_msgSendSuper -u_xamarin_simd__NVector2i_objc_msgSend_stret -u_xamarin_simd__NVector2i_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2i_int_int_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2i_int_int_bool -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2i_int_int_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2i_int_int_bool_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_NVector2i -u_xamarin_simd__IntPtr_objc_msgSendSuper_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_Vector2_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_Vector2_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_Vector2 -u_xamarin_simd__GKTriangle_objc_msgSend_UIntPtr -u_xamarin_simd__GKTriangle_objc_msgSendSuper_UIntPtr -u_xamarin_simd__GKTriangle_objc_msgSend_stret_UIntPtr -u_xamarin_simd__GKTriangle_objc_msgSendSuper_stret_UIntPtr -u_xamarin_simd__float_objc_msgSend_Vector2 -u_xamarin_simd__float_objc_msgSendSuper_Vector2 -u_xamarin_simd__void_objc_msgSend_NVector3d -u_xamarin_simd__void_objc_msgSendSuper_NVector3d -u_xamarin_simd__NVector2d_objc_msgSend -u_xamarin_simd__NVector2d_objc_msgSendSuper -u_xamarin_simd__NVector2d_objc_msgSend_stret -u_xamarin_simd__NVector2d_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NVector2d_NVector2d_NVector2i_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NVector2d_NVector2d_NVector2i_bool -u_xamarin_simd__float_objc_msgSend_NVector2i -u_xamarin_simd__float_objc_msgSendSuper_NVector2i -u_xamarin_simd__void_objc_msgSend_float_NVector2i -u_xamarin_simd__void_objc_msgSendSuper_float_NVector2i -u_xamarin_simd__GKBox_objc_msgSend -u_xamarin_simd__GKBox_objc_msgSendSuper -u_xamarin_simd__GKBox_objc_msgSend_stret -u_xamarin_simd__GKBox_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_GKBox_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKBox_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_GKBox -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_GKBox -u_xamarin_simd__NativeHandle_objc_msgSend_GKBox -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKBox -u_xamarin_simd__Vector2_objc_msgSend_UIntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_UIntPtr -u_xamarin_simd__Vector2_objc_msgSend_stret_UIntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_UIntPtr -u_xamarin_simd__Vector3_objc_msgSend_UIntPtr -u_xamarin_simd__Vector3_objc_msgSendSuper_UIntPtr -u_xamarin_simd__Vector3_objc_msgSend_stret_UIntPtr -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_UIntPtr -u_xamarin_simd__NativeHandle_objc_msgSend_GKQuad_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKQuad_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Vector2_exception -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Vector2_exception -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_GKQuad -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_GKQuad -u_xamarin_simd__NativeHandle_objc_msgSend_GKQuad -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKQuad -u_xamarin_simd__GKQuad_objc_msgSend -u_xamarin_simd__GKQuad_objc_msgSendSuper -u_xamarin_simd__GKQuad_objc_msgSend_stret -u_xamarin_simd__GKQuad_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NativeHandle_Vector2_Vector2_IntPtr -u_xamarin_simd__void_objc_msgSendSuper_NativeHandle_Vector2_Vector2_IntPtr -u_xamarin_simd__void_objc_msgSend_NativeHandle_Vector2_Vector2 -u_xamarin_simd__void_objc_msgSendSuper_NativeHandle_Vector2_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector2_Vector2_exception -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector2_Vector2_exception -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSend -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSendSuper -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSend_stret -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSendSuper_stret -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSend -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSendSuper -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSend_stret -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSendSuper_stret -u_xamarin_simd__Vector4_objc_msgSend -u_xamarin_simd__Vector4_objc_msgSendSuper -u_xamarin_simd__Vector4_objc_msgSend_stret -u_xamarin_simd__Vector4_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_Vector4 -u_xamarin_simd__void_objc_msgSendSuper_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_ref_MPSImageHistogramInfo -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_ref_MPSImageHistogramInfo -u_xamarin_simd__void_objc_msgSend_NMatrix4_Double -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4_Double -u_xamarin_simd__void_objc_msgSend_NMatrix4d_Double -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4d_Double -u_xamarin_simd__NMatrix4_objc_msgSend_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_Double -u_xamarin_simd__NMatrix4_objc_msgSend_stret_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_Double -u_xamarin_simd__NMatrix4d_objc_msgSend_Double -u_xamarin_simd__NMatrix4d_objc_msgSendSuper_Double -u_xamarin_simd__NMatrix4d_objc_msgSend_stret_Double -u_xamarin_simd__NMatrix4d_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Quaternion_Double -u_xamarin_simd__void_objc_msgSendSuper_Quaternion_Double -u_xamarin_simd__void_objc_msgSend_NQuaterniond_Double -u_xamarin_simd__void_objc_msgSendSuper_NQuaterniond_Double -u_xamarin_simd__Quaternion_objc_msgSend_Double -u_xamarin_simd__Quaternion_objc_msgSendSuper_Double -u_xamarin_simd__Quaternion_objc_msgSend_stret_Double -u_xamarin_simd__Quaternion_objc_msgSendSuper_stret_Double -u_xamarin_simd__NQuaterniond_objc_msgSend_Double -u_xamarin_simd__NQuaterniond_objc_msgSendSuper_Double -u_xamarin_simd__NQuaterniond_objc_msgSend_stret_Double -u_xamarin_simd__NQuaterniond_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Vector2_Double -u_xamarin_simd__void_objc_msgSendSuper_Vector2_Double -u_xamarin_simd__void_objc_msgSend_NVector2d_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector2d_Double -u_xamarin_simd__Vector2_objc_msgSend_Double -u_xamarin_simd__Vector2_objc_msgSendSuper_Double -u_xamarin_simd__Vector2_objc_msgSend_stret_Double -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_Double -u_xamarin_simd__NVector2d_objc_msgSend_Double -u_xamarin_simd__NVector2d_objc_msgSendSuper_Double -u_xamarin_simd__NVector2d_objc_msgSend_stret_Double -u_xamarin_simd__NVector2d_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_NVector3_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector3_Double -u_xamarin_simd__void_objc_msgSend_NVector3d_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector3d_Double -u_xamarin_simd__NVector3_objc_msgSend_Double -u_xamarin_simd__NVector3_objc_msgSendSuper_Double -u_xamarin_simd__NVector3_objc_msgSend_stret_Double -u_xamarin_simd__NVector3_objc_msgSendSuper_stret_Double -u_xamarin_simd__NVector3d_objc_msgSend_Double -u_xamarin_simd__NVector3d_objc_msgSendSuper_Double -u_xamarin_simd__NVector3d_objc_msgSend_stret_Double -u_xamarin_simd__NVector3d_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Vector4_Double -u_xamarin_simd__void_objc_msgSendSuper_Vector4_Double -u_xamarin_simd__void_objc_msgSend_NVector4d_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector4d_Double -u_xamarin_simd__Vector4_objc_msgSend_Double -u_xamarin_simd__Vector4_objc_msgSendSuper_Double -u_xamarin_simd__Vector4_objc_msgSend_stret_Double -u_xamarin_simd__Vector4_objc_msgSendSuper_stret_Double -u_xamarin_simd__NVector4d_objc_msgSend_Double -u_xamarin_simd__NVector4d_objc_msgSendSuper_Double -u_xamarin_simd__NVector4d_objc_msgSend_stret_Double -u_xamarin_simd__NVector4d_objc_msgSendSuper_stret_Double -u_xamarin_simd__NMatrix4d_objc_msgSend -u_xamarin_simd__NMatrix4d_objc_msgSendSuper -u_xamarin_simd__NMatrix4d_objc_msgSend_stret -u_xamarin_simd__NMatrix4d_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NMatrix4d -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4d -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_stret -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NVector3 -u_xamarin_simd__void_objc_msgSendSuper_NVector3 -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_Double -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_Double -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_stret_Double -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_MDLAxisAlignedBoundingBox_bool -u_xamarin_simd__void_objc_msgSendSuper_MDLAxisAlignedBoundingBox_bool -u_xamarin_simd__void_objc_msgSend_Vector3_Vector3 -u_xamarin_simd__void_objc_msgSendSuper_Vector3_Vector3 -u_xamarin_simd__Vector3_objc_msgSend_NVector2i_NVector2i -u_xamarin_simd__Vector3_objc_msgSendSuper_NVector2i_NVector2i -u_xamarin_simd__Vector3_objc_msgSend_stret_NVector2i_NVector2i -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_NVector2i_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_bool_NativeHandle_NVector2i_IntPtr_UIntPtr_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_bool_NativeHandle_NVector2i_IntPtr_UIntPtr_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSend_float_NativeHandle_NVector2i_int_IntPtr_NativeHandle_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_NativeHandle_NVector2i_int_IntPtr_NativeHandle_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_float_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_float_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_NMatrix4 -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector3i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector3i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_bool_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_bool_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_int_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_int_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_int_UInt32_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_int_UInt32_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3_NVector3i_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3_NVector3i_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_Vector2_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector2_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3_UIntPtr_UIntPtr_IntPtr_bool_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3_UIntPtr_UIntPtr_IntPtr_bool_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_UIntPtr_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_UIntPtr_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__bool_objc_msgSend_NVector2i_IntPtr_float_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__bool_objc_msgSendSuper_NVector2i_IntPtr_float_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__bool_objc_msgSend_NVector2i_NativeHandle_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__bool_objc_msgSendSuper_NVector2i_NativeHandle_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_float_NativeHandle_NVector2i_IntPtr -u_xamarin_simd__IntPtr_objc_msgSendSuper_float_NativeHandle_NVector2i_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSend_float_NativeHandle_NVector2i_int_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_NativeHandle_NVector2i_int_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_IntPtr_NVector2i_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NVector2i_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_IntPtr_NVector2i_float_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NVector2i_float_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NVector2i_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NVector2i_float -u_xamarin_simd__NativeHandle_objc_msgSend_NMatrix4_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NMatrix4_bool -u_xamarin_simd__Vector3_objc_msgSend_Double -u_xamarin_simd__Vector3_objc_msgSendSuper_Double -u_xamarin_simd__Vector3_objc_msgSend_stret_Double -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Vector3_Double -u_xamarin_simd__void_objc_msgSendSuper_Vector3_Double -u_xamarin_simd__NMatrix4_objc_msgSend_NativeHandle_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_NativeHandle_Double -u_xamarin_simd__NMatrix4_objc_msgSend_stret_NativeHandle_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_NativeHandle_Double -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSend -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSendSuper -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSend_stret -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_MDLAxisAlignedBoundingBox_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_MDLAxisAlignedBoundingBox_float -u_xamarin_simd__bool_objc_msgSend_NVector4i_bool_bool_bool_bool -u_xamarin_simd__bool_objc_msgSendSuper_NVector4i_bool_bool_bool_bool -u_xamarin_simd__void_objc_msgSend_NVector4i -u_xamarin_simd__void_objc_msgSendSuper_NVector4i -u_xamarin_simd__NativeHandle_objc_msgSend_MDLVoxelIndexExtent -u_xamarin_simd__NativeHandle_objc_msgSendSuper_MDLVoxelIndexExtent -u_xamarin_simd__NVector4i_objc_msgSend_Vector3 -u_xamarin_simd__NVector4i_objc_msgSendSuper_Vector3 -u_xamarin_simd__NVector4i_objc_msgSend_stret_Vector3 -u_xamarin_simd__NVector4i_objc_msgSendSuper_stret_Vector3 -u_xamarin_simd__Vector3_objc_msgSend_NVector4i -u_xamarin_simd__Vector3_objc_msgSendSuper_NVector4i -u_xamarin_simd__Vector3_objc_msgSend_stret_NVector4i -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_stret_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_stret_NVector4i -u_xamarin_simd__Quaternion_objc_msgSend -u_xamarin_simd__Quaternion_objc_msgSendSuper -u_xamarin_simd__Quaternion_objc_msgSend_stret -u_xamarin_simd__Quaternion_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Quaternion_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Quaternion_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Quaternion -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Quaternion -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2d_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2d_NativeHandle -u_xamarin_simd__void_objc_msgSend_NVector2d -u_xamarin_simd__void_objc_msgSendSuper_NVector2d -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2d_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2d_IntPtr -u_xamarin_simd__Vector3_objc_msgSend_Vector3 -u_xamarin_simd__Vector3_objc_msgSendSuper_Vector3 -u_xamarin_simd__Vector3_objc_msgSend_stret_Vector3 -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector4 -u_xamarin_vector_float3__Vector4_objc_msgSend -u_xamarin_vector_float3__Vector4_objc_msgSendSuper -u_xamarin_vector_float3__Vector4_objc_msgSend_stret -u_xamarin_vector_float3__Vector4_objc_msgSendSuper_stret -u_xamarin_vector_float3__void_objc_msgSend_Vector4 -u_xamarin_vector_float3__void_objc_msgSendSuper_Vector4 -u_xamarin_simd__void_objc_msgSend_Quaternion -u_xamarin_simd__void_objc_msgSendSuper_Quaternion -u_xamarin_simd__NMatrix2_objc_msgSend -u_xamarin_simd__NMatrix2_objc_msgSendSuper -u_xamarin_simd__NMatrix2_objc_msgSend_stret -u_xamarin_simd__NMatrix2_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NMatrix2 -u_xamarin_simd__void_objc_msgSendSuper_NMatrix2 -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_Vector2_exception -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_Vector2_exception -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_Vector3 -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_Vector3 -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_Vector4 -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix2 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Vector4 -u_xamarin_simd__Vector2_objc_msgSend_IntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_IntPtr -u_xamarin_simd__Vector2_objc_msgSend_stret_IntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_IntPtr -lz -liconv -lcompression -force_load ${ProjectDir}/mylib.a Tool xcrun execution finished (exit code = 1). ```

Example Project (If Possible)

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net7.0-ios</TargetFramework>
    <OutputType>Exe</OutputType>
    <ImplicitUsings>true</ImplicitUsings>
    <SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
   </PropertyGroup>

    <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
        <MtouchArch>x86_64</MtouchArch>
        <MtouchLink>None</MtouchLink>
        <MtouchDebug>true</MtouchDebug>
        <MtouchExtraArgs>-gcc_flags "-force_load ${ProjectDir}/mylib.a"</MtouchExtraArgs>
    </PropertyGroup>

</Project>
projectgoav commented 1 year ago

This also happens when using NativeReference with LinkerFlags

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net7.0-ios</TargetFramework>
    <OutputType>Exe</OutputType>
    <ImplicitUsings>true</ImplicitUsings>
    <SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
   </PropertyGroup>

    <ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
        <NativeReference Include="mylib">
            <Kind>Static</Kind>
            <ForceLoad>True</ForceLoad>
            <IsCxx>True</IsCxx>
            <LinkerFlags>-L${MSBuildProjectDirectory}</LinkerFlags>
        </NativeReference>
    </ItemGroup>

</Project>

Build Output:

Tool xcrun execution started with arguments: clang++ -force_load mylib -L${ProjectDir} -Lobj/Debug/net7.0-ios/iossimulator-x64/nativelibraries -lSystem.IO.Compression.Native -lSystem.Native -lSystem.Net.Security.Native -lSystem.Security.Cryptography.Native.Apple -lmono-component-debugger -lmono-component-diagnostics_tracing -lmono-component-hot_reload -lmonosgen-2.0 -lxamarin-dotnet-debug -miphonesimulator-version-min=13.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -arch x86_64 -L/usr/local/share/dotnet/packs/Microsoft.iOS.Runtime.iossimulator-x64/16.4.7089/runtimes/iossimulator-x64/native -lxamarin-dotnet-debug -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.IO.Compression.Native -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.Native -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.Net.Security.Native -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.Security.Cryptography.Native.Apple -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmono-component-debugger -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmono-component-diagnostics_tracing -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmono-component-hot_reload -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmonosgen-2.0 /usr/local/share/dotnet/packs/Microsoft.iOS.Runtime.iossimulator-x64/16.4.7089/runtimes/iossimulator-x64/native/Microsoft.iOS.registrar.a -rpath @executable_path -framework Accelerate -framework Accounts -framework AddressBook -framework AddressBookUI -framework AdSupport -framework ARKit -framework AssetsLibrary -framework AudioToolbox -framework AuthenticationServices -framework AVFoundation -framework AVKit -framework BackgroundTasks -framework BusinessChat -framework CallKit -framework CarPlay -framework CFNetwork -framework ClassKit -framework CloudKit -framework Contacts -framework ContactsUI -framework CoreAudioKit -framework CoreBluetooth -framework CoreData -framework CoreFoundation -framework CoreGraphics -framework CoreHaptics -framework CoreImage -framework CoreLocation -framework CoreMedia -framework CoreMIDI -framework CoreML -framework CoreMotion -framework CoreSpotlight -framework CoreTelephony -framework CoreText -framework CoreVideo -framework DeviceCheck -framework EventKit -framework EventKitUI -framework ExternalAccessory -framework FileProvider -framework FileProviderUI -framework Foundation -framework GameController -framework GameKit -framework GameplayKit -framework GLKit -framework HealthKit -framework HealthKitUI -framework HomeKit -framework IdentityLookup -framework IdentityLookupUI -framework ImageIO -framework Intents -framework IntentsUI -framework JavaScriptCore -framework LinkPresentation -framework LocalAuthentication -framework MapKit -framework MediaAccessibility -framework MediaPlayer -framework MediaToolbox -framework Messages -framework MessageUI -framework Metal -framework MetalKit -framework MetalPerformanceShaders -framework MetricKit -framework MobileCoreServices -framework ModelIO -framework MultipeerConnectivity -framework NaturalLanguage -framework Network -framework NetworkExtension -framework NewsstandKit -framework NotificationCenter -framework OpenGLES -framework PassKit -framework PDFKit -framework PencilKit -framework Photos -framework PhotosUI -framework PushKit -framework QuartzCore -framework QuickLook -framework QuickLookThumbnailing -framework ReplayKit -framework SafariServices -framework SceneKit -framework Security -framework Social -framework SoundAnalysis -framework Speech -framework SpriteKit -framework StoreKit -framework SystemConfiguration -framework Twitter -framework UIKit -framework UserNotifications -framework UserNotificationsUI -framework VideoSubscriberAccount -framework VideoToolbox -framework Vision -framework VisionKit -framework WatchConnectivity -framework WebKit -weak_framework Accessibility -weak_framework AdServices -weak_framework AppClip -weak_framework AppTrackingTransparency -weak_framework AutomaticAssessmentConfiguration -weak_framework AVRouting -weak_framework BackgroundAssets -weak_framework CoreLocationUI -weak_framework MetalPerformanceShadersGraph -weak_framework NearbyInteraction -weak_framework OSLog -weak_framework PushToTalk -weak_framework ScreenTime -weak_framework SensorKit -weak_framework SharedWithYou -weak_framework SharedWithYouCore -weak_framework UniformTypeIdentifiers -framework GSS -framework CFNetwork /Users/ewanm/Projects/Net60Test/Net60Test/obj/Debug/net7.0-ios/iossimulator-x64/nativelibraries/main.x86_64.o -o /Users/ewanm/Projects/Net60Test/Net60Test/obj/Debug/net7.0-ios/iossimulator-x64/nativelibraries/Net60Test -lcompression -dead_strip -u_xamarin_CGPoint__VNNormalizedFaceBoundingBoxPointForLandmarkPoint_Vector2_CGRect_nuint_nuint_string -u_xamarin_CGPoint__VNImagePointForFaceLandmarkPoint_Vector2_CGRect_nuint_nuint_string -u_xamarin_release_managed_ref -u_xamarin_set_gchandle_with_flags_safe -u_xamarin_localized_string_format -u_xamarin_localized_string_format_1 -u_xamarin_localized_string_format_2 -u_xamarin_localized_string_format_3 -u_xamarin_localized_string_format_4 -u_xamarin_localized_string_format_5 -u_xamarin_localized_string_format_6 -u_xamarin_localized_string_format_7 -u_xamarin_localized_string_format_8 -u_xamarin_localized_string_format_9 -u_xamarin_init_nsthread -u_xamarin_os_log -u_xamarin_UIApplicationMain -u_xamarin_locate_assembly_resource -u_xamarin_switch_gchandle -u_xamarin_mono_object_retain -u_xamarin_find_protocol_wrapper_type -u_xamarin_log -u_xamarin_release_block_on_main_thread -u_xamarin_get_original_working_directory_path -u_xamarin_get_runtime_arch -u_xamarin_start_wwan -u_xamarin_get_block_descriptor -u_xamarin_simd__NMatrix4_objc_msgSend -u_xamarin_simd__NMatrix4_objc_msgSendSuper -u_xamarin_simd__NMatrix4_objc_msgSend_stret -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSend -u_xamarin_simd__NVector3_objc_msgSendSuper -u_xamarin_simd__NVector3_objc_msgSend_stret -u_xamarin_simd__NVector3_objc_msgSendSuper_stret -u_xamarin_simd__NMatrix3_objc_msgSend -u_xamarin_simd__NMatrix3_objc_msgSendSuper -u_xamarin_simd__NMatrix3_objc_msgSend_stret -u_xamarin_simd__NMatrix3_objc_msgSendSuper_stret -u_xamarin_simd__CGPoint_objc_msgSend_NVector3_IntPtr_CGSize -u_xamarin_simd__CGPoint_objc_msgSendSuper_NVector3_IntPtr_CGSize -u_xamarin_simd__CGPoint_objc_msgSend_stret_NVector3_IntPtr_CGSize -u_xamarin_simd__CGPoint_objc_msgSendSuper_stret_NVector3_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSend_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSendSuper_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSend_stret_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSendSuper_stret_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NMatrix4_objc_msgSend_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSendSuper_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSend_stret_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSend_IntPtr -u_xamarin_simd__NMatrix4_objc_msgSendSuper_IntPtr -u_xamarin_simd__NMatrix4_objc_msgSend_stret_IntPtr -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSend_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NVector3_NVector3_IntPtr_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector3_NVector3_IntPtr_IntPtr -u_xamarin_simd__NVector3_objc_msgSend_CGPoint_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSendSuper_CGPoint_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSend_stret_CGPoint_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSendSuper_stret_CGPoint_NMatrix4 -u_xamarin_simd__void_objc_msgSend_NMatrix4 -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4 -u_xamarin_simd__void_objc_msgSend_NMatrix4_NVector3_NVector3_NativeHandle -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4_NVector3_NVector3_NativeHandle -u_xamarin_simd__void_objc_msgSend_NVector3_NativeHandle -u_xamarin_simd__void_objc_msgSendSuper_NVector3_NativeHandle -u_xamarin_simd__Vector2_objc_msgSend_NativeHandle -u_xamarin_simd__Vector2_objc_msgSendSuper_NativeHandle -u_xamarin_simd__Vector2_objc_msgSend_stret_NativeHandle -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSend_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSendSuper_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSend_stret_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_NativeHandle -u_xamarin_simd__NMatrix4x3_objc_msgSend -u_xamarin_simd__NMatrix4x3_objc_msgSendSuper -u_xamarin_simd__NMatrix4x3_objc_msgSend_stret -u_xamarin_simd__NMatrix4x3_objc_msgSendSuper_stret -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_exception -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_IntPtr_IntPtr_IntPtr_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_IntPtr_IntPtr_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_UIntPtr_IntPtr_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_IntPtr_UIntPtr_exception -u_xamarin_simd__Vector2_objc_msgSend -u_xamarin_simd__Vector2_objc_msgSendSuper -u_xamarin_simd__Vector2_objc_msgSend_stret -u_xamarin_simd__Vector2_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_Vector2 -u_xamarin_simd__void_objc_msgSendSuper_Vector2 -u_xamarin_simd__Vector3_objc_msgSend -u_xamarin_simd__Vector3_objc_msgSendSuper -u_xamarin_simd__Vector3_objc_msgSend_stret -u_xamarin_simd__Vector3_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_Vector3 -u_xamarin_simd__void_objc_msgSendSuper_Vector3 -u_xamarin_simd__void_objc_msgSend_NMatrix3 -u_xamarin_simd__void_objc_msgSendSuper_NMatrix3 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3 -u_xamarin_simd__NVector2i_objc_msgSend -u_xamarin_simd__NVector2i_objc_msgSendSuper -u_xamarin_simd__NVector2i_objc_msgSend_stret -u_xamarin_simd__NVector2i_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2i_int_int_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2i_int_int_bool -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2i_int_int_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2i_int_int_bool_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_NVector2i -u_xamarin_simd__IntPtr_objc_msgSendSuper_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_Vector2_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_Vector2_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_Vector2 -u_xamarin_simd__GKTriangle_objc_msgSend_UIntPtr -u_xamarin_simd__GKTriangle_objc_msgSendSuper_UIntPtr -u_xamarin_simd__GKTriangle_objc_msgSend_stret_UIntPtr -u_xamarin_simd__GKTriangle_objc_msgSendSuper_stret_UIntPtr -u_xamarin_simd__float_objc_msgSend_Vector2 -u_xamarin_simd__float_objc_msgSendSuper_Vector2 -u_xamarin_simd__void_objc_msgSend_NVector3d -u_xamarin_simd__void_objc_msgSendSuper_NVector3d -u_xamarin_simd__NVector2d_objc_msgSend -u_xamarin_simd__NVector2d_objc_msgSendSuper -u_xamarin_simd__NVector2d_objc_msgSend_stret -u_xamarin_simd__NVector2d_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NVector2d_NVector2d_NVector2i_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NVector2d_NVector2d_NVector2i_bool -u_xamarin_simd__float_objc_msgSend_NVector2i -u_xamarin_simd__float_objc_msgSendSuper_NVector2i -u_xamarin_simd__void_objc_msgSend_float_NVector2i -u_xamarin_simd__void_objc_msgSendSuper_float_NVector2i -u_xamarin_simd__GKBox_objc_msgSend -u_xamarin_simd__GKBox_objc_msgSendSuper -u_xamarin_simd__GKBox_objc_msgSend_stret -u_xamarin_simd__GKBox_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_GKBox_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKBox_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_GKBox -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_GKBox -u_xamarin_simd__NativeHandle_objc_msgSend_GKBox -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKBox -u_xamarin_simd__Vector2_objc_msgSend_UIntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_UIntPtr -u_xamarin_simd__Vector2_objc_msgSend_stret_UIntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_UIntPtr -u_xamarin_simd__Vector3_objc_msgSend_UIntPtr -u_xamarin_simd__Vector3_objc_msgSendSuper_UIntPtr -u_xamarin_simd__Vector3_objc_msgSend_stret_UIntPtr -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_UIntPtr -u_xamarin_simd__NativeHandle_objc_msgSend_GKQuad_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKQuad_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Vector2_exception -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Vector2_exception -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_GKQuad -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_GKQuad -u_xamarin_simd__NativeHandle_objc_msgSend_GKQuad -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKQuad -u_xamarin_simd__GKQuad_objc_msgSend -u_xamarin_simd__GKQuad_objc_msgSendSuper -u_xamarin_simd__GKQuad_objc_msgSend_stret -u_xamarin_simd__GKQuad_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NativeHandle_Vector2_Vector2_IntPtr -u_xamarin_simd__void_objc_msgSendSuper_NativeHandle_Vector2_Vector2_IntPtr -u_xamarin_simd__void_objc_msgSend_NativeHandle_Vector2_Vector2 -u_xamarin_simd__void_objc_msgSendSuper_NativeHandle_Vector2_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector2_Vector2_exception -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector2_Vector2_exception -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSend -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSendSuper -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSend_stret -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSendSuper_stret -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSend -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSendSuper -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSend_stret -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSendSuper_stret -u_xamarin_simd__Vector4_objc_msgSend -u_xamarin_simd__Vector4_objc_msgSendSuper -u_xamarin_simd__Vector4_objc_msgSend_stret -u_xamarin_simd__Vector4_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_Vector4 -u_xamarin_simd__void_objc_msgSendSuper_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_ref_MPSImageHistogramInfo -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_ref_MPSImageHistogramInfo -u_xamarin_simd__void_objc_msgSend_NMatrix4_Double -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4_Double -u_xamarin_simd__void_objc_msgSend_NMatrix4d_Double -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4d_Double -u_xamarin_simd__NMatrix4_objc_msgSend_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_Double -u_xamarin_simd__NMatrix4_objc_msgSend_stret_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_Double -u_xamarin_simd__NMatrix4d_objc_msgSend_Double -u_xamarin_simd__NMatrix4d_objc_msgSendSuper_Double -u_xamarin_simd__NMatrix4d_objc_msgSend_stret_Double -u_xamarin_simd__NMatrix4d_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Quaternion_Double -u_xamarin_simd__void_objc_msgSendSuper_Quaternion_Double -u_xamarin_simd__void_objc_msgSend_NQuaterniond_Double -u_xamarin_simd__void_objc_msgSendSuper_NQuaterniond_Double -u_xamarin_simd__Quaternion_objc_msgSend_Double -u_xamarin_simd__Quaternion_objc_msgSendSuper_Double -u_xamarin_simd__Quaternion_objc_msgSend_stret_Double -u_xamarin_simd__Quaternion_objc_msgSendSuper_stret_Double -u_xamarin_simd__NQuaterniond_objc_msgSend_Double -u_xamarin_simd__NQuaterniond_objc_msgSendSuper_Double -u_xamarin_simd__NQuaterniond_objc_msgSend_stret_Double -u_xamarin_simd__NQuaterniond_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Vector2_Double -u_xamarin_simd__void_objc_msgSendSuper_Vector2_Double -u_xamarin_simd__void_objc_msgSend_NVector2d_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector2d_Double -u_xamarin_simd__Vector2_objc_msgSend_Double -u_xamarin_simd__Vector2_objc_msgSendSuper_Double -u_xamarin_simd__Vector2_objc_msgSend_stret_Double -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_Double -u_xamarin_simd__NVector2d_objc_msgSend_Double -u_xamarin_simd__NVector2d_objc_msgSendSuper_Double -u_xamarin_simd__NVector2d_objc_msgSend_stret_Double -u_xamarin_simd__NVector2d_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_NVector3_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector3_Double -u_xamarin_simd__void_objc_msgSend_NVector3d_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector3d_Double -u_xamarin_simd__NVector3_objc_msgSend_Double -u_xamarin_simd__NVector3_objc_msgSendSuper_Double -u_xamarin_simd__NVector3_objc_msgSend_stret_Double -u_xamarin_simd__NVector3_objc_msgSendSuper_stret_Double -u_xamarin_simd__NVector3d_objc_msgSend_Double -u_xamarin_simd__NVector3d_objc_msgSendSuper_Double -u_xamarin_simd__NVector3d_objc_msgSend_stret_Double -u_xamarin_simd__NVector3d_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Vector4_Double -u_xamarin_simd__void_objc_msgSendSuper_Vector4_Double -u_xamarin_simd__void_objc_msgSend_NVector4d_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector4d_Double -u_xamarin_simd__Vector4_objc_msgSend_Double -u_xamarin_simd__Vector4_objc_msgSendSuper_Double -u_xamarin_simd__Vector4_objc_msgSend_stret_Double -u_xamarin_simd__Vector4_objc_msgSendSuper_stret_Double -u_xamarin_simd__NVector4d_objc_msgSend_Double -u_xamarin_simd__NVector4d_objc_msgSendSuper_Double -u_xamarin_simd__NVector4d_objc_msgSend_stret_Double -u_xamarin_simd__NVector4d_objc_msgSendSuper_stret_Double -u_xamarin_simd__NMatrix4d_objc_msgSend -u_xamarin_simd__NMatrix4d_objc_msgSendSuper -u_xamarin_simd__NMatrix4d_objc_msgSend_stret -u_xamarin_simd__NMatrix4d_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NMatrix4d -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4d -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_stret -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NVector3 -u_xamarin_simd__void_objc_msgSendSuper_NVector3 -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_Double -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_Double -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_stret_Double -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_MDLAxisAlignedBoundingBox_bool -u_xamarin_simd__void_objc_msgSendSuper_MDLAxisAlignedBoundingBox_bool -u_xamarin_simd__void_objc_msgSend_Vector3_Vector3 -u_xamarin_simd__void_objc_msgSendSuper_Vector3_Vector3 -u_xamarin_simd__Vector3_objc_msgSend_NVector2i_NVector2i -u_xamarin_simd__Vector3_objc_msgSendSuper_NVector2i_NVector2i -u_xamarin_simd__Vector3_objc_msgSend_stret_NVector2i_NVector2i -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_NVector2i_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_bool_NativeHandle_NVector2i_IntPtr_UIntPtr_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_bool_NativeHandle_NVector2i_IntPtr_UIntPtr_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSend_float_NativeHandle_NVector2i_int_IntPtr_NativeHandle_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_NativeHandle_NVector2i_int_IntPtr_NativeHandle_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_float_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_float_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_NMatrix4 -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector3i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector3i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_bool_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_bool_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_int_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_int_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_int_UInt32_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_int_UInt32_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3_NVector3i_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3_NVector3i_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_Vector2_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector2_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3_UIntPtr_UIntPtr_IntPtr_bool_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3_UIntPtr_UIntPtr_IntPtr_bool_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_UIntPtr_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_UIntPtr_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__bool_objc_msgSend_NVector2i_IntPtr_float_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__bool_objc_msgSendSuper_NVector2i_IntPtr_float_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__bool_objc_msgSend_NVector2i_NativeHandle_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__bool_objc_msgSendSuper_NVector2i_NativeHandle_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_float_NativeHandle_NVector2i_IntPtr -u_xamarin_simd__IntPtr_objc_msgSendSuper_float_NativeHandle_NVector2i_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSend_float_NativeHandle_NVector2i_int_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_NativeHandle_NVector2i_int_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_IntPtr_NVector2i_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NVector2i_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_IntPtr_NVector2i_float_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NVector2i_float_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NVector2i_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NVector2i_float -u_xamarin_simd__NativeHandle_objc_msgSend_NMatrix4_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NMatrix4_bool -u_xamarin_simd__Vector3_objc_msgSend_Double -u_xamarin_simd__Vector3_objc_msgSendSuper_Double -u_xamarin_simd__Vector3_objc_msgSend_stret_Double -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Vector3_Double -u_xamarin_simd__void_objc_msgSendSuper_Vector3_Double -u_xamarin_simd__NMatrix4_objc_msgSend_NativeHandle_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_NativeHandle_Double -u_xamarin_simd__NMatrix4_objc_msgSend_stret_NativeHandle_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_NativeHandle_Double -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSend -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSendSuper -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSend_stret -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_MDLAxisAlignedBoundingBox_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_MDLAxisAlignedBoundingBox_float -u_xamarin_simd__bool_objc_msgSend_NVector4i_bool_bool_bool_bool -u_xamarin_simd__bool_objc_msgSendSuper_NVector4i_bool_bool_bool_bool -u_xamarin_simd__void_objc_msgSend_NVector4i -u_xamarin_simd__void_objc_msgSendSuper_NVector4i -u_xamarin_simd__NativeHandle_objc_msgSend_MDLVoxelIndexExtent -u_xamarin_simd__NativeHandle_objc_msgSendSuper_MDLVoxelIndexExtent -u_xamarin_simd__NVector4i_objc_msgSend_Vector3 -u_xamarin_simd__NVector4i_objc_msgSendSuper_Vector3 -u_xamarin_simd__NVector4i_objc_msgSend_stret_Vector3 -u_xamarin_simd__NVector4i_objc_msgSendSuper_stret_Vector3 -u_xamarin_simd__Vector3_objc_msgSend_NVector4i -u_xamarin_simd__Vector3_objc_msgSendSuper_NVector4i -u_xamarin_simd__Vector3_objc_msgSend_stret_NVector4i -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_stret_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_stret_NVector4i -u_xamarin_simd__Quaternion_objc_msgSend -u_xamarin_simd__Quaternion_objc_msgSendSuper -u_xamarin_simd__Quaternion_objc_msgSend_stret -u_xamarin_simd__Quaternion_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Quaternion_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Quaternion_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Quaternion -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Quaternion -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2d_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2d_NativeHandle -u_xamarin_simd__void_objc_msgSend_NVector2d -u_xamarin_simd__void_objc_msgSendSuper_NVector2d -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2d_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2d_IntPtr -u_xamarin_simd__Vector3_objc_msgSend_Vector3 -u_xamarin_simd__Vector3_objc_msgSendSuper_Vector3 -u_xamarin_simd__Vector3_objc_msgSend_stret_Vector3 -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector4 -u_xamarin_vector_float3__Vector4_objc_msgSend -u_xamarin_vector_float3__Vector4_objc_msgSendSuper -u_xamarin_vector_float3__Vector4_objc_msgSend_stret -u_xamarin_vector_float3__Vector4_objc_msgSendSuper_stret -u_xamarin_vector_float3__void_objc_msgSend_Vector4 -u_xamarin_vector_float3__void_objc_msgSendSuper_Vector4 -u_xamarin_simd__void_objc_msgSend_Quaternion -u_xamarin_simd__void_objc_msgSendSuper_Quaternion -u_xamarin_simd__NMatrix2_objc_msgSend -u_xamarin_simd__NMatrix2_objc_msgSendSuper -u_xamarin_simd__NMatrix2_objc_msgSend_stret -u_xamarin_simd__NMatrix2_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NMatrix2 -u_xamarin_simd__void_objc_msgSendSuper_NMatrix2 -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_Vector2_exception -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_Vector2_exception -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_Vector3 -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_Vector3 -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_Vector4 -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix2 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Vector4 -u_xamarin_simd__Vector2_objc_msgSend_IntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_IntPtr -u_xamarin_simd__Vector2_objc_msgSend_stret_IntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_IntPtr -lz -liconv -lcompression

    Tool xcrun execution finished (exit code = 1).

    ld: warning: directory not found for option '-L${ProjectDir}'
    ld: file not found: mylib
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
projectgoav commented 1 year ago

If I make use of the suggested fix in #13503, the path is fully expanded to what I would expect.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net7.0-ios</TargetFramework>
    <OutputType>Exe</OutputType>
    <ImplicitUsings>true</ImplicitUsings>
    <SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
   </PropertyGroup>

    <ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
        <NativeReference Include="mylib">
            <Kind>Static</Kind>
            <ForceLoad>True</ForceLoad>
            <IsCxx>True</IsCxx>
            <LinkerFlags>-L$([System.IO.Path]::GetFullPath('$(ProjectDir)'))</LinkerFlags>
        </NativeReference>
    </ItemGroup>
Target _LinkNativeExecutable:
    Tool xcrun execution started with arguments: clang++ -force_load mylib -L/Users/ewanm/Projects/Net60Test/Net60Test/ -Lobj/Debug/net7.0-ios/iossimulator-x64/nativelibraries -lSystem.IO.Compression.Native -lSystem.Native -lSystem.Net.Security.Native -lSystem.Security.Cryptography.Native.Apple -lmono-component-debugger -lmono-component-diagnostics_tracing -lmono-component-hot_reload -lmonosgen-2.0 -lxamarin-dotnet-debug -miphonesimulator-version-min=13.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -arch x86_64 -L/usr/local/share/dotnet/packs/Microsoft.iOS.Runtime.iossimulator-x64/16.4.7089/runtimes/iossimulator-x64/native -lxamarin-dotnet-debug -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.IO.Compression.Native -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.Native -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.Net.Security.Native -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lSystem.Security.Cryptography.Native.Apple -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmono-component-debugger -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmono-component-diagnostics_tracing -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmono-component-hot_reload -L/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64/7.0.9/runtimes/iossimulator-x64/native -lmonosgen-2.0 /usr/local/share/dotnet/packs/Microsoft.iOS.Runtime.iossimulator-x64/16.4.7089/runtimes/iossimulator-x64/native/Microsoft.iOS.registrar.a -rpath @executable_path -framework Accelerate -framework Accounts -framework AddressBook -framework AddressBookUI -framework AdSupport -framework ARKit -framework AssetsLibrary -framework AudioToolbox -framework AuthenticationServices -framework AVFoundation -framework AVKit -framework BackgroundTasks -framework BusinessChat -framework CallKit -framework CarPlay -framework CFNetwork -framework ClassKit -framework CloudKit -framework Contacts -framework ContactsUI -framework CoreAudioKit -framework CoreBluetooth -framework CoreData -framework CoreFoundation -framework CoreGraphics -framework CoreHaptics -framework CoreImage -framework CoreLocation -framework CoreMedia -framework CoreMIDI -framework CoreML -framework CoreMotion -framework CoreSpotlight -framework CoreTelephony -framework CoreText -framework CoreVideo -framework DeviceCheck -framework EventKit -framework EventKitUI -framework ExternalAccessory -framework FileProvider -framework FileProviderUI -framework Foundation -framework GameController -framework GameKit -framework GameplayKit -framework GLKit -framework HealthKit -framework HealthKitUI -framework HomeKit -framework IdentityLookup -framework IdentityLookupUI -framework ImageIO -framework Intents -framework IntentsUI -framework JavaScriptCore -framework LinkPresentation -framework LocalAuthentication -framework MapKit -framework MediaAccessibility -framework MediaPlayer -framework MediaToolbox -framework Messages -framework MessageUI -framework Metal -framework MetalKit -framework MetalPerformanceShaders -framework MetricKit -framework MobileCoreServices -framework ModelIO -framework MultipeerConnectivity -framework NaturalLanguage -framework Network -framework NetworkExtension -framework NewsstandKit -framework NotificationCenter -framework OpenGLES -framework PassKit -framework PDFKit -framework PencilKit -framework Photos -framework PhotosUI -framework PushKit -framework QuartzCore -framework QuickLook -framework QuickLookThumbnailing -framework ReplayKit -framework SafariServices -framework SceneKit -framework Security -framework Social -framework SoundAnalysis -framework Speech -framework SpriteKit -framework StoreKit -framework SystemConfiguration -framework Twitter -framework UIKit -framework UserNotifications -framework UserNotificationsUI -framework VideoSubscriberAccount -framework VideoToolbox -framework Vision -framework VisionKit -framework WatchConnectivity -framework WebKit -weak_framework Accessibility -weak_framework AdServices -weak_framework AppClip -weak_framework AppTrackingTransparency -weak_framework AutomaticAssessmentConfiguration -weak_framework AVRouting -weak_framework BackgroundAssets -weak_framework CoreLocationUI -weak_framework MetalPerformanceShadersGraph -weak_framework NearbyInteraction -weak_framework OSLog -weak_framework PushToTalk -weak_framework ScreenTime -weak_framework SensorKit -weak_framework SharedWithYou -weak_framework SharedWithYouCore -weak_framework UniformTypeIdentifiers -framework GSS -framework CFNetwork /Users/ewanm/Projects/Net60Test/Net60Test/obj/Debug/net7.0-ios/iossimulator-x64/nativelibraries/main.x86_64.o -o /Users/ewanm/Projects/Net60Test/Net60Test/obj/Debug/net7.0-ios/iossimulator-x64/nativelibraries/Net60Test -lcompression -dead_strip -u_xamarin_CGPoint__VNNormalizedFaceBoundingBoxPointForLandmarkPoint_Vector2_CGRect_nuint_nuint_string -u_xamarin_CGPoint__VNImagePointForFaceLandmarkPoint_Vector2_CGRect_nuint_nuint_string -u_xamarin_release_managed_ref -u_xamarin_set_gchandle_with_flags_safe -u_xamarin_localized_string_format -u_xamarin_localized_string_format_1 -u_xamarin_localized_string_format_2 -u_xamarin_localized_string_format_3 -u_xamarin_localized_string_format_4 -u_xamarin_localized_string_format_5 -u_xamarin_localized_string_format_6 -u_xamarin_localized_string_format_7 -u_xamarin_localized_string_format_8 -u_xamarin_localized_string_format_9 -u_xamarin_init_nsthread -u_xamarin_os_log -u_xamarin_UIApplicationMain -u_xamarin_locate_assembly_resource -u_xamarin_switch_gchandle -u_xamarin_mono_object_retain -u_xamarin_find_protocol_wrapper_type -u_xamarin_log -u_xamarin_release_block_on_main_thread -u_xamarin_get_original_working_directory_path -u_xamarin_get_runtime_arch -u_xamarin_start_wwan -u_xamarin_get_block_descriptor -u_xamarin_simd__NMatrix4_objc_msgSend -u_xamarin_simd__NMatrix4_objc_msgSendSuper -u_xamarin_simd__NMatrix4_objc_msgSend_stret -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSend -u_xamarin_simd__NVector3_objc_msgSendSuper -u_xamarin_simd__NVector3_objc_msgSend_stret -u_xamarin_simd__NVector3_objc_msgSendSuper_stret -u_xamarin_simd__NMatrix3_objc_msgSend -u_xamarin_simd__NMatrix3_objc_msgSendSuper -u_xamarin_simd__NMatrix3_objc_msgSend_stret -u_xamarin_simd__NMatrix3_objc_msgSendSuper_stret -u_xamarin_simd__CGPoint_objc_msgSend_NVector3_IntPtr_CGSize -u_xamarin_simd__CGPoint_objc_msgSendSuper_NVector3_IntPtr_CGSize -u_xamarin_simd__CGPoint_objc_msgSend_stret_NVector3_IntPtr_CGSize -u_xamarin_simd__CGPoint_objc_msgSendSuper_stret_NVector3_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSend_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSendSuper_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSend_stret_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NVector3_objc_msgSendSuper_stret_CGPoint_NMatrix4_IntPtr_CGSize -u_xamarin_simd__NMatrix4_objc_msgSend_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSendSuper_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSend_stret_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_IntPtr_CGSize_nfloat_nfloat -u_xamarin_simd__NMatrix4_objc_msgSend_IntPtr -u_xamarin_simd__NMatrix4_objc_msgSendSuper_IntPtr -u_xamarin_simd__NMatrix4_objc_msgSend_stret_IntPtr -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSend_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix4_NVector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NVector3_NVector3_IntPtr_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector3_NVector3_IntPtr_IntPtr -u_xamarin_simd__NVector3_objc_msgSend_CGPoint_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSendSuper_CGPoint_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSend_stret_CGPoint_NMatrix4 -u_xamarin_simd__NVector3_objc_msgSendSuper_stret_CGPoint_NMatrix4 -u_xamarin_simd__void_objc_msgSend_NMatrix4 -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4 -u_xamarin_simd__void_objc_msgSend_NMatrix4_NVector3_NVector3_NativeHandle -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4_NVector3_NVector3_NativeHandle -u_xamarin_simd__void_objc_msgSend_NVector3_NativeHandle -u_xamarin_simd__void_objc_msgSendSuper_NVector3_NativeHandle -u_xamarin_simd__Vector2_objc_msgSend_NativeHandle -u_xamarin_simd__Vector2_objc_msgSendSuper_NativeHandle -u_xamarin_simd__Vector2_objc_msgSend_stret_NativeHandle -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSend_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSendSuper_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSend_stret_NativeHandle -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_NativeHandle -u_xamarin_simd__NMatrix4x3_objc_msgSend -u_xamarin_simd__NMatrix4x3_objc_msgSendSuper -u_xamarin_simd__NMatrix4x3_objc_msgSend_stret -u_xamarin_simd__NMatrix4x3_objc_msgSendSuper_stret -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_exception -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_IntPtr_IntPtr_IntPtr_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_IntPtr_IntPtr_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSend_NativeHandle_UIntPtr_IntPtr_UIntPtr_exception -u_xamarin_NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_IntPtr_UIntPtr_exception -u_xamarin_simd__Vector2_objc_msgSend -u_xamarin_simd__Vector2_objc_msgSendSuper -u_xamarin_simd__Vector2_objc_msgSend_stret -u_xamarin_simd__Vector2_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_Vector2 -u_xamarin_simd__void_objc_msgSendSuper_Vector2 -u_xamarin_simd__Vector3_objc_msgSend -u_xamarin_simd__Vector3_objc_msgSendSuper -u_xamarin_simd__Vector3_objc_msgSend_stret -u_xamarin_simd__Vector3_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_Vector3 -u_xamarin_simd__void_objc_msgSendSuper_Vector3 -u_xamarin_simd__void_objc_msgSend_NMatrix3 -u_xamarin_simd__void_objc_msgSendSuper_NMatrix3 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3 -u_xamarin_simd__NVector2i_objc_msgSend -u_xamarin_simd__NVector2i_objc_msgSendSuper -u_xamarin_simd__NVector2i_objc_msgSend_stret -u_xamarin_simd__NVector2i_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2i_int_int_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2i_int_int_bool -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2i_int_int_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2i_int_int_bool_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_NVector2i -u_xamarin_simd__IntPtr_objc_msgSendSuper_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_Vector2_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_Vector2_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_Vector2 -u_xamarin_simd__GKTriangle_objc_msgSend_UIntPtr -u_xamarin_simd__GKTriangle_objc_msgSendSuper_UIntPtr -u_xamarin_simd__GKTriangle_objc_msgSend_stret_UIntPtr -u_xamarin_simd__GKTriangle_objc_msgSendSuper_stret_UIntPtr -u_xamarin_simd__float_objc_msgSend_Vector2 -u_xamarin_simd__float_objc_msgSendSuper_Vector2 -u_xamarin_simd__void_objc_msgSend_NVector3d -u_xamarin_simd__void_objc_msgSendSuper_NVector3d -u_xamarin_simd__NVector2d_objc_msgSend -u_xamarin_simd__NVector2d_objc_msgSendSuper -u_xamarin_simd__NVector2d_objc_msgSend_stret -u_xamarin_simd__NVector2d_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NVector2d_NVector2d_NVector2i_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NVector2d_NVector2d_NVector2i_bool -u_xamarin_simd__float_objc_msgSend_NVector2i -u_xamarin_simd__float_objc_msgSendSuper_NVector2i -u_xamarin_simd__void_objc_msgSend_float_NVector2i -u_xamarin_simd__void_objc_msgSendSuper_float_NVector2i -u_xamarin_simd__GKBox_objc_msgSend -u_xamarin_simd__GKBox_objc_msgSendSuper -u_xamarin_simd__GKBox_objc_msgSend_stret -u_xamarin_simd__GKBox_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_GKBox_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKBox_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_GKBox -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_GKBox -u_xamarin_simd__NativeHandle_objc_msgSend_GKBox -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKBox -u_xamarin_simd__Vector2_objc_msgSend_UIntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_UIntPtr -u_xamarin_simd__Vector2_objc_msgSend_stret_UIntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_UIntPtr -u_xamarin_simd__Vector3_objc_msgSend_UIntPtr -u_xamarin_simd__Vector3_objc_msgSendSuper_UIntPtr -u_xamarin_simd__Vector3_objc_msgSend_stret_UIntPtr -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_UIntPtr -u_xamarin_simd__NativeHandle_objc_msgSend_GKQuad_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKQuad_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Vector2_exception -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Vector2_exception -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_GKQuad -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_GKQuad -u_xamarin_simd__NativeHandle_objc_msgSend_GKQuad -u_xamarin_simd__NativeHandle_objc_msgSendSuper_GKQuad -u_xamarin_simd__GKQuad_objc_msgSend -u_xamarin_simd__GKQuad_objc_msgSendSuper -u_xamarin_simd__GKQuad_objc_msgSend_stret -u_xamarin_simd__GKQuad_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NativeHandle_Vector2_Vector2_IntPtr -u_xamarin_simd__void_objc_msgSendSuper_NativeHandle_Vector2_Vector2_IntPtr -u_xamarin_simd__void_objc_msgSend_NativeHandle_Vector2_Vector2 -u_xamarin_simd__void_objc_msgSendSuper_NativeHandle_Vector2_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector2_Vector2_exception -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector2_Vector2_exception -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSend -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSendSuper -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSend_stret -u_xamarin_simd__MPSAxisAlignedBoundingBox_objc_msgSendSuper_stret -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSend -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSendSuper -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSend_stret -u_xamarin_simd__MPSImageHistogramInfo_objc_msgSendSuper_stret -u_xamarin_simd__Vector4_objc_msgSend -u_xamarin_simd__Vector4_objc_msgSendSuper -u_xamarin_simd__Vector4_objc_msgSend_stret -u_xamarin_simd__Vector4_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_Vector4 -u_xamarin_simd__void_objc_msgSendSuper_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_ref_MPSImageHistogramInfo -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_ref_MPSImageHistogramInfo -u_xamarin_simd__void_objc_msgSend_NMatrix4_Double -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4_Double -u_xamarin_simd__void_objc_msgSend_NMatrix4d_Double -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4d_Double -u_xamarin_simd__NMatrix4_objc_msgSend_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_Double -u_xamarin_simd__NMatrix4_objc_msgSend_stret_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_Double -u_xamarin_simd__NMatrix4d_objc_msgSend_Double -u_xamarin_simd__NMatrix4d_objc_msgSendSuper_Double -u_xamarin_simd__NMatrix4d_objc_msgSend_stret_Double -u_xamarin_simd__NMatrix4d_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Quaternion_Double -u_xamarin_simd__void_objc_msgSendSuper_Quaternion_Double -u_xamarin_simd__void_objc_msgSend_NQuaterniond_Double -u_xamarin_simd__void_objc_msgSendSuper_NQuaterniond_Double -u_xamarin_simd__Quaternion_objc_msgSend_Double -u_xamarin_simd__Quaternion_objc_msgSendSuper_Double -u_xamarin_simd__Quaternion_objc_msgSend_stret_Double -u_xamarin_simd__Quaternion_objc_msgSendSuper_stret_Double -u_xamarin_simd__NQuaterniond_objc_msgSend_Double -u_xamarin_simd__NQuaterniond_objc_msgSendSuper_Double -u_xamarin_simd__NQuaterniond_objc_msgSend_stret_Double -u_xamarin_simd__NQuaterniond_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Vector2_Double -u_xamarin_simd__void_objc_msgSendSuper_Vector2_Double -u_xamarin_simd__void_objc_msgSend_NVector2d_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector2d_Double -u_xamarin_simd__Vector2_objc_msgSend_Double -u_xamarin_simd__Vector2_objc_msgSendSuper_Double -u_xamarin_simd__Vector2_objc_msgSend_stret_Double -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_Double -u_xamarin_simd__NVector2d_objc_msgSend_Double -u_xamarin_simd__NVector2d_objc_msgSendSuper_Double -u_xamarin_simd__NVector2d_objc_msgSend_stret_Double -u_xamarin_simd__NVector2d_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_NVector3_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector3_Double -u_xamarin_simd__void_objc_msgSend_NVector3d_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector3d_Double -u_xamarin_simd__NVector3_objc_msgSend_Double -u_xamarin_simd__NVector3_objc_msgSendSuper_Double -u_xamarin_simd__NVector3_objc_msgSend_stret_Double -u_xamarin_simd__NVector3_objc_msgSendSuper_stret_Double -u_xamarin_simd__NVector3d_objc_msgSend_Double -u_xamarin_simd__NVector3d_objc_msgSendSuper_Double -u_xamarin_simd__NVector3d_objc_msgSend_stret_Double -u_xamarin_simd__NVector3d_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Vector4_Double -u_xamarin_simd__void_objc_msgSendSuper_Vector4_Double -u_xamarin_simd__void_objc_msgSend_NVector4d_Double -u_xamarin_simd__void_objc_msgSendSuper_NVector4d_Double -u_xamarin_simd__Vector4_objc_msgSend_Double -u_xamarin_simd__Vector4_objc_msgSendSuper_Double -u_xamarin_simd__Vector4_objc_msgSend_stret_Double -u_xamarin_simd__Vector4_objc_msgSendSuper_stret_Double -u_xamarin_simd__NVector4d_objc_msgSend_Double -u_xamarin_simd__NVector4d_objc_msgSendSuper_Double -u_xamarin_simd__NVector4d_objc_msgSend_stret_Double -u_xamarin_simd__NVector4d_objc_msgSendSuper_stret_Double -u_xamarin_simd__NMatrix4d_objc_msgSend -u_xamarin_simd__NMatrix4d_objc_msgSendSuper -u_xamarin_simd__NMatrix4d_objc_msgSend_stret -u_xamarin_simd__NMatrix4d_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NMatrix4d -u_xamarin_simd__void_objc_msgSendSuper_NMatrix4d -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_stret -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NVector3 -u_xamarin_simd__void_objc_msgSendSuper_NVector3 -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_Double -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_Double -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_stret_Double -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_MDLAxisAlignedBoundingBox_bool -u_xamarin_simd__void_objc_msgSendSuper_MDLAxisAlignedBoundingBox_bool -u_xamarin_simd__void_objc_msgSend_Vector3_Vector3 -u_xamarin_simd__void_objc_msgSendSuper_Vector3_Vector3 -u_xamarin_simd__Vector3_objc_msgSend_NVector2i_NVector2i -u_xamarin_simd__Vector3_objc_msgSendSuper_NVector2i_NVector2i -u_xamarin_simd__Vector3_objc_msgSend_stret_NVector2i_NVector2i -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_NVector2i_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_bool_NativeHandle_NVector2i_IntPtr_UIntPtr_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_bool_NativeHandle_NVector2i_IntPtr_UIntPtr_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSend_float_NativeHandle_NVector2i_int_IntPtr_NativeHandle_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_NativeHandle_NVector2i_int_IntPtr_NativeHandle_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_float_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_float_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_Vector2 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_UIntPtr_NMatrix4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_UIntPtr_NMatrix4 -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector3i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector3i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_bool_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_bool_bool_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_int_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_int_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_Vector3_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_Vector3_bool_IntPtr_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_int_UInt32_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_int_UInt32_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3_NVector3i_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3_NVector3i_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_Vector2_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector2_NVector2i_IntPtr_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_Vector3_UIntPtr_UIntPtr_IntPtr_bool_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector3_UIntPtr_UIntPtr_IntPtr_bool_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_float_Vector2_UIntPtr_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_Vector2_UIntPtr_UIntPtr_UIntPtr_IntPtr_bool_NativeHandle -u_xamarin_simd__bool_objc_msgSend_NVector2i_IntPtr_float_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__bool_objc_msgSendSuper_NVector2i_IntPtr_float_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__bool_objc_msgSend_NVector2i_NativeHandle_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__bool_objc_msgSendSuper_NVector2i_NativeHandle_NativeHandle_NativeHandle_NativeHandle -u_xamarin_simd__IntPtr_objc_msgSend_float_NativeHandle_NVector2i_IntPtr -u_xamarin_simd__IntPtr_objc_msgSendSuper_float_NativeHandle_NVector2i_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSend_float_NativeHandle_NVector2i_int_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_float_NativeHandle_NVector2i_int_IntPtr_bool -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_IntPtr_NVector2i_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NVector2i_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_IntPtr_NVector2i_float_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NVector2i_float_float_float_float_float -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NVector2i -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NativeHandle_NVector2i_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_NVector2i_float -u_xamarin_simd__NativeHandle_objc_msgSend_NMatrix4_bool -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NMatrix4_bool -u_xamarin_simd__Vector3_objc_msgSend_Double -u_xamarin_simd__Vector3_objc_msgSendSuper_Double -u_xamarin_simd__Vector3_objc_msgSend_stret_Double -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_Double -u_xamarin_simd__void_objc_msgSend_Vector3_Double -u_xamarin_simd__void_objc_msgSendSuper_Vector3_Double -u_xamarin_simd__NMatrix4_objc_msgSend_NativeHandle_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_NativeHandle_Double -u_xamarin_simd__NMatrix4_objc_msgSend_stret_NativeHandle_Double -u_xamarin_simd__NMatrix4_objc_msgSendSuper_stret_NativeHandle_Double -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSend -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSendSuper -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSend_stret -u_xamarin_simd__MDLVoxelIndexExtent_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_MDLAxisAlignedBoundingBox_float -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_MDLAxisAlignedBoundingBox_float -u_xamarin_simd__bool_objc_msgSend_NVector4i_bool_bool_bool_bool -u_xamarin_simd__bool_objc_msgSendSuper_NVector4i_bool_bool_bool_bool -u_xamarin_simd__void_objc_msgSend_NVector4i -u_xamarin_simd__void_objc_msgSendSuper_NVector4i -u_xamarin_simd__NativeHandle_objc_msgSend_MDLVoxelIndexExtent -u_xamarin_simd__NativeHandle_objc_msgSendSuper_MDLVoxelIndexExtent -u_xamarin_simd__NVector4i_objc_msgSend_Vector3 -u_xamarin_simd__NVector4i_objc_msgSendSuper_Vector3 -u_xamarin_simd__NVector4i_objc_msgSend_stret_Vector3 -u_xamarin_simd__NVector4i_objc_msgSendSuper_stret_Vector3 -u_xamarin_simd__Vector3_objc_msgSend_NVector4i -u_xamarin_simd__Vector3_objc_msgSendSuper_NVector4i -u_xamarin_simd__Vector3_objc_msgSend_stret_NVector4i -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSend_stret_NVector4i -u_xamarin_simd__MDLAxisAlignedBoundingBox_objc_msgSendSuper_stret_NVector4i -u_xamarin_simd__Quaternion_objc_msgSend -u_xamarin_simd__Quaternion_objc_msgSendSuper -u_xamarin_simd__Quaternion_objc_msgSend_stret -u_xamarin_simd__Quaternion_objc_msgSendSuper_stret -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Quaternion_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Quaternion_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Quaternion -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Quaternion -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2d_NativeHandle -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2d_NativeHandle -u_xamarin_simd__void_objc_msgSend_NVector2d -u_xamarin_simd__void_objc_msgSendSuper_NVector2d -u_xamarin_simd__NativeHandle_objc_msgSend_NVector2d_IntPtr -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NVector2d_IntPtr -u_xamarin_simd__Vector3_objc_msgSend_Vector3 -u_xamarin_simd__Vector3_objc_msgSendSuper_Vector3 -u_xamarin_simd__Vector3_objc_msgSend_stret_Vector3 -u_xamarin_simd__Vector3_objc_msgSendSuper_stret_Vector3 -u_xamarin_simd__NativeHandle_objc_msgSend_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_Vector4 -u_xamarin_vector_float3__Vector4_objc_msgSend -u_xamarin_vector_float3__Vector4_objc_msgSendSuper -u_xamarin_vector_float3__Vector4_objc_msgSend_stret -u_xamarin_vector_float3__Vector4_objc_msgSendSuper_stret -u_xamarin_vector_float3__void_objc_msgSend_Vector4 -u_xamarin_vector_float3__void_objc_msgSendSuper_Vector4 -u_xamarin_simd__void_objc_msgSend_Quaternion -u_xamarin_simd__void_objc_msgSendSuper_Quaternion -u_xamarin_simd__NMatrix2_objc_msgSend -u_xamarin_simd__NMatrix2_objc_msgSendSuper -u_xamarin_simd__NMatrix2_objc_msgSend_stret -u_xamarin_simd__NMatrix2_objc_msgSendSuper_stret -u_xamarin_simd__void_objc_msgSend_NMatrix2 -u_xamarin_simd__void_objc_msgSendSuper_NMatrix2 -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_Vector2_exception -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_Vector2_exception -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_Vector3 -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_Vector3 -u_xamarin_simd__IntPtr_objc_msgSend_NativeHandle_Vector4 -u_xamarin_simd__IntPtr_objc_msgSendSuper_NativeHandle_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix2 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix2 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_NMatrix3 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_NMatrix3 -u_xamarin_simd__NativeHandle_objc_msgSend_NativeHandle_Vector4 -u_xamarin_simd__NativeHandle_objc_msgSendSuper_NativeHandle_Vector4 -u_xamarin_simd__Vector2_objc_msgSend_IntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_IntPtr -u_xamarin_simd__Vector2_objc_msgSend_stret_IntPtr -u_xamarin_simd__Vector2_objc_msgSendSuper_stret_IntPtr -lz -liconv -lcompression

    Tool xcrun execution finished (exit code = 1).

    ld: file not found: mylib
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

Does this mean that to correctly expand MSBuild variables in this context when using net7.0-ios target, we need to use the following:

$([System.IO.Path]::GetFullPath('$(ProjectDir)')) ? Is there a more simple way of doing this?

rolfbjarne commented 1 year ago

This also happens when using ${MSBuildProjectDirectory} variable.

$([System.IO.Path]::GetFullPath('$(ProjectDir)')) ? Is there a more simple way of doing this?

$(MSBuildProjectDirectory) should work just fine (note parenthesis around the name, not curly brackets).

projectgoav commented 1 year ago

Both variables work when you provide the [System.IO.Path].... part at the start.

Without that, the variables are not expanded as part of the MTouchExtraArgs. Is the use of <NativeReference> now prefered over using <MTouchExtraArgs> when linking to native code?

rolfbjarne commented 1 year ago

Both variables work when you provide the [System.IO.Path].... part at the start.

That's weird.

MSBuildProjectDirectory is defined to be "The absolute path of the directory where the project file is located" 1, so calling Path.GetFullPath on it shouldn't do anything at all.

Without that, the variables are not expanded as part of the MTouchExtraArgs.

That's also weird, adding the call to Path.GetFullPath shouldn't change how $(MSBuildProjectDirectory) is resolved.

Can you get a binlog (https://github.com/xamarin/xamarin-macios/wiki/Diagnosis#binary-build-logs) of a failing build using just $(MSBuildProjectDirectory)?

Is the use of now prefered over using when linking to native code?

Both should work just fine.

projectgoav commented 1 year ago

Please find attached:

The sample project should allow easy generation of binlogs for the other options in the csproj.

Net60Test.zip NET60Test.binlogs.zip

binlogs generated using dotnet build /bl:msbuild.binlog

dotnet --version: 7.0.306

rolfbjarne commented 1 year ago
  • Binlogs for a run with {ProjectDir} and {MSBuildProjectDirectory} inside <MtouchExtraArgs>

You need to use parenthesis, not curly brackets:

$(MSBuildProjectDirectory)

projectgoav commented 1 year ago

I've provided that as an example in the previously attached test project.

When I use $(MSBuildProjectDirectory) the application does build, but mylib.a is not included anywhere in the LinkNative build stage.

🀦

It would help if I rebuilt the project. Indeed, it is expanded correctly. It is a change as Xamarin.iOS would accept this but I've got a way forward now.

Thanks!

rolfbjarne commented 1 year ago

I've documented this breaking change here now:

https://github.com/xamarin/xamarin-macios/wiki/Breaking-changes-in-.NET#the-projectdir-variable-is-no-longer-supported-in-project-files

davilovick commented 1 year ago

I'm not really sure to write in this issue or open another related one.

If you link a static library and compile your project using Visual Studio for Windows (paired to a Mac), it seems that $(MSBuildProjectDirectory) is expanded using the Windows folder, causing a linking error.

For example, a .csproj located in D:\Test\TestBulletiOS\TestBulletiOS.iOS\TestBulletiOS.iOS.csproj, will produce the following link error:

error : clang++ exited with code 1:
error : ld: warning: directory not found for option '-LD:TestTestBulletiOSTestBulletiOS.iOS'
error : ld: file not found: libbulletc
error : clang: error: linker command failed with exit code 1 (use -v to see invocation)

How can avoid this error or apply a workaround to solve this?

rolfbjarne commented 1 year ago

@davilovick can you get a binlog that shows the error?

https://github.com/xamarin/xamarin-macios/wiki/Diagnosis#binary-build-logs

davilovick commented 1 year ago

Here you are! :)

TestBulletiOS.iOS_Debug_AnyCPU_Build_2023-09-20T14_17_05.8334540+02_00.binlog.zip

This is the csproj fragment to link the static library (libbulletc.a):

  <ItemGroup>
    <NativeReference Include="libbulletc">
      <Kind>Static</Kind>
      <ForceLoad>True</ForceLoad>
      <IsCxx>True</IsCxx>
      <LinkerFlags>-L$(MSBuildProjectDirectory)</LinkerFlags>
    </NativeReference>
  </ItemGroup>

Best regards.

davilovick commented 1 year ago

Using this different approach to link the library: <MtouchExtraArgs>$(MtouchExtraArgs) -cxx -gcc_flags "-L$(MSBuildProjectDirectory) -lbulletc -force_load $(MSBuildProjectDirectory)/libbulletc.a"</MtouchExtraArgs>

This produce similar linking error in clang++:

error : clang++ exited with code 1:
error : ld: warning: directory not found for option '-LD:TestTestBulletiOSTestBulletiOS.iOS'
error : ld: file not found: D:TestTestBulletiOSTestBulletiOS.iOS/libbulletc.a
error : clang: error: linker command failed with exit code 1 (use -v to see invocation)

And here is the build log: TestBulletiOS.iOS_Debug_AnyCPU_Build_2023-09-20T14_26_19.8677783+02_00.binlog.zip

rolfbjarne commented 1 year ago

Using this different approach to link the library: <MtouchExtraArgs>$(MtouchExtraArgs) -cxx -gcc_flags "-L$(MSBuildProjectDirectory) -lbulletc -force_load $(MSBuildProjectDirectory)/libbulletc.a"</MtouchExtraArgs>

The project directory is also the current directory, so what happens if you do this:

<MtouchExtraArgs>$(MtouchExtraArgs) -cxx -gcc_flags "-L. -lbulletc -force_load ./libbulletc.a"</MtouchExtraArgs>