-
Notifications
You must be signed in to change notification settings - Fork 212
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
Builds fail when using OneSignal and FlutterYoutube #22
Comments
I just tried it again with a fresh flutter app...
update pubspec.yaml
follow instructions at: https://documentation.onesignal.com/v5.0/docs/flutter-sdk-setup and change bundle ids to ids that can actually be provisioned.
Then, I do a full clean of everything:
finally try building again
|
If I delete the OneSignalNotificationServiceExtension target, and try again:
success |
@jeffmikels it’s strange, the build error you’re getting is in regards to Can you post your Podfile and pubspec? |
No changes have been made to any file other than adding these two libraries to the pubspec.yaml. Here's proof: full pubspec
full Podfile
|
because of what you said, I have tried one more thing...
Then, I cleaned the build directory and all the DerivedData directories, and tried the build again... and I got this:
|
@jeffmikels from what I understand, you said removing the OneSignalNotificationServiceExtension target from your project fixed the build issue. In order to correctly set up the extension service, you’d need to add our dynamic framework to your extension target. Perhaps our docs are not clear enough on this - I will review them when I’m in the office tomorrow. But in the mean time, did you remove the notification service extension target from your podfile? |
PS: that’s a really weird one. Would it be possible for you to send a link to the full build log (from Xcode)? Don’t post it directly here since it will probably be enormous |
Tell me about the changes that need to be made to the podfile. I haven't made any additions or deletions from the podfile. Was I supposed to add something to the podfile when I added the notification service extension target? |
Running this command:
in response to this old post: Now, it's building... |
Strike that... I got one successful build. When I cleaned out the Derived Data directory again, the builds started failing again. |
|
I have tried switching to the master channel of flutter to no avail. Here is my latest full Xcode build log: https://gist.github.com/jeffmikels/c776b7eae07a77b6a5fd6c3239263d67 |
@Nightsd01 Did the build log show anything that makes sense to you? |
Without any guidance on a fix for this, I'm switching away from OneSignal to using Firebase Cloud Messaging directly. |
@jeffmikels Thanks for the full log. It looks like Xcode is building the
Can you check for this and remove from the target? |
Thanks for the tip. That might have solved the problem, but I have moved on from OneSignal. |
@jeffmikels Since you were, somehow, ending up with a project that was trying to embed Apologies for the delay in getting back to you, we've been quite busy since iOS 12 released but fortunately things are getting back to normal. |
Description:
After following the OneSignal setup guide (creating the Notification Service Extension) subsequent ios builds fail with the following error:
Environment
Steps to Reproduce Issue:
flutter build ios
worksflutter build ios
failsThe text was updated successfully, but these errors were encountered: