Sunday, May 31, 2026
HomeiOS Developmentios - XCODE COMPILE ERROR ON SMS_ADVANCED PLUGIN

ios – XCODE COMPILE ERROR ON SMS_ADVANCED PLUGIN

[ad_1]

Hi all,

Making an attempt compile my app, generates an error in Xcode. My app works superb
until I add sms_advanced plugin, I exploit precisely the code given in pattern
instance for sending sms through IPHONE (IOS construct).

Listed below are flutter physician, logs of compile and code used to ship an SMS.

Flutter physician : Flutter physician log: % flutter physician Physician abstract
(to see all particulars, run flutter physician -v): [✓] Flutter (Channel
grasp, 2.6.0-12.0.pre.837, on macOS 11.6.1 20G224 darwin-arm, locale
en-FR) [✓] Android toolchain – develop for Android units (Android
SDK model 31.0.0) [✓] Xcode – develop for iOS and macOS (Xcode 13.1)
[✓] Chrome – develop for the online [✓] Android Studio (model 2020.3)
[✓] VS Code (model 1.62.3) [✓] Related machine (2 obtainable)

Compile log:

Working Xcode construct… Xcode construct achieved. 11.1s Did not construct iOS app
Error output from Xcode construct: ↳
** BUILD FAILED **

Xcode’s output: ↳
/Customers/theUser/.pub-cache/hosted/pub.dartlang.org/sms_advanced-1.0.1/ios/Courses/SmsAdvancedPlugin.m:13:4:
error: unknown receiver ‘SwiftSmsAdvancedPlugin’; did you imply
‘SmsAdvancedPlugin’? [SwiftSmsAdvancedPlugin
registerWithRegistrar:registrar]; ^~~~~~~~~~~~~~~~~~~~~~
SmsAdvancedPlugin In file included from
/Customers/theUser/.pub-cache/hosted/pub.dartlang.org/sms_advanced-1.0.1/ios/Courses/SmsAdvancedPlugin.m:1:
/Customers/theUser/.pub-cache/hosted/pub.dartlang.org/sms_advanced-1.0.1/ios/Courses/SmsAdvancedPlugin.h:3:12:
word: ‘SmsAdvancedPlugin’ declared right here @interface SmsAdvancedPlugin :
NSObject ^ 1 error generated. word: Utilizing new construct system word:
Planning word: Construct preparation full word: Constructing targets in
parallel

Couldn’t construct the precompiled utility for the machine.

Error launching utility on iPhone.

SAMPLE CODE:

void primary() {
  SmsSender sender = new SmsSender();
  String handle = someAddress();
  SmsMessage message = new SmsMessage(handle, 'Hi there flutter world!');
  message.onStateChanged.hear((state) {
    if (state == SmsMessageState.Despatched) {
      print("SMS is shipped!");
    } else if (state == SmsMessageState.Delivered) {
      print("SMS is delivered!");
    }
  });
  sender.sendSms(message);
}

Can somebody assist me find out how to resolve this concern please?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments