MAUI - iOS - clang++ exited with code 1

Adarsha Almane Shripadabhat 0 Reputation points
2023-09-14T04:18:36.1333333+00:00

I am getting below error after adding twilio package. App is builiding on simulator. But on device it is failing. Kindly help on this


/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7099/targets/Xamarin.Shared.Sdk.targets(3,3): Error: clang++ exited with code 1:
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_TVIAppScreenSource", referenced from:
      objc-class-ref in registrar.o
  "_OBJC_CLASS_$_TVIAppScreenSourceOptions", referenced from:
      objc-class-ref in registrar.o
  "_OBJC_CLASS_$_TVIAppScreenSourceOptionsBuilder", referenced from:
      objc-class-ref in registrar.o
  "_OBJC_CLASS_$_TVIAudioCodec", referenced from:
      objc-class-ref in registrar.o
  "_OBJC_CLASS_$_TVIAudioFormat", referenced from:
      objc-class-ref in registrar.o
  "_OBJC_CLASS_$_TVIAudioOptions", referenced from:
      objc-class-ref in registrar.o
  "_OBJC_CLASS_$_TVIAudioOptionsBuilder", referenced from:
      objc-class-ref in registrar.o
  "_OBJC_CLASS_$_TVIAudioTrack", referenced from:
      objc-class-ref in registrar.o
  "_OBJC_CLASS_$_TVIAudioTrackPublication", referenced from:
      objc-class-ref in registrar.o
  "_OBJC_CLASS_$_TVIBandwidthProfileOptions", referenced from:
      objc-class-ref in registrar.o
  "_OBJC_CLASS_$_TVIBaseTrackStats", referenced fr (TwilioTestMAUI)
Developer technologies .NET .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2023-09-15T04:39:01.81+00:00

    Hello,

    By searching for this third-party package , its compatible target framework(s) doesn't contain MAUI (.net-ios), so you cannot use it.

    In addition, TVIAppScreenSource is a class in the Twilio iOS SDK, the error you got is caused by the null object in native iOS. Please connect the owners for further help, and they list their GitHub Repo, you could try to get support there.

    (I also search for some other iOS binding libraries about twilio, they don't support MAUI)

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.