Git Product home page Git Product logo

Comments (4)

jeff-marshall-tvo avatar jeff-marshall-tvo commented on July 22, 2024

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.

manjuy124 avatar manjuy124 commented on July 22, 2024

@jeff-marshall-tvo its still not working for us!

Screenshot 2024-01-11 at 6 23 27 PM

Error is talking about mParticle_Apple_SDK-Swift.h file right?

from react-native-mparticle.

jeff-marshall-tvo avatar jeff-marshall-tvo commented on July 22, 2024

from react-native-mparticle.

crisfast avatar crisfast commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.