-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error : Duplicate interface definition #36
Comments
I'm facing same issue here. Same error coming up and I followed the same steps as you. Nothing worked |
I solved it by editing pubspec.yaml of "sms_advanced" plugin. (Not App's pubspec.yaml) Edit from this
To this
|
Same problem, @faslurajan where is located that pubspec.yaml? |
added sms_advavanced on root/pubspec.yaml file like below
To this
|
thanks for your help. No luck, same results. |
Try doing a flutter clean |
thanks, flutter clean was the solution |
Hi , I’m using Flutter 3.13.7 and I’m trying to add the sms_advanced plugin version 1.1.0 to my project, when I run the app using Flutter run I get an error from the Xcode 15 build that says Semantic Issue (Xcode): Duplicate interface definition for class 'SmsAdvancedPlugin', after the error I can’t run the emulator in the project even if I delete the plugin im using Macbook pro m1 / VScode / iphone 15 pro max emulator
I tried to install the plugin using flutter pub get sms_advanced , and tried to install using the dependencies way and flutter pub get
2.Reinstalled Xcode and make sure that the app is updated
3.I tried to delete the duplication in the ms_advanced-Swift.h file but when i run the app the definition that i just deleted come back .
4.flutter clean / clean build in Xcode and rebuild
5.start new flutter projects
The text was updated successfully, but these errors were encountered: