maui icon indicating copy to clipboard operation
maui copied to clipboard

IOS Compiling Error

Open SantosVictorero opened this issue 2 years ago • 4 comments

Description

Severity Code Description Project File Line Suppression State Error clang++ exited with code 1: Undefined symbols for architecture x86_64: "_gprsharp_convert_clock_type", referenced from: -u command line option "_gprsharp_free", referenced from: -u command line option "_gprsharp_inf_future", referenced from: -u command line option "_gprsharp_inf_past", referenced from: -u command line option "_gprsharp_now", referenced from: -u command line option "_gprsharp_sizeof_timespec", referenced from: -u command line option "_grpcsharp_auth_context_peer_identity_property_name", referenced from: -u command line option "_grpcsharp_auth_context_property_iterator", referenced from: -u command line option "_grpcsharp_auth_context_release", referenced from: -u command line option "_grpcsharp_auth_property_iterator_next", referenced from: -u command line option "_grpcsharp_batch_context_create", referenced from: -u command line option "_grpcsharp_batch_context_destroy", referenced from: -u command line option "_grpcsharp_batch_context XXX.xxx (Apps\XXX.xxx) C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.0.1271-rc.2-xcode14\targets\Xamarin.Shared.Sdk.targets 1230

Steps to Reproduce

  1. Select IOS Simulator or Device
  2. Rebuild

Link to public reproduction project repository

N/A

Version with bug

7.0 Release Candidate 2

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

IOS 14

Did you find any workaround?

No

Relevant log output

Severity	Code	Description	Project	File	Line	Suppression State
Error		clang++ exited with code 1:
Undefined symbols for architecture x86_64:
  "_gprsharp_convert_clock_type", referenced from:
     -u command line option
  "_gprsharp_free", referenced from:
     -u command line option
  "_gprsharp_inf_future", referenced from:
     -u command line option
  "_gprsharp_inf_past", referenced from:
     -u command line option
  "_gprsharp_now", referenced from:
     -u command line option
  "_gprsharp_sizeof_timespec", referenced from:
     -u command line option
  "_grpcsharp_auth_context_peer_identity_property_name", referenced from:
     -u command line option
  "_grpcsharp_auth_context_property_iterator", referenced from:
     -u command line option
  "_grpcsharp_auth_context_release", referenced from:
     -u command line option
  "_grpcsharp_auth_property_iterator_next", referenced from:
     -u command line option
  "_grpcsharp_batch_context_create", referenced from:
     -u command line option
  "_grpcsharp_batch_context_destroy", referenced from:
     -u command line option
  "_grpcsharp_batch_context	XXX.xxx (Apps\XXX.xxx)	C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.0.1271-rc.2-xcode14\targets\Xamarin.Shared.Sdk.targets	1230

SantosVictorero avatar Oct 25 '22 18:10 SantosVictorero

BTW, this app works fine with Android and Windows.

SantosVictorero avatar Oct 25 '22 18:10 SantosVictorero

Hi @SantosVictorero. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Oct 27 '22 18:10 ghost

I've just hit this wall with something similar in VS 2022 and VS 2022 preview on macos Monteray. Used the simulator iPhone 14 Pro iOS 16.0 and Andoid Emulator.

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error : clang++ exited with code 1:
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error : Undefined symbols for architecture x86_64:
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :   "_xamarin_UIApplicationMain", referenced from:
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :      -u command line option
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :   "_xamarin_invoke_conforms_to_protocol", referenced from:
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :       -[MessageUI_Mono_MFMailComposeViewControllerDelegate conformsToProtocol:] in Microsoft.iOS.registrar.a
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :       -[MessageUI_Mono_MFMessageComposeViewControllerDelegate conformsToProtocol:] in Microsoft.iOS.registrar.a
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :       -[HomeKit_HMAccessorySetupManager conformsToProtocol:] in Microsoft.iOS.registrar.a
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :       -[GameKit_GKPeerPickerControllerDelegate conformsToProtocol:] in Microsoft.iOS.registrar.a
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :       -[GameKit_GKPeerPickerController conformsToProtocol:] in Microsoft.iOS.registrar.a
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :       -[GameKit_Mono_GKSessionDelegate conformsToProtocol:] in Microsoft.iOS.registrar.a
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :       -[Foundation_NSDispatcher conformsToProtocol:] in Microsoft.iOS.registrar.a
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error :       ...
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error : ld: symbol(s) not found for architecture x86_64
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.0.523/targets/Xamarin.Shared.Sdk.targets(1222,3): error : clang: error: linker command failed with exit code 1 (use -v to see invocation)

lnaie avatar Oct 28 '22 07:10 lnaie

Hi @SantosVictorero. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Oct 28 '22 14:10 ghost

I have not been able to pair to my Mac either since I updated to Ventura: See https://github.com/dotnet/maui/issues/10979

Also as you can see from my post this is a Grpc issue of .NET Maui and iOS.

I have been using Grpcweb with Blazor WebAssembly without any problems for a while.

Also as I said before, this app works fine with Android and Windows. Although I have not been able to use Windows with authentication do to another issue: https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/communication/authentication?tabs=windows

Hopefully all those issues are addressed ASAP.

SantosVictorero avatar Oct 30 '22 18:10 SantosVictorero

Finally I was able to pair to my Mac and I created a repro of this bug at: https://github.com/SantosVictorero/Maui-Practice/tree/master

SantosVictorero avatar Nov 04 '22 00:11 SantosVictorero

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Nov 07 '22 15:11 ghost

Is there any known workaround for this? I understand the implementation of the GRPC library causes this, but it is very problematic not to have any known way to support GRPC in MAUI on macos.

eskaufel avatar Dec 12 '22 08:12 eskaufel

the same issue in my side, Is there any known workaround for this?

AramMar avatar Feb 03 '23 08:02 AramMar

hi @SantosVictorero, did you find any workaround for this issue?

AramMar avatar May 08 '23 11:05 AramMar

@rolfbjarne Any advice here?

samhouts avatar May 25 '23 16:05 samhouts

Grpc is deprecated: https://grpc.io/blog/grpc-csharp-future/

Use Grpc.Net.Client instead: https://github.com/grpc/grpc-dotnet

See also https://learn.microsoft.com/en-us/aspnet/core/grpc/?view=aspnetcore-7.0

rolfbjarne avatar May 25 '23 17:05 rolfbjarne

hi @SantosVictorero, did you find any workaround for this issue?

Sorry @AramMar, I just saw your post. I never found a workaround, I had to postpone that project.

SantosVictorero avatar May 29 '23 18:05 SantosVictorero

Grpc is deprecated: https://grpc.io/blog/grpc-csharp-future/

Use Grpc.Net.Client instead: https://github.com/grpc/grpc-dotnet

See also https://learn.microsoft.com/en-us/aspnet/core/grpc/?view=aspnetcore-7.0 @rolfbjarne, thanks for the late reply! :-)

SantosVictorero avatar May 29 '23 18:05 SantosVictorero

thanks for your reply, i am using Grpc.Net.Client, unfortunately the same issue for that one also

AramMar avatar May 29 '23 22:05 AramMar

thanks for your reply, i am using Grpc.Net.Client, unfortunately the same issue for that one also

In that case, please file a new issue and provide a test project we can use to reproduce the problem.

rolfbjarne avatar May 30 '23 06:05 rolfbjarne