Comments (4)
We had this problem and were able to solve it by copying the header file from a folder named "mParticle-Apple-SDK" to the folder named "mParticle_Apple_SDK". Note that one folder has dashes and the other has underscores.
In order to find if you have these 2 folders go into your project, go to the ios/Pods/Headers/Public folder. From there copy the Missing mParticle_Apple_SDK.h to the folder with the underscores.
Clean and build.
When you do a pod install this change will be wiped out and you will have to do this again, however you can make a change to your Podfile to copy the file automatically when pod install is run.
In the Podfile put the following code in the post_install section:
post_install do |installer|
react_native_post_install(installer)
# Define the path to your source and destination directories
source_directory = 'Pods/Headers/Public/mParticle-Apple-SDK'
destination_directory = 'Pods/Headers/Public/mParticle_Apple_SDK'
# Create a new copy command for each file you want to copy
FileUtils.cp_r(File.join(source_directory,
'mParticle_Apple_SDK.h'), destination_directory)
from react-native-mparticle.
@jeff-marshall-tvo its still not working for us!
![Screenshot 2024-01-11 at 6 23 27 PM](https://private-user-images.githubusercontent.com/29254928/295919543-30f05b35-2f87-44b8-8ac7-a37f9b832d8f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDU0MzM0MjYsIm5iZiI6MTcwNTQzMzEyNiwicGF0aCI6Ii8yOTI1NDkyOC8yOTU5MTk1NDMtMzBmMDViMzUtMmY4Ny00NGI4LThhYzctYTM3ZjliODMyZDhmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTE2VDE5MjUyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlMGI5NjYwYTE4NjljYTljMTRjZmUwMzVmYWYxOWMzOTIxYTZiMzEyOWI2Yjk3MjgxYjBjNGQ5ZjcxMmQyNjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.SJEsDw3YIP3DovMZu1f24lIqfpNkJjTO5BLS4mX1tTM)
Error is talking about mParticle_Apple_SDK-Swift.h
file right?
from react-native-mparticle.
from react-native-mparticle.
We had this problem and were able to solve it by copying the header file from a folder named "mParticle-Apple-SDK" to the folder named "mParticle_Apple_SDK". Note that one folder has dashes and the other has underscores.
In order to find if you have these 2 folders go into your project, go to the ios/Pods/Headers/Public folder. From there copy the Missing mParticle_Apple_SDK.h to the folder with the underscores.
Clean and build.
When you do a pod install this change will be wiped out and you will have to do this again, however you can make a change to your Podfile to copy the file automatically when pod install is run.
In the Podfile put the following code in the post_install section:
post_install do |installer| react_native_post_install(installer) # Define the path to your source and destination directories source_directory = 'Pods/Headers/Public/mParticle-Apple-SDK' destination_directory = 'Pods/Headers/Public/mParticle_Apple_SDK' # Create a new copy command for each file you want to copy FileUtils.cp_r(File.join(source_directory, 'mParticle_Apple_SDK.h'), destination_directory)
If I use older pods for mparticle integrations the build works
- mParticle-Appboy (8.0.16)
- mParticle-Apple-SDK (8.12.0)
- mParticle-BranchMetrics (8.0.6)
- mParticle-Optimizely (8.1.1)
- mParticle-Google-Analytics-Firebase-GA4 (8.3.2)
When I tried to revert back to latest versions of those integrations, I got 'mParticle_Apple_SDK/mParticle_Apple_SDK.h' file not found
from mParticle_Apple_SDK-Swift.h
and I tried to copy the file like you suggested and looks like it got past that step.
Now I'm getting the following error: 'mParticle_Apple_SDK-Swift.h' file not found
from Pods/mParticle-Appboy/Sources/mParticle-Appboy/include/MPKitAppboy.h
Looks like those integrations are not fully compatible with mParticle Apple SDK.
from react-native-mparticle.
Related Issues (20)
- Can't build the app after upgrading mParticle-Apple-SDK to 8.13.0 HOT 3
- Unable install in expo HOT 16
- 'mParticle.h' file not found HOT 2
- Environment setup? HOT 1
- Value cannot be cast from Boolean to String HOT 5
- Compilation Error HOT 2
- Feature Request: Raise an event once at attribution is fetched at the native layers. HOT 4
- question: isLoggedIn flag. HOT 1
- Not able to find specification HOT 2
- Plugin uses deprecated part of the mParticle Android SDK
- Could not invoke MParticle.logEvent HOT 3
- After published 2.7.1 old versions have stopped being build HOT 12
- Question: Is autolinking supported? HOT 3
- Documentation needs more clarity around identification HOT 1
- Module uses old part of the mParticle Android SDK HOT 4
- mParticle -> Warning: Braze SDK initialized outside of mParticle kit
- Global Subscription States in Braze via mParticle React Native library
- Simulator not running on M1 MacBook? HOT 2
- Migrate to AndroidX HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-mparticle.