-
Notifications
You must be signed in to change notification settings - Fork 28
Description
We are facing a problem in our React Native project after updating the react-native-mparticle package from version 2.7.8 to 2.7.9. This update also led to an upgrade of the mParticle-Apple-SDK pod from version 8.12.0 to 8.18.0.
After installing pods, we noticed mparticle_apple_sdk-swift.h was imported in MPKitAppboy, mParticle-Apple-SDK, and MPKitFirebaseGA4Analytics. However, MPKitAppboy and MPKitFirebaseGA4Analytics showed a 'file not found' error. Initially, we thought it was a compatibility issue with other SDKs. Removing these pods and keeping only mParticle didn't resolve the issue; we encountered a compile-time error stating 'mParticle_Apple_SDK/mParticle_Apple_SDK.h' was missing in mparticle_apple_sdk-swift.h. Below are the error logs.
/Users/runner/work/1/s/ios/Pods/mParticle-Apple-SDK/mParticle-Apple-SDK/mParticle.m:26:
In file included from /Users/runner/work/1/s/ios/Pods/mParticle-Apple-SDK/mParticle-Apple-SDK/Swift.h:13:
/Users/runner/Library/Developer/Xcode/DerivedData/myproject/Build/Intermediates.noindex/ArchiveIntermediates/Myr-target/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/mParticle-Apple-SDK.build/DerivedSources/mParticle_Apple_SDK-Swift.h:237:9: fatal error: 'mParticle_Apple_SDK/mParticle_Apple_SDK.h' file not found
#import <mParticle_Apple_SDK/mParticle_Apple_SDK.h>
1 error generated
Here is Swift.h file from mParticle_Apple_SDK for your reference.
#if defined(__has_include) && __has_include(<mParticle_Apple_SDK/mParticle_Apple_SDK-Swift.h>)
#import <mParticle_Apple_SDK/mParticle_Apple_SDK-Swift.h>
#elif defined(__has_include) && __has_include(<mParticle_Apple_SDK_NoLocation/mParticle_Apple_SDK-Swift.h>)
#import <mParticle_Apple_SDK_NoLocation/mParticle_Apple_SDK-Swift.h>
#else
#import "mParticle_Apple_SDK-Swift.h" //in this file we are trying to import <mParticle_Apple_SDK/mParticle_Apple_SDK.h> which is causing the 'file not found' issue
#endif
My project structure includes the mParticle-Apple-SDK folder under Pods, but there seems to be a path or naming convention issue causing the build to fail.
I've attempted the usual troubleshooting steps such as cleaning the build folder, running pod install, and verifying the header search paths, but the issue persists. Could you provide guidance on resolving this issue?