Skip to main content
Question

RNPurchases native module not found after using eas build for ios


Forum|alt.badge.img

When running 

eas build --profile dev-purchase --platform ios --local --clear-cache

the build process works but when trying to start the app and using the react-native-purchases sdk, I get the error:
 

 Import failed: `new NativeEventEmitter()` requires a non-null argument.

 

The reason seems to be that the RNPurchases native module cannot be found. This only seems to happen when using eas build and on iOS.

 

I have tried several of the latest react-native-purchases library versions. It seems to happen for every version.

 

I already searched the internet for solutions and iterated with ChatGPT but am still facing the same issue. Is anyone aware of this and possibly has a solution?

This post has been closed for comments

2 replies

Forum|alt.badge.img+2

Been pulling my hair out over something similar to this for the last couple of weeks.  (Though in Android)


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 300 replies
  • May 23, 2025

@tim-f4968c I’m sorry you’ve encountered this. Can you first add the react-native-purchases package and then create a new development build? This community post user had the same issue and resolved it this way.

We’ve also heard that deleting Podfile.lock, and running pod install inside the ios folder can resolve this. Can you give it a try? 

@albert-wong-62c251 Are you seeing the exact same error? And is this in React Native or native Android?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings