You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was getting the error attentive_react_native_sdk-Swift file not found. On searching, it looks like a common error on the way auto generated Swift header is imported from a pod.
Here is the diff that solved my problem:
diff --git a/node_modules/@attentive-mobile/attentive-react-native-sdk/ios/AttentiveReactNativeSdk.mm b/node_modules/@attentive-mobile/attentive-react-native-sdk/ios/AttentiveReactNativeSdk.mm
index 8090d58..a97660a 100644
--- a/node_modules/@attentive-mobile/attentive-react-native-sdk/ios/AttentiveReactNativeSdk.mm+++ b/node_modules/@attentive-mobile/attentive-react-native-sdk/ios/AttentiveReactNativeSdk.mm@@ -11,7 +11,7 @@
#import "AttentiveReactNativeSdk-Swift.h"
#else
// Load the headers from the attentive-ios-sdk Pod
-#import "attentive_react_native_sdk-Swift.h"+#import <attentive_react_native_sdk/attentive_react_native_sdk-Swift.h>
#endif
@implementation AttentiveReactNativeSdk {
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@attentive-mobile/[email protected]
for the project I'm working on.I was getting the error
attentive_react_native_sdk-Swift file not found
. On searching, it looks like a common error on the way auto generated Swift header is imported from a pod.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: