adventurous-petabyte-6019
06/06/2023, 1:02 PM'RNRudderSdk/RNRudderAnalytics.h' file not found
1. rudderstack/rudder-integration-appsflyer-react-native": "^1.5.6
2. pod 'Rudder-Appsflyer'
How to fix it? Thanks!salmon-plastic-31303
06/06/2023, 7:39 PMsalmon-plastic-31303
06/06/2023, 7:40 PMsalmon-plastic-31303
06/06/2023, 7:44 PMcalm-yak-10773
06/07/2023, 3:37 AMnpm install @rudderstack/rudder-sdk-react-native --save
to install the Rudder React-Native package.
• Then, navigate to your iOS folder and then run this command: pod deintegrate && rm podfile.lock && pod install
.
• Start building the app again. Hopefully, the error should be resolved now.
• If the error persists try creating a new React-Native project and then perform the above action.
LMK if it helps!adventurous-petabyte-6019
06/07/2023, 7:19 AMcalm-yak-10773
06/07/2023, 7:33 AMnpm install @rudderstack/rudder-sdk-react-native --save
and then run pod deintegrate && rm podfile.lock && pod install
in your iOS project?
Also, can you please share your Podfile.lock
and package.json
files. I want to see, if it contains the required libraries related to the Rudderstack or not!adventurous-petabyte-6019
06/07/2023, 7:34 AMcalm-yak-10773
06/07/2023, 7:48 AMadventurous-petabyte-6019
06/07/2023, 7:53 AMcalm-yak-10773
06/07/2023, 8:00 AMimport rudderClient from "@rudderstack/rudder-sdk-react-native"
useEffect(() => {
const rudderInitialise = async () => {
await rudderClient.setup(WRITE_KEY, {
dataPlaneUrl: DATA_PLANE_URL,
trackAppLifecycleEvents: true,
recordScreenViews: true,
});
console.log('SDK is initalised');
};
rudderInitialise().catch(console.error);
}, []);
And:
import appsflyer, {
onAppOpenAttribution,
onAttributionFailure,
onDeepLink,
onInstallConversionData,
onInstallConversionFailure,
setOneLinkCustomDomains,
setOptions,
} from '@rudderstack/rudder-integration-appsflyer-react-native';
setOptions({
devKey: APPSFLYER_DEV_KEY,
isDebug: true,
onInstallConversionDataListener: true,
appleAppId: APPSFLYER_APPLE_ID,
timeToWaitForATTUserAuthorization: 60,
});
Meanwhile, you may also refer to our sample React-Native project: https://github.com/rudderlabs/rudder-sdk-react-native/blob/develop/apps/example/src/app/App.tsx.adventurous-petabyte-6019
06/07/2023, 8:02 AMcalm-yak-10773
06/07/2023, 8:06 AMadventurous-petabyte-6019
06/07/2023, 8:10 AMcalm-yak-10773
06/07/2023, 8:13 AMMinimal Viable Example
? I’ve to examine that!adventurous-petabyte-6019
06/07/2023, 8:17 AMimport rudderClient from '@rudderstack/rudder-sdk-react-native';
useEffect(() => {
const rudderInitialise = async () => {
await rudderClient.setup(Config.RUDDERSTACK_KEY, {
dataPlaneUrl: Config.RUDDERSTACK_DATA_PLANE_URL,
trackAppLifecycleEvents: true,
recordScreenViews: true
});
console.log('SDK is initalised');
};
rudderInitialise().catch(console.error);
}, []);
adventurous-petabyte-6019
06/07/2023, 8:19 AMsetOptions({
devKey: APPSFLYER_DEV_KEY,
isDebug: true,
onInstallConversionDataListener: true,
appleAppId: APPSFLYER_APPLE_ID,
timeToWaitForATTUserAuthorization: 60,
});
because can't test APPSFLYER buildcalm-yak-10773
06/07/2023, 8:21 AMcalm-yak-10773
06/07/2023, 8:52 AMnpm i
• cd iOS
• pod install
• Build the appadventurous-petabyte-6019
06/07/2023, 9:05 AMPhaseScriptExecution [CP-User]\ Generate\ Specs /Users/kompanietss/Library/Developer/Xcode/DerivedData/sampleproject-adhhffdgecgfbybmlmbqdyhguixk/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E000134A0.sh (in target 'FBReactNativeSpec' from project 'Pods')
adventurous-petabyte-6019
06/07/2023, 9:06 AMcalm-yak-10773
06/07/2023, 9:08 AMnpx react-native init sampleproject
, right?
BTW, have you got any error in the above sample React-Native project?adventurous-petabyte-6019
06/07/2023, 9:14 AMcalm-yak-10773
06/07/2023, 9:16 AMadventurous-petabyte-6019
06/08/2023, 9:24 AMuse_frameworks! :linkage => :static
adventurous-petabyte-6019
06/08/2023, 9:25 AMrn_maps_path = '../node_modules/react-native-maps'
use_frameworks! :linkage => :static # for Firebase
$static_framework = [
'react-native-maps',
'react-native-google-maps',
'Google-Maps-iOS-Utils',
'GoogleMaps',
'@rudderstack/rudder-integration-appsflyer-react-native',
'@rudderstack/rudder-sdk-react-native'
]
pod 'react-native-google-maps', :path => rn_maps_path
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
pod 'Rudder-Appsflyer'
calm-yak-10773
06/08/2023, 9:27 AMpod 'FirebaseCore', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
and make sure you remove:
use_frameworks! :linkage => :static
Let me know, if it works!adventurous-petabyte-6019
06/08/2023, 9:43 AMcalm-yak-10773
06/08/2023, 9:44 AMsalmon-plastic-31303
06/08/2023, 9:44 AMsalmon-plastic-31303
06/08/2023, 2:24 PMcalm-yak-10773
06/09/2023, 7:10 AM