-
Notifications
You must be signed in to change notification settings - Fork 215
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
[Bug]: Getting error when tryping to run on iOS17 - XCode 15 #746
Comments
Hello I apologize we are working on updating our migration guide here. You likely need to update your import in your Notification Service Extension to be |
This has been an enormous time suck trying to migrate - and now I'm finding out the docs aren't finished yet. |
@tgloc96 Interesting I am not able to reproduce that. The only similar issue I have found is this one in another SDK |
Hello @dchandrani |
@ThakarRajesh It's not working in my case. |
@ThakarRajesh Getting error Framework 'OneSignal' not found. |
same here after upgrade xcode version to 15 |
@emawby Did add the way you have mentioned. But still not able to build the project. |
Add like emawby mentioned and |
The same problem, and I looked at this, it works. |
Sorry like andj207 mentioned you also must |
@emawby import OneSignalFramework in what file? |
@secretmoo35 I appreciate the response, but I had already tried that and it didn't work. @emawby I was able to figure out what you meant by |
Also having this issue on M1. OneSignal integration is very frustrating, the amount of effort that we invested in constantly getting this thing to work has been massive. If this isn't resolved in timely manner we'll be switching. |
@shkvoretz Nobody can help you without specifics. Are you getting the exact same error: "'OneSignal' not found"? If so, follow the instructions that @emawby said to do, use Swift instead of Objective-C for your Notification Service Extension, and then copy this code into the Notification.swift under the OneSignalNotificationServiceExtension folder:
|
I know it seems difficult, but I think all notification service providers have a tough setup, and from what I've heard, OneSignal has the best service with one of the easiest setups. The issue is that they are doing a huge update from 3.x to 5.x. It's frustrating for sure, I spend 8 hours of a 12 hour day on fixing our implementation yesterday. However, the alternatives are probably worse, you're welcome to try them out though. |
@shkvoretz Unfortunately these issues are with Cocoapods/NotificationServiceExtensions and are hard to debug if we cannot reproduce them. If none of the solutions in these threads have resolved your issue could you share a sample project that is experiencing the problem? |
Solved it... Phew after 3 days |
What happened?
I updated my Xcode and migrated onesignal_flutter to 5.0.1. I have also updated pod file as instructed (pod 'OneSignalXCFramework', '>= 5.0.0', '< 6.0').
Still, I'm getting this error:
Error (Xcode): Framework 'OneSignal' not found
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Steps to reproduce?
What did you expect to happen?
You might encounter following error:
Failed to build iOS app
Error (Xcode): Framework 'OneSignal' not found
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator.
Error launching application on iPhone 15.
OneSignal Flutter SDK version
5.0.1
Which platform(s) are affected?
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: