Skip to main content
Answer

Module 'RevenueCat' not found - MIgrating ObjC to V4

  • June 27, 2022
  • 3 replies
  • 88 views

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.

This post has been closed for comments

3 replies

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 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
  • 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
  • June 27, 2022

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