-
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
Missing Headers <OneSignal/OneSignal.h> (Cocoapods issue) #21
Comments
Created an issue with Cocoapods here: CocoaPods/CocoaPods#8090 |
When I run
|
@CharlesCleveJr Can you try running |
Thanks! This fixed the |
I'm trying to use version 1.0.2 and I am not using Swift in my project. I do not see Is there a workaround for this? Reverting to version 1.0.0 and 1.0.1 did not help. There was another strange problem I ran into while adding this plugin to my project after adding the OneSignal pod requirement as tracked here: I'm not sure if that issue might be related to this problem? The only way I was able to work around the above issue was by creating a /Users/Projects folder. Then I also ran into this issue: And used the workaround there to get to this missing header bug. Also noting that I get the same problem when using the example app checked out from this repository. The only things I modified were the Bundle Identifiers to get the build to pass before blowing up on missing headers.
|
I also ran into this issue and only found the fix in this unrelated issue. Can the documentation be updated to include the |
Any update? |
Everything builds correctly in flutter but in XCode I'm getting the following error on my OneSignalExtension target |
I got around the lBolts clang error I think and now I'm getting this... Never seen it before. Any ideas? |
Any updates? |
Do you remove "use_frameworks!"? |
No. I did disable bitcode on the Notification Service Target and it successfully built in XCode and Flutter. This wouldn't cause any errors when I archive and push to Apple would it? |
@Nightsd01 any updates on this? |
Try to comment "use_frameworks!" |
By then, Other plugins didn't work. |
@Nightsd01 Any updates? |
@Nightsd01 any update this is critical |
I've done some more research recently and didn't make a lick of progress. For now, my only recommendation is to not use any Swift in your project and comment out We will continue to investigate this since it doesn't seem like the issue in Cocoapods isn't making any headway |
@Nightsd01 that is not an option firebase alone requires |
@rlee1990 firebase does not requires it, I use firebase auth and database currently without any issues |
@rostopira it does if you used swift when creating the project and other packages use swift and it can cause issues |
@rlee1990 unfortunately if anything in your project requires |
I ended up and use firebase_messaging package. |
@muarifer thats what i was using but their is not a way of handling foreground messages in ios the way it should be |
any updates? |
I asked the same question on the CocoaPods issue: I would appreciate any workaround ideas and am willing to try anything :) My project is Swift-based and uses |
I'm not sure whether this post helps. You can upgrade your CocoaPods to 1.5.0 and you wouldn't need |
@anderscheow I just tested this and it does not work still get the same error. |
Any update? I wish to use
using
did not help. |
@westlinkin , |
News for this? I need this feature for iOS push notifications :( |
Any news on this bug? We also need this for iOS notifications :) |
the "next two weeks" passed |
Switching to FCM |
Hi everyone, |
Hello, can anyone estimate when there will be a version of the Flutter Plugin? |
Any update? I tried the workaround mentioned but was still getting some issues. |
@chrispratt |
Same error.. fatal error: 'OneSignal/OneSignal.h' file not found onesignalflutter: Anyone? |
I have the same error that @rdgoutiyama when using the workaround :( |
@rdgoutiyama @leonardohklaus If you are still seeing an issue please run For reference I have tried the following latest versions without issues.
|
Sorry it took so long to get back! I just tried release version 2.0.0 and I get the error:
I dug around and thought this may be a plist issue so I tried adding the info.plist from the OneSignalNotificationServiceExtension folder in the
I'm not sure if any of that helps but I appreciate any guidance you have. Also for reference, my output from flutter doctor is:
My podfile is:
|
I get this error when trying to build for android:
|
@chrispypatt Did you get any other errors before the "error: Build input file cannot be found:" error? I don't believe that error is related to the .plist file. You shouldn't have to add your .plist file to Can you check the example project for reference? Some things to compare would be your Podfile. These lines specifically. I noticed you have |
@dukaric1991 Since the original issue is related to an iOS build issue can you open a new issue related to this Android build issue? To save some back and forth though before creating a new issue, do you have anything custom in your |
android\build.gradle:
android\app\build.gradle:
gradle.properties:
gradle-wrapper.properties:
|
I'm not at my personal computer right now so I can't double-check the errors I was getting but don't believe there was anything else related to this issue. The only other Xcode output I have been getting is typical for my project where it occasionally warns me about issues related to my target device. This is because I am using Flutter with Xcode11. I can post what I am seeing there tonight in case it is related.
I can check the project settings tonight when I'm at my personal computer. The only other difference I see off the bat is I'm using swift instead of Obj-C.
I have other dependencies that rely on Does it matter where I put the line?:
I have mine before the post_install. |
@rgomezp Thanks for the help getting this working. I compared my project line for line in build settings and build phases and got it working. Mine had several differences but finally got it working! |
@chrispypatt Good to hear, sounds like the 2.0.0 SDK update has resolve the cocoapods issues! Locking this issue, please open a new issue for there are any further iOS Cocoapod issues. Thanks. |
When using 1.0.2 of our Flutter SDK, some users that uses
use_frameworks!
in their podfiles (Swift projects) may see the following error:It appears to be an issue with how our Flutter SDK is unable to find headers for the native iOS SDK. I am working on this issue now.
The text was updated successfully, but these errors were encountered: