Skip to content

Unable install in expo #129

@kunsachdeva

Description

@kunsachdeva

Steps to repro:

  1. Init a new expo project
  2. npx expo prebuild to expose native code
  3. Install react-native-mparticle yarn add react-native-mparticle
  4. Add mParticle to Podfile pod 'mParticle-Apple-SDK', '~> 8'
  5. npx expo run:ios to run in iOS simulator

This leads to a buildtime error:
Screenshot 2023-05-04 at 1 29 36 PM


› Planning build
› Compiling Pods/mParticle-Apple-SDK » MPUploadBuilder.mm
› Compiling Pods/mParticle-Apple-SDK » MPStateMachine.mm
› Compiling Pods/mParticle-Apple-SDK » MPSurrogateAppDelegate.m
› Compiling Pods/mParticle-Apple-SDK » MPTransactionAttributes.m

❌  (node_modules/expo-modules-core/ios/Swift.h:5:9)

  3 | // The generated swift header may depend on some Objective-C declarations,
  4 | // adding dependency imports here to prevent declarations not found errors.
> 5 | #import <ExpoModulesCore/EXDefines.h>
    |         ^ 'ExpoModulesCore/EXDefines.h' file not found
  6 | #import <ExpoModulesCore/RCTComponentData+Privates.h>
  7 | 
  8 | // When `use_frameworks!` is used, the generated Swift header is inside ExpoModulesCore module.

› Compiling Pods/mParticle-Apple-SDK » MPSearchAdsAttribution.m
› Compiling Pods/mParticle-Apple-SDK » MPSession.m
› Compiling Pods/mParticle-Apple-SDK » MPResponseConfig.m
› Compiling Pods/mParticle-Apple-SDK » MPPromotion.mm
› Compiling Pods/mParticle-Apple-SDK » MPResponseEvents.mm
› Compiling Pods/mParticle-Apple-SDK » MPProduct.mm

Am I missing a step?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions