This is an SMS library for Flutter. Its allow to send, receive, query sms messages, sms delivery and query contacts info. Currently supporting only android
MIT License
31
stars
69
forks
source link
Compile errror on MacOS for plugin sms_advanced #6
Trying to compile my APP which uses sms_advanced wont work.
Is there any solution for this issue ?
Thanks in advance.
Flutter doctor log:
% flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.6.0-12.0.pre.837, on macOS 11.6.1 20G224 darwin-arm, locale en-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.62.3)
[✓] Connected device (2 available)
log of compile:
Running Xcode build...
Xcode build done. 11.1s
Failed to build iOS app
Error output from Xcode build:
↳
BUILD FAILED
Xcode's output:
↳
/Users/theUser/.pub-cache/hosted/pub.dartlang.org/sms_advanced-1.0.1/ios/Classes/SmsAdvancedPlugin.m:13:4: error: unknown receiver 'SwiftSmsAdvancedPlugin'; did you mean 'SmsAdvancedPlugin'?
[SwiftSmsAdvancedPlugin registerWithRegistrar:registrar];
^~~~~~
SmsAdvancedPlugin
In file included from /Users/theUser/.pub-cache/hosted/pub.dartlang.org/sms_advanced-1.0.1/ios/Classes/SmsAdvancedPlugin.m:1:
/Users/theUser/.pub-cache/hosted/pub.dartlang.org/sms_advanced-1.0.1/ios/Classes/SmsAdvancedPlugin.h:3:12: note: 'SmsAdvancedPlugin' declared here
@interface SmsAdvancedPlugin : NSObject
^
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
Could not build the precompiled application for the device.
Trying to compile my APP which uses sms_advanced wont work. Is there any solution for this issue ? Thanks in advance.
Flutter doctor log: % flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel master, 2.6.0-12.0.pre.837, on macOS 11.6.1 20G224 darwin-arm, locale en-FR) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2020.3) [✓] VS Code (version 1.62.3) [✓] Connected device (2 available)
log of compile:
Running Xcode build... Xcode build done. 11.1s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED
Xcode's output: ↳ /Users/theUser/.pub-cache/hosted/pub.dartlang.org/sms_advanced-1.0.1/ios/Classes/SmsAdvancedPlugin.m:13:4: error: unknown receiver 'SwiftSmsAdvancedPlugin'; did you mean 'SmsAdvancedPlugin'? [SwiftSmsAdvancedPlugin registerWithRegistrar:registrar]; ^
^
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
~~~~~ SmsAdvancedPlugin In file included from /Users/theUser/.pub-cache/hosted/pub.dartlang.org/sms_advanced-1.0.1/ios/Classes/SmsAdvancedPlugin.m:1: /Users/theUser/.pub-cache/hosted/pub.dartlang.org/sms_advanced-1.0.1/ios/Classes/SmsAdvancedPlugin.h:3:12: note: 'SmsAdvancedPlugin' declared here @interface SmsAdvancedPlugin : NSObjectCould not build the precompiled application for the device.
Error launching application on iPhone.