Open asadamatic opened 8 months ago
I am having same issue, with error on Podfile import:
import UserNotifications
import OneSignalExtension // < Shows error No such modlue 'OneSignalExtension'
// rest of the swift code...
I am using Xcode version 14.1 and flutter version 3.19.6 with Dart 3.3.4. I have repeated steps 3 times following guide. Only thing that isn't available in this Xcode is "Minimum Deployments" for iOS version. There is only "Deployment Target".
@asadamatic have you managed to get it working?
I am having the exact same problem. @markosole have you found a solution?
Hi @elishae621 yes I have manged to sort it out and it works now. There are few things that I did:
onesignal_flutter: ^5.1.6
Delete ios
folder (or rename if you need something from it)
flutter clean
flutter pub get
Runner
project by following procedure from OneSignal docs
NOTE: Pay attention on step when you have to navigate in /ios
drectory and execute pod install
One last thing is to adjust settings in your project (you will run into issues if you don't. Check this post for details: https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/790
In Xcode, in your app target build phases, you should have something called "Embed App Extensions" or "Embed Foundation Extensions" at the end of the build phases. If you drag it BEFORE "Run Script", it should prevent this build error to happen.
It will probably be somewhere at the bottom, so drag and drop it above. Now your can built your app ;)
Getting the same error when building. I followed the instructions from here:
https://documentation.onesignal.com/docs/flutter-sdk-setup
But still getting the No Module Found "OneSignalExtension"
Not sure how to fix this.
same here
What happened?
I followed this Flutter SDK setup guide. I used the provided swift code and my iOS build kept failing after it. I rebuilt my app using XCode, and it gave me this error in the
NotificaitonService
swift file.Steps to reproduce?
What did you expect to happen?
I expected the code from the official guide to work without any issues.
OneSignal Flutter SDK version
Release 5.1.2
Which platform(s) are affected?
Relevant log output
Code of Conduct