Skip to content
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

AppsFlyerLib/AppsFlyerAdRevenueData.h Not found when run ios #602

Open
harcorp opened this issue Jan 22, 2025 · 0 comments
Open

AppsFlyerLib/AppsFlyerAdRevenueData.h Not found when run ios #602

harcorp opened this issue Jan 22, 2025 · 0 comments

Comments

@harcorp
Copy link

harcorp commented Jan 22, 2025

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

When try to run the app in ios return erro AppsFlyerLib/AppsFlyerAdRevenueData.h not found. Is because the name of the file is different.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-appsflyer/ios/AFAdRevenueData.h b/node_modules/react-native-appsflyer/ios/AFAdRevenueData.h
index 2025468..1e3f913 100644
--- a/node_modules/react-native-appsflyer/ios/AFAdRevenueData.h
+++ b/node_modules/react-native-appsflyer/ios/AFAdRevenueData.h
@@ -4,6 +4,7 @@
 //
 //  Created by Veronica Belyakov on 26/06/2024.
 //
+NS_ASSUME_NONNULL_BEGIN
 
 typedef NS_CLOSED_ENUM(NSUInteger, AppsFlyerAdRevenueMediationNetworkType) {
     AppsFlyerAdRevenueMediationNetworkTypeGoogleAdMob = 1,
@@ -66,3 +67,4 @@ typedef NS_CLOSED_ENUM(NSUInteger, AppsFlyerAdRevenueMediationNetworkType) {
                                          eventRevenue:(NSNumber *_Nonnull)eventRevenue;
 
 @end
+NS_ASSUME_NONNULL_END
diff --git a/node_modules/react-native-appsflyer/ios/AppsFlyerLib.h b/node_modules/react-native-appsflyer/ios/AppsFlyerLib.h
index 5207ca7..fba7d4a 100644
--- a/node_modules/react-native-appsflyer/ios/AppsFlyerLib.h
+++ b/node_modules/react-native-appsflyer/ios/AppsFlyerLib.h
@@ -13,7 +13,7 @@
 #import <AppsFlyerLib/AppsFlyerDeepLinkResult.h>
 #import <AppsFlyerLib/AppsFlyerDeepLink.h>
 #import <AppsFlyerLib/AppsFlyerConsent.h>
-#import <AppsFlyerLib/AppsFlyerAdRevenueData.h>
+#import <AppsFlyerLib/AFAdRevenueData.h>
 
 NS_ASSUME_NONNULL_BEGIN
 

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant