Skip to content

when giving ios binding library project refrence in maui project its name space not working im not able to call apidefination methods also when building separate Twilio.Voice ios binding project dll is generating filne i check in dot peek #23796

Closed

Description

@smartdataAS

Apple platform

No response

Framework version

net8.0-*

Affected platform version

8

Description

i have ios binding project in whichi have used twiliovoice.xcframework dll genrating fine as i have checked in dot peek issue is when i give my ios binding library project refrence in maui project it wont working im not able to call its apidefination methods but if i add sample class in binding library project and call that sample class im able to call only apidefinations are not calling getting not found i try with dll where im able to call my methods but when try to register it wont work also im using windows and connected with mac and using dotnert8

Steps to Reproduce

Did you find any workaround?

No response

Build logs

No response

Activity

  1. rolfbjarne commented on Sep 11, 2025

    @rolfbjarne
    Member

    Please provide a complete solution (both binding project + a test project that uses the binding project) we can use to reproduce the problem.

  2. added
    need-info
    on Sep 11, 2025
  3. added this to the Future milestone on Sep 11, 2025
  4. smartdataAS commented on Sep 12, 2025

    @smartdataAS
    Author

    I have attached my ios binding library project every time i reference this project in MAUI project it wont work also im getting error as
    below is the output log
    2>--custom-step "-MarkStep:Xamarin.SetupStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "-MarkStep:Xamarin.Linker.CollectAssembliesStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "-MarkStep:MonoTouch.Tuner.CoreTypeMapStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "-MarkStep:MonoTouch.Tuner.ProcessExportedFields,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "-MarkStep:MonoTouch.Tuner.RegistrarRemovalTrackingStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "-OutputStep:Xamarin.Linker.LoadNonSkippedAssembliesStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "-OutputStep:Xamarin.Linker.ExtractBindingLibrariesStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "-OutputStep:Xamarin.Linker.Steps.ListExportedSymbols,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "-OutputStep:Xamarin.Linker.Steps.PreOutputDispatcher,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "-OutputStep:Xamarin.Linker.ClassHandleRewriterStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "Xamarin.Linker.RegistrarStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "Xamarin.GenerateMainStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "Xamarin.GenerateReferencesStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "Xamarin.GatherFrameworksStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "Xamarin.Linker.ComputeNativeBuildFlagsStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "Xamarin.Linker.ComputeAOTArguments,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--custom-step "Xamarin.Linker.DoneStep,/Users/rahul.bajaj/Library/Caches/Xamarin/XMA/SDKs/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/tools/dotnet-linker/dotnet-linker.dll"
    2>--skip-unresolved true --notrimwarn --custom-data "LinkerOptionsFile=obj/Debug/net8.0-ios/ios-arm64/custom-linker-options.txt" --custom-data DisableMarkingOfCopyAssemblies=true --verbose -b --disable-opt unusedtypechecks --enable-serialization-discovery
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk.net8.0_18.0\18.0.8324\tools\msbuild\iOS\Xamarin.iOS.Common.After.targets(364,3): warning MT4174: Unable to locate the block to delegate conversion method for the method Onkout.Mobile.Service.Platforms.iOS.AppDelegate.DidReceiveIncomingPush's parameter #4.
    2>
    2>Tool xcrun execution finished (exit code = 1).
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : clang++ exited with code 1:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : Undefined symbols for architecture arm64:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOAcceptOptions", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOAcceptOptionsBuilder", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOAudioOptions", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOAudioOptionsBuilder", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOCall", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOCallInvite", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOCallMessage", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOCallMessageBuilder", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOCancelledCallInvite", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOConnectOptions", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVOConnectOptionsBuilder", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_TVODefaultAudioDevice", referenced from:
    2>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8324\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
    2>Done building project "Onkout.Mobile.csproj" -- FAILED.

    Twilio.Voice.zip

  5. added
    need-attention
    and removed
    need-info
    on Sep 12, 2025
  6. smartdataAS commented on Sep 16, 2025

    @smartdataAS
    Author

    any update team ?

  7. rolfbjarne commented on Sep 16, 2025

    @rolfbjarne
    Member

    The problem is that your xcframework is inside the xcframework directory (see the last line):

    $ ls -la TwilioVoice.xcframework/
    total 80
    drwxrwxr-x@  8 rolf  staff    256 Sep 10 11:02 .
    drwxr-xr-x@ 12 rolf  staff    384 Sep 16 12:53 ..
    -rw-rw-r--@  1 rolf  staff  13580 Aug 29 14:15 ACKNOWLEDGEMENTS.md
    -rw-rw-r--@  1 rolf  staff     76 Aug 29 14:15 changelog.url
    drwxrwxr-x@ 13 rolf  staff    416 Sep 10 11:02 Documentation
    -rw-rw-r--@  1 rolf  staff    899 Aug 29 14:15 README.md
    -rw-rw-r--@  1 rolf  staff  15749 Aug 29 14:15 TwilioVoice Size Impact Report.txt
    drwxrwxr-x@  6 rolf  staff    192 Sep 10 11:02 TwilioVoice.xcframework
    

    This means that the NativeReference item in your binding project must be like this:

    <NativeReference Include="TwilioVoice.xcframework/TwilioVoice.xcframework">

    Can you try this and see if it works for you?

  8. added
    need-info
    binding-projects
    and removed
    need-attention
    on Sep 16, 2025
  9. smartdataAS commented on Sep 18, 2025

    @smartdataAS
    Author

    I already try this and my linker issue get resolved but when i gave twilio.voice ios binding library project reference to my MAUI dotnet8 my namespace is not working also my apidefination methods are not accessible even i have ios condition as well when referencing and after build i see that DLL is generating fine but still errors for namespace please provide me any working sample demonstrating sdk version in maui in dotnet 8 MAUI

  10. added
    need-attention
    and removed
    need-info
    on Sep 18, 2025
  11. smartdataAS commented on Sep 18, 2025

    @smartdataAS
    Author

    MSBuild was unable to connect to the Mac with Address='172.24.0.136' and User='isteam'. This connection is separate from Visual Studio and without it the project can't build. Please try building again or report this problem if the issue persists

    Also any idea why im suddenly getting this error while connecting with mac from vs windows.

  12. 8 remaining items

  13. rolfbjarne commented on Oct 9, 2025

    @rolfbjarne
    Member

    This works for me: tw-1ee21d1.zip

  14. added
    need-info
    no-auto-reply
    and removed
    need-attention
    on Oct 9, 2025
  15. aronDisi commented on Oct 13, 2025

    @aronDisi

    The problem is that the binding project produces an empty reference assembly before the build (in my case on a remote Mac). I had luck for a while using the following in the csproj file of the binding project but my troubles have returned this morning for no apparent reason.
    In the first PropertyGroup I have:

        <ProduceReferenceAssembly>false</ProduceReferenceAssembly>

    Near the end I have:

      <Target Name="ForceUsableReferenceAssembly" AfterTargets="Build">
        <MakeDir Directories="$(IntermediateOutputPath)ref" />
        <Copy SourceFiles="$(TargetPath)" DestinationFiles="$(IntermediateOutputPath)ref\$(TargetFileName)" OverwriteReadOnlyFiles="true" />
        <Message Text="Forced reference assembly copied from implementation: $(IntermediateOutputPath)ref\$(TargetFileName)" Importance="High" />
      </Target>
  16. added
    need-attention
    and removed
    need-info
    on Oct 13, 2025
  17. added
    need-info
    no-auto-reply
    and removed
    need-attention
    on Oct 13, 2025
  18. dotnet-policy-service commented on Oct 21, 2025

    @dotnet-policy-service

    Hi @@smartdataAS. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you.

  19. removed this from the Future milestone on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    binding-projectsneed-info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions