-
Notifications
You must be signed in to change notification settings - Fork 374
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]: OneSignal/OneSignal.h file not found #1440
Comments
Facing same issue with following environment:
react-native-onesignal version according to
Onesignal contents in
|
Have the same problem, but on a different package version. The environment is the same:
|
I see this in Debug builds and not on Release configuration, e.g. |
Facing the same issue with Xcode 14, but can achieve success. |
the same issuse |
The solution seems to be: After doing the above, error should not appear. |
OneSignal/OneSignal.h is in https://documentation.onesignal.com/docs/react-native-sdk-setup Please see "Manually updating iOS OneSignalNativeSDK" above step 6. |
[Update] If you install all of package. then you open file.xcworkspace and build ! file.xcodeproj has some bug |
Fixed for me! |
Xcode 15.0 beta 3 has same problem with M2 Mac |
Has anyone found any solution for this? I get the same error: |
I think the documentation was updated and needs to be updated to |
I am having the same issue.
I can see it installs:
But when fastlane is run I get the dreaded:
Any idea? |
for this issue, I've used
with
since react-native-onesignal uses |
same issue here. I spent all of the day to resolve it but nothing worked.
|
@Diaa-Ghonim See @aindong response |
it is not a completed answer, which parts I have to patch them. and I added this to my pod file
anyone can explain clear steps please to fix this issue?? my machine is mac m1 |
it should be Also check if you have a |
Unfortunately, the issue remains unresolved. I upgraded the
I am using |
https://documentation.onesignal.com/docs/ios-sdk-setup#4-notification-service-extension maybe in the objective-c file, write #import <OneSignalExtension/OneSignalExtension.h> instead of #import <OneSignal/OneSignal.h> // or #import <OneSignalFramework/OneSignalFramework.h> not sure about it though, but at home it seems to compile |
any idea? |
I confirm on my side: for OneSignal v5+, I replace #import <OneSignalExtension/OneSignalExtension.h> and it's compiling |
Hello @arnaudambro, Thank you for your reply. Where exactly should I add this line? Here is my react-native-onesignal package in node_modules (version 4.4.1) (first image). And here, as well, is the pods file and the react-native-onesignal pod (second image). So, what should I do exactly to make the compilation succeed? |
you should have a Notification Service Extension: https://documentation.onesignal.com/docs/ios-sdk-setup#4-notification-service-extension quoting:
#import <OneSignalExtension/OneSignalExtension.h>
#import "NotificationService.h"
@interface NotificationService ()
@property (nonatomic, strong) void (^contentHandler)(UNNotificationContent *contentToDeliver);
@property (nonatomic, strong) UNNotificationRequest *receivedRequest;
@property (nonatomic, strong) UNMutableNotificationContent *bestAttemptContent;
... this is where the |
For expo users, new update on the expo plugin is out, it should fix your problems about the missing header https://github.com/OneSignal/onesignal-expo-plugin/releases/tag/2.0.0 |
olá consegui resolver alterando |
I tried all these solutions but didn't fix the issue. any help please? |
Tried every sugestion here but none work.... |
Unfortunately, this issue has occurred again, and I attempted the same solution, but it did not work. help again guys 😢 😞 |
I got rid of this error by It's curious that I had to exclude the architecture and build to solve this problem Then the import error appeared so I though by removing the excluded arch the linking error would show again but it didn't. |
I'm not an expert on the topic but I think deintegrating and updating doesn't affect all files for some reason, I noticed the "OneSignal/OneSignal.h file not found" error I had was in the Development Pods folder I manually deleted everything in this folder and ran |
Same issue here! |
What happened?
Hello, im currently trying to do Archive on my XCode and failing with
Lexical or Preprocessor Issue => OneSignal/OneSignal.h file not found
Already tried reinstalling pods and creating a new notifications extension following the installation guide.
Steps to reproduce?
What did you expect to happen?
I expected to complete the xcode archive.
React Native OneSignal SDK version
4.3.3
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: