Skip to main content
Solved

Module 'RevenueCat' not found - MIgrating ObjC to V4


Forum|alt.badge.img+2

I am migrating my Objective-C game project to V4 but can’t get past a ‘Module 'RevenueCat' not found’ build error.

I have added the RevenueCat-Swift.h file and referenced it in the Bridging-Header.h file.

I have upgraded Pods.

 

@import RevenueCat; causes a build error.

 

Completely stuck.

Best answer by DomA

Thank you for your reply Ryan, I just came back to say it worked when I used Rosetta. I am on an M1 Mac and don’t really understand why it has made a difference, but it now works.

View original
Did this post help you find an answer to your question?

3 replies

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 391 replies
  • June 27, 2022

Hey @DomA!

Not sure if this similar thread helps in your case: 

 

import RevenueCat is the correct name. Have you tried clearing out your build folder (Command-Option-Shift-K) and derived data?


Forum|alt.badge.img+2
  • Author
  • Helper
  • 1 reply
  • Answer
  • June 27, 2022

Thank you for your reply Ryan, I just came back to say it worked when I used Rosetta. I am on an M1 Mac and don’t really understand why it has made a difference, but it now works.


ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 391 replies
  • June 27, 2022

Glad it’s working for you now! Could have been some weird cache that was cleared using Rosetta. 


Reply


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